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(-) -- 2.40.1