drm/xe: Move ufence add to vm_bind_ioctl_ops_fini
authorMatthew Brost <matthew.brost@intel.com>
Thu, 25 Apr 2024 04:55:11 +0000 (21:55 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 26 Apr 2024 19:10:06 +0000 (12:10 -0700)
commit5aa5eea09af08ad446f78f3de10388c98f52f19c
tree4f55a6dbebf4ff5b7d3579c93a2c4251ef9dcd88
parentfda75ef80bddf2f08b0e597d59da69a3d8eb5be2
drm/xe: Move ufence add to vm_bind_ioctl_ops_fini

Rather than adding a ufence to a VMA in the bind function, add the
ufence to all VMAs in the IOCTL that require binds in
vm_bind_ioctl_ops_fini. This help withs the transition to job 1 per VM
bind IOCTL.

v2:
 - Rebase
v3:
 - Fix typo in commit (Oak)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Oak Zeng <oak.zeng@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240425045513.1913039-12-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_sync.c
drivers/gpu/drm/xe/xe_sync.h
drivers/gpu/drm/xe/xe_vm.c