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
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -1010,6 +1010,10 @@ struct drm_xe_vm_destroy { · 1009 unmodified lines | ||
| 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 */ |
| @@ -1115,6 +1119,7 @@ struct drm_xe_vm_bind_op { · 99 unmodified lines | ||
| 1115 | 1119 | /** @flags: Bind flags */ |
| 1116 | 1120 | __u32 flags; |
| 1117 | 1121 | |
| 1122 | +#define DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC -1 | |
| 1118 | 1123 | /** |
| 1119 | 1124 | * @prefetch_mem_region_instance: Memory region to prefetch VMA to. |
| 1120 | 1125 | * It is a region instance, not a mask. |