All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] rework runtime_pm for GPU ioctl access
@ 2026-09-17 19:58 Shahyan Soltani
  2026-09-17 19:58 ` [PATCH v2 1/8] drm/amdgpu: use pm_runtime_resume_and_get amdgpu_gem_create_ioctl Shahyan Soltani
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: Shahyan Soltani @ 2026-09-17 19:58 UTC (permalink / raw)
  To: amd-gfx
  Cc: alexander.deucher, christian.koenig, pierre-eric.pelloux-prayer,
	kevin.wang

Historically, the GPU was woken up from sleep anytime userspace
triggered an open system call or utilized an ioctl, even if 
hardware access to the GPU was not required.

This 8-patch series reworks the runtime_pm system for ioctls, jobs, and
open/close calls to allow a few tools such as AMD-SMI to function
without waking up the GPU.

v2:
Refactor patch "drm/amdgpu: use pm_runtime_resume_and_get
amdgpu_gem_create_ioctl" to use a conditional guard instead as suggested by
Kevin and Christian.

Change the descriptions for several patches to fit kernel conventions as
suggested by Christian.

Pierre-Eric Pelloux-Prayer (7):
  drm/amdgpu: use pm_runtime_resume_and_get amdgpu_gem_create_ioctl
  drm/amdgpu: use pm_runtime_resume_and_get for ctx ioctl
  drm/amdgpu: rework runtime pm management for cs
  drm/amdgpu: push down runtime pm handling in amdgpu_gem_create_ioctl
  drm/amdgpu: handle runtime pm in amdgpu_gem_userptr_ioctl
  drm/amdgpu: prevent suspend in fault handler
  drm/amdgpu: get rid of amdgpu_drm_ioctl

Shahyan Soltani (1):
  drm/amdgpu: defer GPU resume from open/close to first use

 drivers/gpu/drm/amd/amdgpu/Makefile        |  1 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c    | 10 ++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c    | 23 +----------
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h    |  6 ---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c    | 27 +++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c     | 15 +++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c  | 45 ----------------------
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c    | 42 +++++++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.h    |  2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c    | 16 ++++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c  | 12 +++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c     |  8 +---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h     |  5 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c  |  2 +-
 15 files changed, 114 insertions(+), 102 deletions(-)
 delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c

-- 
2.55.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2026-09-21 16:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-17 19:58 [PATCH v2 0/8] rework runtime_pm for GPU ioctl access Shahyan Soltani
2026-09-17 19:58 ` [PATCH v2 1/8] drm/amdgpu: use pm_runtime_resume_and_get amdgpu_gem_create_ioctl Shahyan Soltani
2026-09-18  7:58   ` Christian König
2026-09-17 19:58 ` [PATCH v2 2/8] drm/amdgpu: use pm_runtime_resume_and_get for ctx ioctl Shahyan Soltani
2026-09-18  7:48   ` Christian König
2026-09-17 19:58 ` [PATCH v2 3/8] drm/amdgpu: rework runtime pm management for cs Shahyan Soltani
2026-09-18  7:54   ` Christian König
2026-09-17 19:58 ` [PATCH v2 4/8] drm/amdgpu: push down runtime pm handling in amdgpu_gem_create_ioctl Shahyan Soltani
2026-09-18  7:57   ` Christian König
2026-09-21 14:40     ` Shahyan Soltani
2026-09-21 14:50       ` Shahyan Soltani
2026-09-21 15:06         ` Christian König
2026-09-21 16:35           ` Shahyan Soltani
2026-09-17 19:58 ` [PATCH v2 5/8] drm/amdgpu: handle runtime pm in amdgpu_gem_userptr_ioctl Shahyan Soltani
2026-09-18  8:01   ` Christian König
2026-09-17 19:58 ` [PATCH v2 6/8] drm/amdgpu: prevent suspend in fault handler Shahyan Soltani
2026-09-18  8:03   ` Christian König
2026-09-17 19:58 ` [PATCH v2 7/8] drm/amdgpu: get rid of amdgpu_drm_ioctl Shahyan Soltani
2026-09-17 19:58 ` [PATCH v2 8/8] drm/amdgpu: defer GPU resume from open/close to first use Shahyan Soltani
2026-09-18  8:23   ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.