[PATCH 0/6] Reduce the number of GPU resumes

Pierre-Eric Pelloux-Prayer pierre-eric.pelloux-prayer at amd.com
Tue Jun 18 15:23:21 UTC 2024


The goal I'm aiming for is to be able to open a dri node and use
amdgpu_device_initialize without waking up the GPU. One visible outcome
is that it would become possible to call vkEnumeratePhysicalDevices
without having to resume all the GPUs in the system.

This series implements some of the changes required to achieve this
goal with a focus on not waking up the GPU for ioctls that don't need
the GPU to be active.
The output of AMD_DEBUG=info doesn't change with these patches applied.

The other changes required are found in following patchset:
https://lists.freedesktop.org/archives/amd-gfx/2024-June/109796.html

Pierre-Eric Pelloux-Prayer (6):
  drm/amdgpu: allow ioctls to opt-out of runtime pm
  drm/amdgpu: skip runtime pm for selected ioctls
  drm/amdgpu: refactor amdgpu_info_ioctl to allow finer pm
  drm/amdgpu: add AMDGPU_INFO_GB_ADDR_CONFIG query
  drm/amdgpu: cache mclk/sclk min/max values
  drm/amdgpu: resume the device from amdgpu_gem_fault

 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |  12 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c  |   8 +-
 .../gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c  |   8 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c    |   7 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |  69 ++++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       |  13 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c       | 116 +++++++++++++-----
 drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c    |   8 +-
 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c    |  12 +-
 include/uapi/drm/amdgpu_drm.h                 |   2 +
 10 files changed, 198 insertions(+), 57 deletions(-)

-- 
2.40.1



More information about the amd-gfx mailing list