drm/amd/display: fix the system hang while disable PSR
authorTom Chung <chiahsuan.chung@amd.com>
Mon, 29 May 2023 10:00:09 +0000 (18:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Jun 2023 21:14:52 +0000 (17:14 -0400)
commitea2062dd1f0384ae1b136d333ee4ced15bedae38
treef0a6be86f8e2f1e17f57d9d579eb21eeab80cc19
parente749dd10e5f292061ad63d2b030194bf7d7d452c
drm/amd/display: fix the system hang while disable PSR

[Why]
When the PSR enabled. If you try to adjust the timing parameters,
it may cause system hang. Because the timing mismatch with the
DMCUB settings.

[How]
Disable the PSR before adjusting timing parameters.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Reviewed-by: Wayne Lin <Wayne.Lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c