Skip to content

drm/xe: Implement snapshot support.

[email protected] intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/xe: Add uapi for dumpable bosdrivers/gpu/drm/xe/xe_vm.c include/uapi/drm/xe_drm.h+12 -31 reply
2/4drm/xe: Annotate each dumpable vma as suchdrivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm_types.h+19 -50 replies
3/4drm/xe: Add vm snapshot mutex for easily taking a vm snapshot during devcoredumpdrivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm_types.h+12 -00 replies
4/4drm/xe: Implement VM snapshot supportdrivers/gpu/drm/xe/xe_devcoredump.c drivers/gpu/drm/xe/xe_devcoredump_types.h drivers/gpu/drm/xe/xe_vm.c +1 more+126 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Intel-xe] [PATCH 0/4] drm/xe: Implement snapshot support.

From: Maarten Lankhorst <[email protected]>

Hopefully at least the uapi part can be merged. This takes a coredump in 2 steps:
1. On crash, take a snapshot of the VM layout, and a reference to the bo's to dump.
2. On readout, take a snapshot of each bo to dump and release the reference.

Because devcoredump is done in signaling context, we can't safely allocate a lot of memory, or do things like mmap, etc. As such, we have to wait for readout time to map the BO and copy its contents. This means that userspace may in the worst case overwrite data after the hang, but hopefully this is not a serious problem.

Needs more testing..

Maarten Lankhorst (4):
drm/xe: Add uapi for dumpable bos
drm/xe: Annotate each dumpable vma as such
drm/xe: Add vm snapshot mutex for easily taking a vm snapshot during
devcoredump
drm/xe: Implement VM snapshot support

 drivers/gpu/drm/xe/xe_devcoredump.c       |   9 ++
 drivers/gpu/drm/xe/xe_devcoredump_types.h |   2 +
 drivers/gpu/drm/xe/xe_vm.c                | 150 ++++++++++++++++++++--
 drivers/gpu/drm/xe/xe_vm.h                |   4 +
 drivers/gpu/drm/xe/xe_vm_types.h          |   8 ++
 include/uapi/drm/xe_drm.h                 |   4 +
 6 files changed, 169 insertions(+), 8 deletions(-)
Signature · 1 line
2.40.1