]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: always program DPPDTO unless not safe to lower
authorJake Wang <haonan.wang2@amd.com>
Fri, 11 Dec 2020 21:53:57 +0000 (16:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2020 20:02:47 +0000 (15:02 -0500)
commit6dca6fa9ab2c53faee7505e8e8ebe68500b6c041
tree78182e9a20c30361f41122ae03d6222e9553fadb
parent9b985e6c141f9a5e9e2ebfc07cd9ce38c6f4fafc
drm/amd/display: always program DPPDTO unless not safe to lower

[Why]
We defer clock updates to after pipes have been programmed. In
some instances we use DPPCLK that have been previously set to be
"unused". This results in a brief window of time where underflow
could occur.

[How]
During prepare bandwidth allow rn_update_clocks_update_dpp_dto
to check each instance and compare previous clock to new clock.
If new clock is higher than previous clock, program DPPDTO.

Signed-off-by: Jake Wang <haonan.wang2@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c