History

drm/xe/uapi: Add flag for consulting madvise hints on svm prefetch

Introduce flag DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC to ensure prefetching in madvise-advised memory regions v2 (Matthew Brost) - Add kernel-doc v3 (Matthew Brost) - Fix kernel-doc

Himal Prasad Ghimiray committed 1 year ago

Commit fa1a82c1 parent 18d36fd1 file · +5 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/xe_drm.h+5−0
@@ -1010,6 +1010,10 @@ struct drm_xe_vm_destroy { · 1009 unmodified lines
10101010 * valid on VMs with DRM_XE_VM_CREATE_FLAG_FAULT_MODE set. The CPU address
10111011 * mirror flag are only valid for DRM_XE_VM_BIND_OP_MAP operations, the BO
10121012 * handle MBZ, and the BO offset MBZ.
1013+ *
1014+ * The @prefetch_mem_region_instance for %DRM_XE_VM_BIND_OP_PREFETCH can also be:
1015+ * - %DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC, which ensures prefetching occurs in
1016+ * the memory region advised by madvise.
10131017 */
10141018 struct drm_xe_vm_bind_op {
10151019 /** @extensions: Pointer to the first extension struct, if any */
@@ -1115,6 +1119,7 @@ struct drm_xe_vm_bind_op { · 99 unmodified lines
11151119 /** @flags: Bind flags */
11161120 __u32 flags;
11171121
1122+#define DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC -1
11181123 /**
11191124 * @prefetch_mem_region_instance: Memory region to prefetch VMA to.
11201125 * It is a region instance, not a mask.