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>
Thu, 15 Jun 2023 14:44:19 +0000 (10:44 -0400)
commitf308116676566b555ec3bab4c3f9eb20c1c9a5cb
tree87d02b698fe2ea3de9915331b5ce3b2b70371bf3
parent5b4d93eaf6b44903f4c71b4f404f65317abd8d9c
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