drm/xe: Fixup unwind on VM ops errors
authorMatthew Brost <matthew.brost@intel.com>
Mon, 14 Aug 2023 03:19:20 +0000 (20:19 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:40:52 +0000 (11:40 -0500)
commit5ef091fc32a4fe7116a4ecc778369f161de9c11a
tree2ae5cdf2e033f549ddf6ad1ba2f87c6359132876
parent35dfb48462d92ce5514f883c461857ca55bdb499
drm/xe: Fixup unwind on VM ops errors

Remap ops have 3 parts: unmap, prev, and next. The commit step can fail
on any of these. Add a flag for each to these so the unwind is only done
the steps that have been committed.

v2: (Rodrigo) Use bit macros

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm_types.h