Skip to content
/ linux Public

Commit 86017c4

Browse files
hghimiraSasha Levin
authored andcommitted
drm/xe/vm: Skip ufence association for CPU address mirror VMA during MAP
[ Upstream commit 7f08cc5 ] The MAP operation for a CPU address mirror VMA does not require ufence association because such mappings are not GPU-synchronized and do not participate in GPU job completion signaling. Remove the unnecessary ufence addition for this case to avoid -EBUSY failure in check_ufence of unbind ops. Cc: Matthew Brost <matthew.brost@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20251125075628.1182481-6-himal.prasad.ghimiray@intel.com Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent e727210 commit 86017c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/xe/xe_vm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3179,7 +3179,8 @@ static void op_add_ufence(struct xe_vm *vm, struct xe_vma_op *op,
31793179
{
31803180
switch (op->base.op) {
31813181
case DRM_GPUVA_OP_MAP:
3182-
vma_add_ufence(op->map.vma, ufence);
3182+
if (!xe_vma_is_cpu_addr_mirror(op->map.vma))
3183+
vma_add_ufence(op->map.vma, ufence);
31833184
break;
31843185
case DRM_GPUVA_OP_REMAP:
31853186
if (op->remap.prev)

0 commit comments

Comments
 (0)