Skip to content

drm/amd/pm runtime pm changes

Pierre-Eric Pelloux-Prayer amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/amd/pm: remove dump_pptable functionsdrivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c +5 more+0 -23240 replies
2/9drm/amd/pm: fix rpm refcount handling on errordrivers/gpu/drm/amd/pm/amdgpu_pm.c+2 -00 replies
3/9drm/amd/pm: use pm_runtime_resume_and_getdrivers/gpu/drm/amd/pm/amdgpu_pm.c+89 -1740 replies
4/9drm/amd/pm: don't update runpm last_usage on debugfs getterdrivers/gpu/drm/amd/pm/amdgpu_pm.c+0 -262 replies
5/9drm/amd/pm: use pm_runtime_get_if_active for debugfs gettersdrivers/gpu/drm/amd/pm/amdgpu_pm.c+69 -698 replies
6/9drm/amd/pm: stop extra checks for runtime pm statedrivers/gpu/drm/amd/pm/amdgpu_pm.c+0 -464 replies
7/9drm/amd/pm: add sysfs attribute access wrappersdrivers/gpu/drm/amd/pm/amdgpu_pm.c drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h+78 -3371 reply
8/9drm/amd/pm: move private definitions to the .c filedrivers/gpu/drm/amd/pm/amdgpu_pm.c drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h+98 -1040 replies
9/9drm/amd/pm: use pm_runtime_get_if_active in amdgpu_debugfs_sensor_readdrivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c+3 -60 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by.

PatchMario Limonciello
1/9T-b
2/9T-b
3/9T-b
4/9T-b
5/9T-b T-b
6/9T-b
7/9T-b
8/9T-b
9/9T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/9] drm/amd/pm runtime pm changes

This series rework how runtime power management is handled in drm/amd/pm.

The main ideas are:
* simplify code and reduce copy-pate of runtimepm calls
* avoid waking up suspended GPU when reading debugfs files.

It is similar to Mario's earlier series:
https://lists.freedesktop.org/archives/amd-gfx/2024-August/113213.html
It's not a direct successor of it, hence v1.
Instead, this is part of a larger series that applies the same ideas to the whole amdgpu module.

Pierre-Eric Pelloux-Prayer (9):
drm/amd/pm: remove dump_pptable functions
drm/amd/pm: fix rpm refcount handling on error
drm/amd/pm: use pm_runtime_resume_and_get
drm/amd/pm: don't update runpm last_usage on debugfs getter drm/amd/pm: use pm_runtime_get_if_active for debugfs getters drm/amd/pm: stop extra checks for runtime pm state drm/amd/pm: add sysfs attribute access wrappers drm/amd/pm: move private definitions to the .c file drm/amd/pm: use pm_runtime_get_if_active in amdgpu_debugfs_sensor_read

 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c   |    9 +-
 drivers/gpu/drm/amd/pm/amdgpu_pm.c            |  734 +++-------
 drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h        |   96 --
 .../powerplay/hwmgr/vega20_processpptables.c  |  574 --------
 drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h |    5 -
 .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c |  433 ------
 .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c   | 1269 -----------------
 .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c  |   14 -
 .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c  |   14 -
 .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c  |   14 -
 drivers/gpu/drm/amd/pm/swsmu/smu_internal.h   |    1 -
 11 files changed, 208 insertions(+), 2955 deletions(-)
Signature · 1 line
2.40.1