]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit374f2c4303602486e86bc0452711925e53657f71
treea4f2fd8af6240f3e95f1a318c9815044bd2f3000
parent294d3851fc26943919112cc8a1eb162623266426
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