drm/amd/display: Init DCN35 clocks from pre-os HW values
authorLeo Li <sunpeng.li@amd.com>
Fri, 12 Sep 2025 15:01:50 +0000 (11:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Sep 2025 17:54:43 +0000 (13:54 -0400)
commit361ee85e980c16c9b9e236ccfac33014e8602485
tree1d5af29822e144524631dcb8ebb549bc6b9bb8e5
parent1c3217dd557d4f04eb4c2afcd7c76de6b4d66ccb
drm/amd/display: Init DCN35 clocks from pre-os HW values

[Why]
We did not initialize dc clocks with boot-time hw values during init.
This lead to incorrect clock values in dc, causing `dcn35_update_clocks`
to make incorrect updates.

[How]
Correctly initialize DC with pre-os clk values from HW.
s/dump/save/ as that accurately reflects the purpose of the functions.

Fixes: 8774029f76b9 ("drm/amd/display: Add DCN35 CLK_MGR")
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit d43cc4ea1f9d720ab4bf06806f79260bfe981508)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c