Commit 70748acb authored by Matthew Brost's avatar Matthew Brost Committed by Rodrigo Vivi

drm/xe: Signal out-syncs on VM binds if no operations

If no operations are generated for VM binds the out-syncs must still be
signaled.
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 342206b7
...@@ -3378,6 +3378,8 @@ int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file) ...@@ -3378,6 +3378,8 @@ int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
unwind_ops: unwind_ops:
vm_bind_ioctl_ops_unwind(vm, ops, args->num_binds); vm_bind_ioctl_ops_unwind(vm, ops, args->num_binds);
free_syncs: free_syncs:
for (i = 0; err == -ENODATA && i < num_syncs; i++)
xe_sync_entry_signal(&syncs[i], NULL, dma_fence_get_stub());
while (num_syncs--) while (num_syncs--)
xe_sync_entry_cleanup(&syncs[num_syncs]); xe_sync_entry_cleanup(&syncs[num_syncs]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment