Add support for Mesa GPU hang replay tool
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest9 patches 2 repliesIn review
- v49 patches 10 repliesSuperseded
- v39 patches 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 RFC | 6 patches | 4 replies | Superseded |
Changes in v5 from the cover letter
- Rebase
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | drm/xe: Add properties line to VM snapshot capturedrivers/ | +12 | 0 replies | |
| 2/9 | drm/xe: Add "null_sparse" type to VM snap propertiesdrivers/ | +10 | 0 replies | |
| 3/9 | drm/xe: Add mem_region to properties line in VM snapshot capturedrivers/ | +21 | 0 replies | |
| 4/9 | drm/xe: Add pat_index to properties line in VM snapshot capturedrivers/ | +5 | 0 replies | |
| 5/9 | drm/xe: Add cpu_caching to properties line in VM snapshot capturedrivers/ | +5 | 0 replies | |
| 6/9 | drm/xe: Add VM.uapi_flags to VM snapshot capturedrivers/ | +9 | 0 replies | |
| 7/9 | drm/xe/uapi: Add DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATEinclude/ | +7 | 2 replies | |
| 8/9 | drm/xe: Add replay_offset and replay_length lines to LRC HWCTX snapshotdrivers/ drivers/ drivers/ | +12 | 0 replies | |
| 9/9 | drm/xe: Implement DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATEdrivers/ drivers/ drivers/ +2 more | +58 | 0 replies |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Jonathan Cavitt | Maarten Lankhorst | José Roberto de Souza | Rodrigo Vivi |
|---|---|---|---|---|
| 1/9 | R-b | |||
| 2/9 | R-b | |||
| 3/9 | R-b | |||
| 4/9 | R-b | |||
| 5/9 | R-b | |||
| 6/9 | R-b | |||
| 7/9 | R-b | A-b | A-b | |
| 8/9 | R-b | |||
| 9/9 | R-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.
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