diff options
author | Jonathan Cavitt <jonathan.cavitt@intel.com> | 2024-02-23 15:04:06 -0800 |
---|---|---|
committer | Kamil Konieczny <kamil.konieczny@linux.intel.com> | 2024-02-26 16:42:48 +0100 |
commit | 313bd7c343138f357a3943551500e66594785c76 (patch) | |
tree | 8a97209a2963e0047c03d94f12424a3ba14eb4a9 /tests/intel | |
parent | ca460793962d6c11c5e19894d629a42eab724156 (diff) |
tests/xe_spin_batch: Correct xe_vm_bind_async usage
The third parameter of xe_vm_bind_async is the exec_queue id, not the gt
id. Set it to 0 in the preempter, as there should not be an exec_queue
at the time of execution.
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Suggested-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Diffstat (limited to 'tests/intel')
-rw-r--r-- | tests/intel/xe_spin_batch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/intel/xe_spin_batch.c b/tests/intel/xe_spin_batch.c index c18306350..faf569baf 100644 --- a/tests/intel/xe_spin_batch.c +++ b/tests/intel/xe_spin_batch.c @@ -198,7 +198,7 @@ static void preempter(int fd, struct drm_xe_engine_class_instance *hwe) vram_if_possible(fd, hwe->gt_id), DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM); - xe_vm_bind_async(fd, vm, hwe->gt_id, bo, 0, addr, bo_size, &sync, 1); + xe_vm_bind_async(fd, vm, 0, bo, 0, addr, bo_size, &sync, 1); data = xe_bo_map(fd, bo, bo_size); store_dword_batch(data, addr, value); |