]> www.infradead.org Git - users/dwmw2/linux.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)
commit04e6931a76e592e66e1014ffe4d13303ccac5d8b
tree73efde6307027ec3a031e13b2443ab48a5d98c30
parent074efb5cadcb3c9e40d536a730318bfab3384cad
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