]> 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)
commitef500812e7e19162294313e0b36a4e638a207127
treea4f2fd8af6240f3e95f1a318c9815044bd2f3000
parent694143691fe1e89e1ad18e3d3feeae2529e90651
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