[PATCH 1/1][SRU][OEM-5.10] drm/amd/display: Fix the display corruption issue on Navi10

AceLan Kao acelan.kao at canonical.com
Wed Jul 21 11:34:15 UTC 2021

From: Yifan Zhang <yifan1.zhang at amd.com>

BugLink: https://bugs.launchpad.net/bugs/1936921

Screen corruption on Navi10 card

Set system context in DCN only on Renoir

Tested-by: Matt Coffin <mcoffin13 at gmail.com>
Acked-by: Alex Deucher <alexander.deucher at amd.com>
Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>
Reviewed-by: Roman Li <Roman.Li at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
(cherry picked from commit 0b08c54bb7a37047a3a006e36c2270ebc62fef7d)
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao at canonical.com>
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 58f4d0f532e47..a582091ca3953 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1086,10 +1086,14 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
-	mmhub_read_system_context(adev, &pa_config);
+#if defined(CONFIG_DRM_AMD_DC_DCN)
+	if (adev->asic_type == CHIP_RENOIR) {
+		mmhub_read_system_context(adev, &pa_config);
-	// Call the DC init_memory func
-	dc_setup_system_context(adev->dm.dc, &pa_config);
+		// Call the DC init_memory func
+		dc_setup_system_context(adev->dm.dc, &pa_config);
+	}
 	adev->dm.freesync_module = mod_freesync_create(adev->dm.dc);
 	if (!adev->dm.freesync_module) {

More information about the kernel-team mailing list