drm/xe: Move ufence check to op_lock_and_prep
authorMatthew Brost <matthew.brost@intel.com>
Thu, 25 Apr 2024 04:55:10 +0000 (21:55 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 26 Apr 2024 19:10:05 +0000 (12:10 -0700)
commitfda75ef80bddf2f08b0e597d59da69a3d8eb5be2
tree2e95b075be85924dcfd4b0ae4ee02d3f88efea0e
parent61e3270ef9610ab40b1b56aa62e2b8471c32f1f7
drm/xe: Move ufence check to op_lock_and_prep

Rather than checking for an unsignaled ufence ay unbind time, check for
this during the op_lock_and_prep function. This helps with the
transition to job 1 per VM bind IOCTL.

v2:
 - Rebase
v3:
 - Fix typo in commit message (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-11-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c