Hook up DC to legacy DPM, making SI and KV DPM aware of power
management related requirements that come from DC. This is
necessary for DC to function correctly on these chips when DPM
is enabled.

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.

v2 of this series is rebased on latest amd-staging-drm-next.

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 (v2)
  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    |  8 +-
 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c    | 65 +++++---------
 .../gpu/drm/amd/pm/powerplay/amd_powerplay.c  | 11 +--
 13 files changed, 73 insertions(+), 120 deletions(-)

-- 
2.51.0

Reply via email to