[RFC 01/29] drm/xe: Introduce xe_vma_op_prefetch_range struct for prefetch of ranges
Matthew Brost
matthew.brost at intel.com
Thu Apr 3 20:59:10 UTC 2025
On Fri, Mar 14, 2025 at 01:31:58PM +0530, Himal Prasad Ghimiray wrote:
> Add xe_vma_op_prefetch_range struct for svm ranges prefetching, including
> an xarray of SVM range pointers, range count, and target memory region.
>
> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
Reviewed-by: Matthew Brost <matthew.brost at intel.com>
> ---
> drivers/gpu/drm/xe/xe_vm_types.h | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_vm_types.h b/drivers/gpu/drm/xe/xe_vm_types.h
> index 84fa41b9fa20..93224a87ab03 100644
> --- a/drivers/gpu/drm/xe/xe_vm_types.h
> +++ b/drivers/gpu/drm/xe/xe_vm_types.h
> @@ -372,6 +372,16 @@ struct xe_vma_op_unmap_range {
> struct xe_svm_range *range;
> };
>
> +/** struct xe_vma_op_prefetch_range - VMA prefetch range operation */
> +struct xe_vma_op_prefetch_range {
> + /** @range: xarray for SVM ranges data */
> + struct xarray range;
> + /** @ranges_count: number of svm ranges to map */
> + u32 ranges_count;
> + /** @region: memory region to prefetch to */
> + u32 region;
> +};
> +
> /** enum xe_vma_op_flags - flags for VMA operation */
> enum xe_vma_op_flags {
> /** @XE_VMA_OP_COMMITTED: VMA operation committed */
> @@ -414,6 +424,8 @@ struct xe_vma_op {
> struct xe_vma_op_map_range map_range;
> /** @unmap_range: VMA unmap range operation specific data */
> struct xe_vma_op_unmap_range unmap_range;
> + /** @prefetch: VMA prefetch range operation specific data */
> + struct xe_vma_op_prefetch_range prefetch_range;
> };
> };
>
> --
> 2.34.1
>
More information about the Intel-xe
mailing list