]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Update DPPCLK programming sequence
authorAlvin Lee <Alvin.Lee2@amd.com>
Fri, 6 May 2022 19:57:09 +0000 (15:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jun 2022 22:17:24 +0000 (18:17 -0400)
commit7983bd35791171272fb79c029368386669c5d27c
tree73efde6307027ec3a031e13b2443ab48a5d98c30
parent77b004903a0956d78003ad98d2cfd4bc9f11eb30
drm/amd/display: Update DPPCLK programming sequence

[Description]
- When lowering DPPCLK, we want to program the DPP DTO before updating
the DPP refclk.
- Also update DPPCLK to the exact frequency that will be set after clock
divider has been programmed. This will prevent rounding errors when
making the request to PMFW (we need DPP DTO to match exactly with the
exact DPP refclk).

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c