Hook up DC to legacy DPM. Now SI and KV DPM are aware of power management related requirements that come from DC, which is necessary for DC to function correctly on these chips when DPM is enabled.
Based on the "SI power management fixes (v2)" series. Background: The power management code (DPM) needs to be aware of requirements from the display engine in order to select power states that are compatible with the display engine being able to interact with the currently connected displays. On chips that rely on legacy_dpm (SI and KV), the DPM was not aware of any requirements from DC because it used a different struct and was not able to handle the information coming from DC. Timur Kristóf (3): drm/amd/display: Add pixel_clock to amd_pp_display_configuration drm/amd/pm: Use pm_display_cfg in legacy DPM drm/amd/pm: Remove unneeded legacy DPM related code. drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 1 - .../amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 1 + .../dc/clk_mgr/dce110/dce110_clk_mgr.c | 2 +- .../drm/amd/display/dc/dm_services_types.h | 2 +- drivers/gpu/drm/amd/include/dm_pp_interface.h | 1 + drivers/gpu/drm/amd/pm/amdgpu_dpm_internal.c | 87 +++++++++---------- drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 4 - .../gpu/drm/amd/pm/inc/amdgpu_dpm_internal.h | 6 +- drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c | 4 +- .../gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c | 9 +- drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 64 ++++---------- .../gpu/drm/amd/pm/powerplay/amd_powerplay.c | 11 +-- 13 files changed, 70 insertions(+), 123 deletions(-) -- 2.50.1
