Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH] drm/xe: Signal out-syncs on VM binds if no operations
@ 2023-07-26 16:46 Matthew Brost
  2023-07-26 18:57 ` Rodrigo Vivi
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Matthew Brost @ 2023-07-26 16:46 UTC (permalink / raw)
  To: intel-xe

If no operations are generated for VM binds the out-syncs must still be
signaled.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
---
 drivers/gpu/drm/xe/xe_vm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 6429d6e5113d..ddb1b4af6458 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -3374,6 +3374,8 @@ int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
 unwind_ops:
 	vm_bind_ioctl_ops_unwind(vm, ops, args->num_binds);
 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--)
 		xe_sync_entry_cleanup(&syncs[num_syncs]);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-07-26 20:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26 16:46 [Intel-xe] [PATCH] drm/xe: Signal out-syncs on VM binds if no operations Matthew Brost
2023-07-26 18:57 ` Rodrigo Vivi
2023-07-26 19:33 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-07-26 19:33 ` [Intel-xe] ✓ CI.checkpatch: " Patchwork
2023-07-26 19:34 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-07-26 19:38 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-07-26 19:38 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-07-26 19:40 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-07-26 20:14 ` [Intel-xe] ○ CI.BAT: info " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox