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
1010 * valid on VMs with DRM_XE_VM_CREATE_FLAG_FAULT_MODE set. The CPU address1010 * valid on VMs with DRM_XE_VM_CREATE_FLAG_FAULT_MODE set. The CPU address
1011 * mirror flag are only valid for DRM_XE_VM_BIND_OP_MAP operations, the BO1011 * mirror flag are only valid for DRM_XE_VM_BIND_OP_MAP operations, the BO
1012 * handle MBZ, and the BO offset MBZ.1012 * 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.
1013 */1017 */
1014struct drm_xe_vm_bind_op {1018struct drm_xe_vm_bind_op {
1015 /** @extensions: Pointer to the first extension struct, if any */1019 /** @extensions: Pointer to the first extension struct, if any */
@@ -1115,6 +1119,7 @@ struct drm_xe_vm_bind_op { · 99 unmodified lines
1115 /** @flags: Bind flags */1119 /** @flags: Bind flags */
1116 __u32 flags;1120 __u32 flags;
1117 1121
1122#define DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC -1
1118 /**1123 /**
1119 * @prefetch_mem_region_instance: Memory region to prefetch VMA to.1124 * @prefetch_mem_region_instance: Memory region to prefetch VMA to.
1120 * It is a region instance, not a mask.1125 * It is a region instance, not a mask.