Skip to content

Commit de74079

Browse files
committed
drm/xe: Add debug prints for skipping rebinds
Will help debug issues with VM binds. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240221032743.3698849-1-matthew.brost@intel.com
1 parent 0eb2a18 commit de74079

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/gpu/drm/xe/xe_vm.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,7 @@ static int vm_bind_ioctl_ops_parse(struct xe_vm *vm, struct xe_exec_queue *q,
23012301
struct xe_sync_entry *syncs, u32 num_syncs,
23022302
struct list_head *ops_list, bool last)
23032303
{
2304+
struct xe_device *xe = vm->xe;
23042305
struct xe_vma_op *last_op = NULL;
23052306
struct drm_gpuva_op *__op;
23062307
int err = 0;
@@ -2381,6 +2382,9 @@ static int vm_bind_ioctl_ops_parse(struct xe_vm *vm, struct xe_exec_queue *q,
23812382
xe_vma_end(vma) -
23822383
xe_vma_start(old);
23832384
op->remap.start = xe_vma_end(vma);
2385+
vm_dbg(&xe->drm, "REMAP:SKIP_PREV: addr=0x%016llx, range=0x%016llx",
2386+
(ULL)op->remap.start,
2387+
(ULL)op->remap.range);
23842388
}
23852389
}
23862390

@@ -2414,6 +2418,9 @@ static int vm_bind_ioctl_ops_parse(struct xe_vm *vm, struct xe_exec_queue *q,
24142418
op->remap.range -=
24152419
xe_vma_end(old) -
24162420
xe_vma_start(vma);
2421+
vm_dbg(&xe->drm, "REMAP:SKIP_NEXT: addr=0x%016llx, range=0x%016llx",
2422+
(ULL)op->remap.start,
2423+
(ULL)op->remap.range);
24172424
}
24182425
}
24192426
break;

0 commit comments

Comments
 (0)