amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Hook up DC to legacy_dpm
@ 2025-08-25 22:07 Timur Kristóf
  2025-08-25 22:07 ` [PATCH 1/3] drm/amd/display: Add pixel_clock to amd_pp_display_configuration Timur Kristóf
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Timur Kristóf @ 2025-08-25 22:07 UTC (permalink / raw)
  To: amd-gfx
  Cc: alexdeucher, alexander.deucher, harry.wentland, alex.hung,
	Timur Kristóf

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-26 14:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 22:07 [PATCH 0/3] Hook up DC to legacy_dpm Timur Kristóf
2025-08-25 22:07 ` [PATCH 1/3] drm/amd/display: Add pixel_clock to amd_pp_display_configuration Timur Kristóf
2025-08-26 14:26   ` Alex Deucher
2025-08-25 22:07 ` [PATCH 2/3] drm/amd/pm: Use pm_display_cfg in legacy DPM Timur Kristóf
2025-08-25 22:07 ` [PATCH 3/3] drm/amd/pm: Remove unneeded legacy DPM related code Timur Kristóf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).