Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] drm/xe: add wedged_mode=3 fault inspection
@ 2026-11-06 22:13 Daniel Charles
  2026-11-06 22:13 ` [PATCH v2 1/3] drm/xe/wedge: add fault inspection with debugfs release Daniel Charles
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Daniel Charles @ 2026-11-06 22:13 UTC (permalink / raw)
  To: intel-xe; +Cc: Daniel Charles

This series adds wedged_mode=3, a best-effort inspection mode for examining
Xe after a fault without automatically restarting the GTs. An operator can
release inspection through debugfs by choosing to skip or continue into
permanent wedging.

The patches add the inspection framework, preserve pending TLB invalidation
fences while inspection is active, and request inspection for additional
fault paths while coordinating MMIO-enabled RAS reset requests.

Changes in v2:
- Make inspection one-shot after GT stopping or runtime-resume failure,
  close the teardown admission window, and handle aborted inspection without
  leaving stale TLB pause state.
- Extend the GuC submission timeout guard to recognize inspection startup
  before the execution queues are marked wedged.
- Clarify the power-management requirements and that SKIP leaves the GTs
  stopped; it does not restore normal operation.
- Document that TLB preservation is not a freeze of mapping activity or new
  invalidations. New requests may be canceled and signaled while older
  fences remain preserved, and GGTT invalidations may still program MMIO
  while CT is disabled. Cancellation signaling does not imply hardware
  completion; inspection is not an atomic snapshot.
- Document that preserved fences can block process exit, unbind, or unload,
  and that recovery may require a power cycle.

The TLB behavior does not prevent subsequent mapping changes or independent
reset/resume activity during inspection. Holding newly issued invalidation
fences could also block synchronous callers indefinitely, including callers
holding the GGTT mutex. The series documents these limitations rather than
claiming inspection is an atomic hardware snapshot.

Runtime validation of the specific inspection-startup timeout interleaving
remains pending.

Alan Previn (1):
  drm/xe/wedge: add fault inspection with debugfs release

Daniel Charles (2):
  drm/xe/wedge: preserve pending TLB invalidations during inspection
  drm/xe/wedge: request inspection for additional fault paths

 drivers/gpu/drm/xe/xe_debugfs.c         |  39 +++-
 drivers/gpu/drm/xe/xe_device.c          |  12 +-
 drivers/gpu/drm/xe/xe_gt.c              |  17 +-
 drivers/gpu/drm/xe/xe_gt.h              |   1 +
 drivers/gpu/drm/xe/xe_guc.c             |   2 +-
 drivers/gpu/drm/xe/xe_guc_ads.c         |   2 +-
 drivers/gpu/drm/xe/xe_guc_capture.c     |   2 +-
 drivers/gpu/drm/xe/xe_guc_submit.c      |  25 +-
 drivers/gpu/drm/xe/xe_pagefault.c       |   3 +
 drivers/gpu/drm/xe/xe_pci.c             |  16 +-
 drivers/gpu/drm/xe/xe_pci_error.c       |  11 +
 drivers/gpu/drm/xe/xe_tlb_inval.c       |  63 +++++
 drivers/gpu/drm/xe/xe_tlb_inval.h       |   1 +
 drivers/gpu/drm/xe/xe_tlb_inval_types.h |   4 +
 drivers/gpu/drm/xe/xe_uc.c              |   2 +-
 drivers/gpu/drm/xe/xe_wedge.c           | 292 ++++++++++++++++++++++--
 drivers/gpu/drm/xe/xe_wedge.h           |   4 +
 drivers/gpu/drm/xe/xe_wedge_types.h     |  48 ++++
 18 files changed, 512 insertions(+), 32 deletions(-)

-- 
2.43.0

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

end of thread, other threads:[~2026-11-08  3:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 22:13 [PATCH v2 0/3] drm/xe: add wedged_mode=3 fault inspection Daniel Charles
2026-11-06 22:13 ` [PATCH v2 1/3] drm/xe/wedge: add fault inspection with debugfs release Daniel Charles
2026-11-06 22:59   ` sashiko-bot
2026-11-06 22:13 ` [PATCH v2 2/3] drm/xe/wedge: preserve pending TLB invalidations during inspection Daniel Charles
2026-11-06 22:13 ` [PATCH v2 3/3] drm/xe/wedge: request inspection for additional fault paths Daniel Charles
2026-11-06 22:40 ` ✗ CI.checkpatch: warning for drm/xe: add wedged_mode=3 fault inspection Patchwork
2026-11-06 22:42 ` ✓ CI.KUnit: success " Patchwork
2026-11-06 23:16 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-08  3:36 ` ✗ 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