From: Matthew Brost Date: Sun, 16 Apr 2023 23:17:43 +0000 (-0700) Subject: drm/xe: Allow compute VMs to output dma-fences on binds X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ed1df9897434a1da3f86c868825450fef47def23;p=linux.git drm/xe: Allow compute VMs to output dma-fences on binds Binds are not long running jobs thus we can export dma-fences even if a VM is in compute mode. Signed-off-by: Matthew Brost Reviewed-by: Thomas Hellström Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c index d9579bf5002db..62496a4008d2b 100644 --- a/drivers/gpu/drm/xe/xe_vm.c +++ b/drivers/gpu/drm/xe/xe_vm.c @@ -3166,7 +3166,7 @@ int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file) for (num_syncs = 0; num_syncs < args->num_syncs; num_syncs++) { err = xe_sync_entry_parse(xe, xef, &syncs[num_syncs], &syncs_user[num_syncs], false, - xe_vm_no_dma_fences(vm)); + xe_vm_in_fault_mode(vm)); if (err) goto free_syncs; }