aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0338-drm-amd-display-Fix-warning-storm-on-Raven2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0338-drm-amd-display-Fix-warning-storm-on-Raven2.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0338-drm-amd-display-Fix-warning-storm-on-Raven2.patch90
1 files changed, 90 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0338-drm-amd-display-Fix-warning-storm-on-Raven2.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0338-drm-amd-display-Fix-warning-storm-on-Raven2.patch
new file mode 100644
index 00000000..0bd351e8
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0338-drm-amd-display-Fix-warning-storm-on-Raven2.patch
@@ -0,0 +1,90 @@
+From a1018d40dbc1fb2c0413d6d0a657988c4c7c5ef2 Mon Sep 17 00:00:00 2001
+From: Roman Li <Roman.Li@amd.com>
+Date: Tue, 9 Oct 2018 13:50:09 -0400
+Subject: [PATCH 0338/2940] drm/amd/display: Fix warning storm on Raven2
+
+[Why]
+Wrong index for pstate debug test register
+
+[How]
+Add correct index value for dcn1_01 in hubbub1_construct()
+
+Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
+Signed-off-by: Roman Li <Roman.Li@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+Reviewed-by: Huang Rui <ray.huang@amd.com>
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+---
+ .../drm/amd/display/dc/dcn10/dcn10_hubbub.c | 43 ++++++++++++++++++-
+ 1 file changed, 41 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c
+index 1ea91e153d3a..297e1e5b53d3 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c
+@@ -116,7 +116,43 @@ bool hubbub1_verify_allow_pstate_change_high(
+ forced_pstate_allow = false;
+ }
+
+- /* RV1:
++ /* RV2:
++ * dchubbubdebugind, at: 0xB
++ * description
++ * 0: Pipe0 Plane0 Allow Pstate Change
++ * 1: Pipe0 Plane1 Allow Pstate Change
++ * 2: Pipe0 Cursor0 Allow Pstate Change
++ * 3: Pipe0 Cursor1 Allow Pstate Change
++ * 4: Pipe1 Plane0 Allow Pstate Change
++ * 5: Pipe1 Plane1 Allow Pstate Change
++ * 6: Pipe1 Cursor0 Allow Pstate Change
++ * 7: Pipe1 Cursor1 Allow Pstate Change
++ * 8: Pipe2 Plane0 Allow Pstate Change
++ * 9: Pipe2 Plane1 Allow Pstate Change
++ * 10: Pipe2 Cursor0 Allow Pstate Change
++ * 11: Pipe2 Cursor1 Allow Pstate Change
++ * 12: Pipe3 Plane0 Allow Pstate Change
++ * 13: Pipe3 Plane1 Allow Pstate Change
++ * 14: Pipe3 Cursor0 Allow Pstate Change
++ * 15: Pipe3 Cursor1 Allow Pstate Change
++ * 16: Pipe4 Plane0 Allow Pstate Change
++ * 17: Pipe4 Plane1 Allow Pstate Change
++ * 18: Pipe4 Cursor0 Allow Pstate Change
++ * 19: Pipe4 Cursor1 Allow Pstate Change
++ * 20: Pipe5 Plane0 Allow Pstate Change
++ * 21: Pipe5 Plane1 Allow Pstate Change
++ * 22: Pipe5 Cursor0 Allow Pstate Change
++ * 23: Pipe5 Cursor1 Allow Pstate Change
++ * 24: Pipe6 Plane0 Allow Pstate Change
++ * 25: Pipe6 Plane1 Allow Pstate Change
++ * 26: Pipe6 Cursor0 Allow Pstate Change
++ * 27: Pipe6 Cursor1 Allow Pstate Change
++ * 28: WB0 Allow Pstate Change
++ * 29: WB1 Allow Pstate Change
++ * 30: Arbiter's allow_pstate_change
++ * 31: SOC pstate change request"
++ *
++ * RV1:
+ * dchubbubdebugind, at: 0x7
+ * description "3-0: Pipe0 cursor0 QOS
+ * 7-4: Pipe1 cursor0 QOS
+@@ -140,7 +176,6 @@ bool hubbub1_verify_allow_pstate_change_high(
+ * 31: SOC pstate change request
+ */
+
+-
+ REG_WRITE(DCHUBBUB_TEST_DEBUG_INDEX, hubbub->debug_test_index_pstate);
+
+ for (i = 0; i < pstate_wait_timeout_us; i++) {
+@@ -802,5 +837,9 @@ void hubbub1_construct(struct hubbub *hubbub,
+ hubbub->masks = hubbub_mask;
+
+ hubbub->debug_test_index_pstate = 0x7;
++#if defined(CONFIG_DRM_AMD_DC_DCN1_01)
++ if (ctx->dce_version == DCN_VERSION_1_01)
++ hubbub->debug_test_index_pstate = 0xB;
++#endif
+ }
+
+--
+2.17.1
+