History

drm/xe: Add uapi for dumpable bos

Add the flag XE_VM_BIND_FLAG_DUMPABLE to notify devcoredump that this mapping should be dumped. This is not hooked up, but the uapi should be ready before merging. It's likely easier to dump the contents of the bo's at devcoredump readout time, so it's better if the bos will stay unmodified after a hang. The NEEDS_CPU_MAPPING flag is removed as requirement.

Maarten Lankhorst committed 2 years ago

Commit 76a86b51 parent bd71cdd2 files · +3 −1Browse files

Unified · Split

2 files
  1. drivers/gpu/drm/xe/xe_vm.c +2 −1
  2. include/uapi/drm/xe_drm.h +1 −0
drivers/gpu/drm/xe/xe_vm.c+2−1
@@ -2722,7 +2722,8 @@ static int vm_bind_ioctl_ops_execute(struct xe_vm *vm, · 2721 unmodified lines
27222722
27232723 #define SUPPORTED_FLAGS \
27242724 (DRM_XE_VM_BIND_FLAG_READONLY | \
2725− DRM_XE_VM_BIND_FLAG_IMMEDIATE | DRM_XE_VM_BIND_FLAG_NULL)
2725+ DRM_XE_VM_BIND_FLAG_IMMEDIATE | DRM_XE_VM_BIND_FLAG_NULL | \
2726+ DRM_XE_VM_BIND_FLAG_DUMPABLE)
27262727 #define XE_64K_PAGE_MASK 0xffffull
27272728 #define ALL_DRM_XE_SYNCS_FLAGS (DRM_XE_SYNCS_FLAG_WAIT_FOR_OP)
27282729
include/uapi/drm/xe_drm.h+1−0
@@ -961,6 +961,7 @@ struct drm_xe_vm_bind_op { · 960 unmodified lines
961961 #define DRM_XE_VM_BIND_FLAG_READONLY (1 << 0)
962962 #define DRM_XE_VM_BIND_FLAG_IMMEDIATE (1 << 1)
963963 #define DRM_XE_VM_BIND_FLAG_NULL (1 << 2)
964+#define DRM_XE_VM_BIND_FLAG_DUMPABLE (1 << 3)
964965 /** @flags: Bind flags */
965966 __u32 flags;
966967

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t