[PATCH v2 28/32] drm/xe/uapi: Add flag for consulting madvise hints on svm prefetch
Matthew Brost
matthew.brost at intel.com
Wed May 14 21:05:26 UTC 2025
On Mon, Apr 07, 2025 at 03:47:15PM +0530, Himal Prasad Ghimiray wrote:
> Introduce flag DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC to ensure prefetching
> in madvise-advised memory regions
>
> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
> ---
> include/uapi/drm/xe_drm.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
> index aaf515df3a83..ab96dee25f6c 100644
> --- a/include/uapi/drm/xe_drm.h
> +++ b/include/uapi/drm/xe_drm.h
> @@ -1111,6 +1111,7 @@ struct drm_xe_vm_bind_op {
> /** @flags: Bind flags */
> __u32 flags;
>
> +#define DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC -1
Replied to wrong version before. Kernel doc.
Otherwise uAPI LGTM.
Matt
> /**
> * @prefetch_mem_region_instance: Memory region to prefetch VMA to.
> * It is a region instance, not a mask.
> --
> 2.34.1
>
More information about the Intel-xe
mailing list