]> git.dujemihanovic.xyz Git - linux.git/commit
drm/xe: Add uapi for dumpable bos
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 21 Feb 2024 13:30:18 +0000 (14:30 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 21 Feb 2024 19:08:21 +0000 (20:08 +0100)
commit76a86b58d2b3de31e88acb487ebfa0c3cc7c41d2
treeb951cb284f3bd0f6c605ce0e0262ca1e2fa08f29
parentbd71cdd209c63f3d526aef661282b5252a436c4d
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.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240221133024.898315-3-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/xe/xe_vm.c
include/uapi/drm/xe_drm.h