drm/xe: Fix array of binds
authorMatthew Brost <matthew.brost@intel.com>
Thu, 17 Aug 2023 03:15:38 +0000 (20:15 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:40:59 +0000 (11:40 -0500)
commit617eebb9c4807be77ca6f02eee7469e5e111861d
tree3445c1802c76a7eff523260b3e6927f89b60f720
parentbbd52b6153731908e52f68d7c797bef7c42af4f7
drm/xe: Fix array of binds

If multiple bind ops in an array of binds touch the same address range
invalid GPUVA operations are generated as each GPUVA operation is
generated based on the orignal GPUVA state. To fix this, after each
GPUVA operations is generated, commit the GPUVA operation updating the
GPUVA state so subsequent bind ops can see a current GPUVA state.

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