]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe: Allow compute VMs to output dma-fences on binds
authorMatthew Brost <matthew.brost@intel.com>
Sun, 16 Apr 2023 23:17:43 +0000 (16:17 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:33:51 +0000 (18:33 -0500)
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 <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_vm.c

index d9579bf5002dbd0f43b7baf3f986d22298bc943f..62496a4008d2b642bb945a760f5fa1476893162b 100644 (file)
@@ -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;
        }