Skip to content

Reduce the number of GPU resumes

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/amdgpu: allow ioctls to opt-out of runtime pmdrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+20 -55 replies
2/6drm/amdgpu: skip runtime pm for selected ioctlsdrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+42 -30 replies
3/6drm/amdgpu: refactor amdgpu_info_ioctl to allow finer pmdrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c+80 -160 replies
4/6drm/amdgpu: add AMDGPU_INFO_GB_ADDR_CONFIG querydrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c include/uapi/drm/amdgpu_drm.h+9 -14 replies
5/6drm/amdgpu: cache mclk/sclk min/max valuesdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +4 more+40 -340 replies
6/6drm/amdgpu: resume the device from amdgpu_gem_faultdrivers/gpu/drm/amd/amdgpu/amdgpu_gem.c+11 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.40.1