Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://lore.kernel.org/r/20250821173104.3030148-13-himal.prasad.ghimiray@intel.com
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>

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