]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Add mem_region to properties line in VM snapshot capture
authorMatthew Brost <matthew.brost@intel.com>
Wed, 26 Nov 2025 18:59:46 +0000 (10:59 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 1 Dec 2025 18:03:13 +0000 (10:03 -0800)
commit81e66a55a8d7c57c664520074c770484054f43b2
tree8cfcdc155ec15153bb299ec6e2e73be678109e42
parent819c9ffd425971e0e913e5ee690f3485a28c1e0b
drm/xe: Add mem_region to properties line in VM snapshot capture

Add memory region to properties line in VM snapshot capture indicating
where the memory is located. The memory region corresponds to regions in
the uAPI. This is useful information for debug and will help build a
robust GPU hang replay tool.

The current format is:

[<vma address>]: <permissions>|<type>|mem_region=0x%x

Permissions has two options, either "read_only" or "read_write".

Type has three options, either "userptr", "null_sparse", or "bo".

Memory region is a bit mask of where the memory is located.

Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patch.msgid.link/20251126185952.546277-4-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c