drm/amd/display: Fix the display corruption issue on Navi10
Subsystems (3)
PATCH 1/1 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 and Cezanne
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5 -3
@@ -1061,10 +1061,12 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)dc_hardware_init (adev->dm.dc); -mmhub_read_system_context (adev, &pa_config); +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) {
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 8 lines · Yifan Zhang
[Why]
Screen corruption on Navi10 card[How]
Set system context in DCN only on Renoir and CezanneSigned-off-by Yifan Zhang <[email protected]>
Quoted 27 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5
-4@@ -1061,10 +1061,12 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)dc_hardware_init (adev->dm.dc); -mmhub_read_system_context (adev, &pa_config); +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) { --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Thanks for the quick resolution! Might want to add a Fixes header just for reference when people are reading commit messages?
I can confirm that this fixed the issue introduced by that previous patch, though!
Patch is Tested-by: Matt Coffin <[email protected]>
Quoted 22 lines · Yifan Zhang
[Why]
Screen corruption on Navi10 card[How]
Set system context in DCN only on Renoir and CezanneSigned-off-by Yifan Zhang <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-1@@ -1061,10 +1061,12 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)dc_hardware_init (adev->dm.dc); -mmhub_read_system_context (adev, &pa_config); +if (adev->asic_type ==CHIP_RENOIR ) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_init(struct amdgpu_device *adev) · line 1072
Quoted 10 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +4
-2+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) {
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx