]> www.infradead.org Git - users/hch/configfs.git/commit
drm/xe: Add xe_vm_pgtable_update_op to xe_vma_ops
authorMatthew Brost <matthew.brost@intel.com>
Thu, 4 Jul 2024 04:16:47 +0000 (21:16 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 4 Jul 2024 05:27:00 +0000 (22:27 -0700)
commit2e524668c440104633af1effcc85d1d6234c7ccf
tree95fceae705fe38619c4ba6bac59dd64707429c0a
parent67d90d679eb3447f73e2a1fe55f7e6c6a44c9fa1
drm/xe: Add xe_vm_pgtable_update_op to xe_vma_ops

Each xe_vma_op resolves to 0-3 pt_ops. Add storage for the pt_ops to
xe_vma_ops which is dynamically allocated based the number and types of
xe_vma_op in the xe_vma_ops list. Allocation only implemented in this
patch.

This will help with converting xe_vma_ops (multiple xe_vma_op) in a
atomic update unit.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240704041652.272920-3-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_pt_types.h
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm_types.h