Skip to content

Add support for Mesa GPU hang replay tool

Matthew Brost intel-xe 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest9 patches 2 repliesIn review
  2. v49 patches 10 repliesSuperseded
  3. v39 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC6 patches4 repliesSuperseded

Changes in v5 from the cover letter

- Rebase

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/xe: Add properties line to VM snapshot capturedrivers/gpu/drm/xe/xe_vm.c+12 -00 replies
2/9drm/xe: Add "null_sparse" type to VM snap propertiesdrivers/gpu/drm/xe/xe_vm.c+10 -10 replies
3/9drm/xe: Add mem_region to properties line in VM snapshot capturedrivers/gpu/drm/xe/xe_vm.c+21 -20 replies
4/9drm/xe: Add pat_index to properties line in VM snapshot capturedrivers/gpu/drm/xe/xe_vm.c+5 -20 replies
5/9drm/xe: Add cpu_caching to properties line in VM snapshot capturedrivers/gpu/drm/xe/xe_vm.c+5 -20 replies
6/9drm/xe: Add VM.uapi_flags to VM snapshot capturedrivers/gpu/drm/xe/xe_vm.c+9 -00 replies
7/9drm/xe/uapi: Add DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATEinclude/uapi/drm/xe_drm.h+7 -22 replies
8/9drm/xe: Add replay_offset and replay_length lines to LRC HWCTX snapshotdrivers/gpu/drm/xe/xe_lrc.c drivers/gpu/drm/xe/xe_lrc.h drivers/gpu/drm/xe/xe_lrc_types.h+12 -00 replies
9/9drm/xe: Implement DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATEdrivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_exec_queue_types.h drivers/gpu/drm/xe/xe_execlist.c +2 more+58 -180 replies

Reviews trailers per patch

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

PatchJonathan CavittMaarten LankhorstJosé Roberto de SouzaRodrigo Vivi
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b A-b A-b
8/9R-b
9/9R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/9] Add support for Mesa GPU hang replay tool

Add support for the Mesa GPU hang replay tool, which exists in the i915.

The main changes are as follows:

- Update devcoredump to include additional information, allowing the Mesa tool to extract everything it needs to replay a GPU hang. These updates are designed to remain compatible with the existing Mesa devcoredump parser.
- Introduce the DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATE extension, which enables setting the execution queue state to the hung execution queue state.

v2:
- Enable the flag DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATE
- Fix the page math to avoid a crash
v3:
- Add pat_index and cpu_caching to properties
- A VM.uapi_flags
v4:
- Fix null ptr deref
- Always setup default state first
v5:
- Rebase

Mesa PR:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34829

Matt

Matthew Brost (9):
drm/xe: Add properties line to VM snapshot capture drm/xe: Add "null_sparse" type to VM snap properties drm/xe: Add mem_region to properties line in VM snapshot capture drm/xe: Add pat_index to properties line in VM snapshot capture drm/xe: Add cpu_caching to properties line in VM snapshot capture drm/xe: Add VM.uapi_flags to VM snapshot capture drm/xe/uapi: Add DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATE drm/xe: Add replay_offset and replay_length lines to LRC HWCTX
snapshot
drm/xe: Implement DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATE

 drivers/gpu/drm/xe/xe_exec_queue.c       | 26 +++++++++--
 drivers/gpu/drm/xe/xe_exec_queue_types.h |  3 ++
 drivers/gpu/drm/xe/xe_execlist.c         |  2 +-
 drivers/gpu/drm/xe/xe_lrc.c              | 44 +++++++++++++-----
 drivers/gpu/drm/xe/xe_lrc.h              |  4 +-
 drivers/gpu/drm/xe/xe_lrc_types.h        |  3 ++
 drivers/gpu/drm/xe/xe_vm.c               | 57 +++++++++++++++++++++++-
 include/uapi/drm/xe_drm.h                |  9 +++-
 8 files changed, 130 insertions(+), 18 deletions(-)
Signature · 1 line
2.34.1