Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] drm: Create an app info option for wedge events
@ 2025-05-12 20:34 André Almeida
  2025-05-12 20:34 ` [PATCH v3 1/3] " André Almeida
                   ` (18 more replies)
  0 siblings, 19 replies; 24+ messages in thread
From: André Almeida @ 2025-05-12 20:34 UTC (permalink / raw)
  To: Alex Deucher, Christian König, siqueira, airlied, simona,
	Raag Jadav, rodrigo.vivi, jani.nikula, Xaver Hugl,
	Pierre-Loup A . Griffais, Krzysztof Karas
  Cc: dri-devel, linux-kernel, kernel-dev, amd-gfx, intel-xe, intel-gfx,
	André Almeida

This patchset implements a request made by Xaver Hugl about wedge events:

"I'd really like to have the PID of the client that triggered the GPU
reset, so that we can kill it if multiple resets are triggered in a
row (or switch to software rendering if it's KWin itself) and show a
user-friendly notification about why their app(s) crashed, but that
can be added later."

From https://lore.kernel.org/dri-devel/CAFZQkGwJ4qgHV8WTp2=svJ_VXhb-+Y8_VNtKB=jLsk6DqMYp9w@mail.gmail.com/

For testing, I've used amdgpu's debug_mask options debug_disable_soft_recovery
and debug_disable_gpu_ring_reset to test both wedge event paths in the driver.
To trigger a ring timeout, I've used this app:
https://gitlab.freedesktop.org/andrealmeid/gpu-timeout

Thanks!

Changelog:

v3:
 - Make comm_string and pid_string empty when there's no app info
 - Change "app that caused ..." to "app involved ..."
 - Clarify that devcoredump have more information about what happened

v2:
  - Rebased on top of drm/drm-next
  - Added new patch for documentation


André Almeida (3):
  drm: Create an app info option for wedge events
  drm/doc: Add a section about "App information" for the wedge API
  drm/amdgpu: Make use of drm_wedge_app_info

 Documentation/gpu/drm-uapi.rst             | 17 +++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 19 +++++++++++++++++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c    |  6 +++++-
 drivers/gpu/drm/drm_drv.c                  | 15 ++++++++++++---
 drivers/gpu/drm/i915/gt/intel_reset.c      |  3 ++-
 drivers/gpu/drm/xe/xe_device.c             |  3 ++-
 include/drm/drm_device.h                   |  8 ++++++++
 include/drm/drm_drv.h                      |  3 ++-
 8 files changed, 65 insertions(+), 9 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-05-18 21:26 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-12 20:34 [PATCH v3 0/3] drm: Create an app info option for wedge events André Almeida
2025-05-12 20:34 ` [PATCH v3 1/3] " André Almeida
2025-05-16  7:38   ` Krzysztof Karas
2025-05-18 21:26   ` Raag Jadav
2025-05-12 20:34 ` [PATCH v3 2/3] drm/doc: Add a section about "App information" for the wedge API André Almeida
2025-05-16  7:03   ` Raag Jadav
2025-05-16  7:39   ` Krzysztof Karas
2025-05-12 20:34 ` [PATCH v3 3/3] drm/amdgpu: Make use of drm_wedge_app_info André Almeida
2025-05-12 20:40 ` ✓ CI.Patch_applied: success for drm: Create an app info option for wedge events (rev3) Patchwork
2025-05-12 20:41 ` ✗ CI.checkpatch: warning " Patchwork
2025-05-12 20:42 ` ✓ CI.KUnit: success " Patchwork
2025-05-12 20:52 ` ✗ CI.Build: failure " Patchwork
2025-05-13 13:51 ` ✓ CI.Patch_applied: success " Patchwork
2025-05-13 13:51 ` ✗ CI.checkpatch: warning " Patchwork
2025-05-13 13:52 ` ✓ CI.KUnit: success " Patchwork
2025-05-13 14:03 ` ✓ CI.Build: " Patchwork
2025-05-14 16:27 ` ✓ CI.Patch_applied: success for drm: Create an app info option for wedge events (rev4) Patchwork
2025-05-14 16:27 ` ✗ CI.checkpatch: warning " Patchwork
2025-05-14 16:28 ` ✓ CI.KUnit: success " Patchwork
2025-05-14 16:39 ` ✓ CI.Build: " Patchwork
2025-05-14 16:41 ` ✓ CI.Hooks: " Patchwork
2025-05-14 16:43 ` ✗ CI.checksparse: warning " Patchwork
2025-05-14 17:19 ` ✓ Xe.CI.BAT: success " Patchwork
2025-05-15  0:03 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox