Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] drm/xe: Add devcoredump locking and reason string
@ 2024-11-26 19:18 John.C.Harrison
  2024-11-26 19:18 ` [PATCH v5 1/3] drm/xe: Add a reason string to the devcoredump John.C.Harrison
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: John.C.Harrison @ 2024-11-26 19:18 UTC (permalink / raw)
  To: Intel-Xe; +Cc: John Harrison

From: John Harrison <John.C.Harrison@Intel.com>

There are now many ways to trigger a devcoredump capture. So include a
reason message to say why it happened.

Also, add locking to avoid a races with double captures and free vs read.

v2: Change to spin_lock to mutex and a few other tweaks (review
feedback from Matthew Brost).
v3: Move mutex locks and add reclaim annotation (review feedback from
Matthew Brost).
v4: Fix typo - when adding lockdep specific code it helps to actually
have CONFIG_LOCKDEP enabled!
v5: New patch to move the call to dev_coredumpm_timeout to prevent an
existing issue highlighted by the new lockdep checking.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>


John Harrison (3):
  drm/xe: Add a reason string to the devcoredump
  drm/xe: Move the coredump registration to the worker thread
  drm/xe: Add mutex locking to devcoredump

 drivers/gpu/drm/xe/xe_devcoredump.c       | 115 +++++++++++++++-------
 drivers/gpu/drm/xe/xe_devcoredump.h       |   5 +-
 drivers/gpu/drm/xe/xe_devcoredump_types.h |   8 +-
 drivers/gpu/drm/xe/xe_guc_submit.c        |  14 ++-
 4 files changed, 102 insertions(+), 40 deletions(-)

-- 
2.47.0


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

end of thread, other threads:[~2024-11-27  0:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26 19:18 [PATCH v5 0/3] drm/xe: Add devcoredump locking and reason string John.C.Harrison
2024-11-26 19:18 ` [PATCH v5 1/3] drm/xe: Add a reason string to the devcoredump John.C.Harrison
2024-11-26 19:18 ` [PATCH v5 2/3] drm/xe: Move the coredump registration to the worker thread John.C.Harrison
2024-11-26 23:41   ` Matthew Brost
2024-11-27  0:55     ` John Harrison
2024-11-26 19:18 ` [PATCH v5 3/3] drm/xe: Add mutex locking to devcoredump John.C.Harrison
2024-11-26 20:13 ` ✓ CI.Patch_applied: success for drm/xe: Add devcoredump locking and reason string Patchwork
2024-11-26 20:13 ` ✓ CI.checkpatch: " Patchwork
2024-11-26 20:14 ` ✓ CI.KUnit: " Patchwork
2024-11-26 20:32 ` ✓ CI.Build: " Patchwork
2024-11-26 20:35 ` ✓ CI.Hooks: " Patchwork
2024-11-26 20:36 ` ✓ CI.checksparse: " Patchwork
2024-11-26 20:54 ` ✓ Xe.CI.BAT: " Patchwork
2024-11-26 22:23 ` ✗ 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