drm/amd/display: Do not double-buffer DTO adjustments
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Mon, 16 Sep 2019 20:42:38 +0000 (15:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:10:45 +0000 (09:10 -0500)
commit6bd0a112ec129615d23aa5d8d3dd0be0243989aa
treea4f2fd8af6240f3e95f1a318c9815044bd2f3000
parent98bf2f5262f15e16c09ac47bbf305577283242fb
drm/amd/display: Do not double-buffer DTO adjustments

[WHY]
When changing DPP global ref clock, DTO adjustments must take effect
immediately, or else underflow may occur.
It appears the original decision to double-buffer DTO adjustments was made to
prevent underflows that occur when raising DPP ref clock (which is not
double-buffered), but that same decision causes similar issues when
lowering DPP global ref clock. The better solution is to order the
adjustments according to whether clocks are being raised or lowered.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dccg.c