]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Add pixel_clock to amd_pp_display_configuration
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 9 Sep 2025 14:17:50 +0000 (16:17 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:52:41 +0000 (16:52 -0400)
commitb515dcb0dc4e85d8254f5459cfb32fce88dacbfb
tree0da8d3a0fd2f4bc6d2f01b5522c6db1fc1187781
parent92d6295a29dba56148406a8452c69ab49787741b
drm/amd/display: Add pixel_clock to amd_pp_display_configuration

This commit adds the pixel_clock field to the display config
struct so that power management (DPM) can use it.

We currently don't have a proper bandwidth calculation on old
GPUs with DCE 6-10 because dce_calcs only supports DCE 11+.
So the power management (DPM) on these GPUs may need to make
ad-hoc decisions for display based on the pixel clock.

Also rename sym_clock to pixel_clock in dm_pp_single_disp_config
to avoid confusion with other code where the sym_clock refers to
the DisplayPort symbol clock.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
drivers/gpu/drm/amd/display/dc/dm_services_types.h
drivers/gpu/drm/amd/include/dm_pp_interface.h