Reduce the number of GPU resumes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/amdgpu: allow ioctls to opt-out of runtime pmdrivers/ | +20 | 5 replies | |
| 2/6 | drm/amdgpu: skip runtime pm for selected ioctlsdrivers/ | +42 | 0 replies | |
| 3/6 | drm/amdgpu: refactor amdgpu_info_ioctl to allow finer pmdrivers/ drivers/ | +80 | 0 replies | |
| 4/6 | drm/amdgpu: add AMDGPU_INFO_GB_ADDR_CONFIG querydrivers/ drivers/ include/ | +9 | 4 replies | |
| 5/6 | drm/amdgpu: cache mclk/sclk min/max valuesdrivers/ drivers/ drivers/ +4 more | +40 | 0 replies | |
| 6/6 | drm/amdgpu: resume the device from amdgpu_gem_faultdrivers/ | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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