]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Sep 2023 07:10:18 +0000 (09:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Sep 2023 07:10:18 +0000 (09:10 +0200)
added patches:
drm-amd-display-fix-a-bug-when-searching-for-insert_above_mpcc.patch

queue-4.19/drm-amd-display-fix-a-bug-when-searching-for-insert_above_mpcc.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/drm-amd-display-fix-a-bug-when-searching-for-insert_above_mpcc.patch b/queue-4.19/drm-amd-display-fix-a-bug-when-searching-for-insert_above_mpcc.patch
new file mode 100644 (file)
index 0000000..5618ef6
--- /dev/null
@@ -0,0 +1,43 @@
+From 3d028d5d60d516c536de1ddd3ebf3d55f3f8983b Mon Sep 17 00:00:00 2001
+From: Wesley Chalmers <wesley.chalmers@amd.com>
+Date: Wed, 21 Jun 2023 19:13:26 -0400
+Subject: drm/amd/display: Fix a bug when searching for insert_above_mpcc
+
+From: Wesley Chalmers <wesley.chalmers@amd.com>
+
+commit 3d028d5d60d516c536de1ddd3ebf3d55f3f8983b upstream.
+
+[WHY]
+Currently, when insert_plane is called with insert_above_mpcc
+parameter that is equal to tree->opp_list, the function returns NULL.
+
+[HOW]
+Instead, the function should insert the plane at the top of the tree.
+
+Cc: Mario Limonciello <mario.limonciello@amd.com>
+Cc: Alex Deucher <alexander.deucher@amd.com>
+Cc: stable@vger.kernel.org
+Reviewed-by: Jun Lei <jun.lei@amd.com>
+Acked-by: Tom Chung <chiahsuan.chung@amd.com>
+Signed-off-by: Wesley Chalmers <wesley.chalmers@amd.com>
+Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c |    5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c
+@@ -193,8 +193,9 @@ struct mpcc *mpc1_insert_plane(
+               /* check insert_above_mpcc exist in tree->opp_list */
+               struct mpcc *temp_mpcc = tree->opp_list;
+-              while (temp_mpcc && temp_mpcc->mpcc_bot != insert_above_mpcc)
+-                      temp_mpcc = temp_mpcc->mpcc_bot;
++              if (temp_mpcc != insert_above_mpcc)
++                      while (temp_mpcc && temp_mpcc->mpcc_bot != insert_above_mpcc)
++                              temp_mpcc = temp_mpcc->mpcc_bot;
+               if (temp_mpcc == NULL)
+                       return NULL;
+       }
index b3ed1fc5d240c64a42a6d42ff0380f4f0565baae..3b94d045106c0e43e5c35f554fd6b252c95a9c57 100644 (file)
@@ -230,3 +230,4 @@ net-ethernet-mtk_eth_soc-fix-possible-null-pointer-d.patch
 kcm-fix-memory-leak-in-error-path-of-kcm_sendmsg.patch
 ixgbe-fix-timestamp-configuration-code.patch
 kcm-fix-error-handling-for-sock_dgram-in-kcm_sendmsg.patch
+drm-amd-display-fix-a-bug-when-searching-for-insert_above_mpcc.patch