]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/display: init dispclk from bootup clock for DCN315
authorZhongwei Zhang <Zhongwei.Zhang@amd.com>
Tue, 14 Oct 2025 02:46:49 +0000 (10:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 13:58:00 +0000 (09:58 -0400)
commit14bb17cc37e03e105c5e989381b1dd9769535417
tree56c9d1c66f8350f20a3554f8ab7a6167a067460a
parent9ec11bb842b6dab109f64d3aa96e53d8243c546b
drm/amd/display: init dispclk from bootup clock for DCN315

[Why]
Driver does not pick up and save vbios's clocks during init clocks,
the dispclk in clk_mgr will keep 0.
OS might change the timing (lower the pixel clock) after boot.
Then driver will set the dispclk to lower when safe_to_lower is false,
for in clk_mgr dispclk is zero, it's illegal and causes garbage.

[How]
Dump and save the vbios's clocks, and init the dispclk in
dcn315_init_clocks.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Zhongwei Zhang <Zhongwei.Zhang@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.h
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c