drm/amd/display: ensure dentist display clock update finished in DCN20
authorDale Zhao <dale.zhao@amd.com>
Fri, 16 Jul 2021 01:38:17 +0000 (09:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jul 2021 16:45:49 +0000 (12:45 -0400)
commitb53e041d8e4308f7324999398aec092dbcb130f5
tree3d271e949a6c634214f9567aa75ab5533920ec36
parent8d177577cd9118c29960401a6de9dc4db00f2052
drm/amd/display: ensure dentist display clock update finished in DCN20

[Why]
We don't check DENTIST_DISPCLK_CHG_DONE to ensure dentist
display clockis updated to target value. In some scenarios with large
display clock margin, it will deliver unfinished display clock and cause
issues like display black screen.

[How]
Checking DENTIST_DISPCLK_CHG_DONE to ensure display clock
has been update to target value before driver do other clock related
actions.

Reviewed-by: Cyr Aric <aric.cyr@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Dale Zhao <dale.zhao@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c