[PATCH] drm/amd/display: Fix the display corruption issue on Navi10
Li, Roman
Roman.Li at amd.com
Wed Oct 21 14:26:06 UTC 2020
[AMD Public Use]
Reviewed-by: Roman Li <Roman.Li at amd.com>
-----Original Message-----
From: Yifan Zhang <yifan1.zhang at amd.com>
Sent: Wednesday, October 21, 2020 10:24 AM
To: amd-gfx at lists.freedesktop.org
Cc: Li, Sun peng (Leo) <Sunpeng.Li at amd.com>; Wentland, Harry <Harry.Wentland at amd.com>; Li, Roman <Roman.Li at amd.com>; Zhang, Yifan1 <Yifan1.Zhang at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>
Subject: [PATCH] drm/amd/display: Fix the display corruption issue on Navi10
[Why]
Screen corruption on Navi10 card
[How]
Set system context in DCN only on Renoir
Acked-by: Alex Deucher <alexander.deucher at amd.com>
Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>
Signed-off-by: Roman Li <Roman.Li at amd.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 71ecd963759e..ed0e7680b420 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1061,10 +1061,14 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
dc_hardware_init(adev->dm.dc);
- 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);
+ }
+#endif
adev->dm.freesync_module = mod_freesync_create(adev->dm.dc);
if (!adev->dm.freesync_module) {
--
2.25.1
More information about the amd-gfx
mailing list