Skip to content

drm/xe: Add devcoredump locking and reason string

[email protected] dri-devel intel-xe linux-media stable 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 0 repliesNew
  2. v53 patches 2 repliesSuperseded
  3. v42 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches1 replySuperseded
v22 patches5 repliesSuperseded
v12 patches8 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/xe: Add a reason string to the devcoredumpdrivers/gpu/drm/xe/xe_devcoredump.c drivers/gpu/drm/xe/xe_devcoredump.h drivers/gpu/drm/xe/xe_devcoredump_types.h +1 more+35 -90 replies
2/3drm/xe: Move the coredump registration to the worker threaddrivers/gpu/drm/xe/xe_devcoredump.c+39 -340 replies
3/3drm/xe: Add mutex locking to devcoredumpdrivers/gpu/drm/xe/xe_devcoredump.c drivers/gpu/drm/xe/xe_devcoredump_types.h+34 -30 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMatthew Brost
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/3] drm/xe: Add devcoredump locking and reason string

From: John Harrison <[email protected]>

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.
v6: Rebase due to conflict with recent change to worker function.

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       | 125 +++++++++++++++-------
 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, 107 insertions(+), 45 deletions(-)
Signature · 1 line
2.47.0