From: Matthew Brost Date: Thu, 13 Apr 2023 01:48:41 +0000 (-0700) Subject: drm/xe: Ensure LR engines are not persistent X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=911cd9b3b4e1d10250987864fa19315c772edf9d;p=linux.git drm/xe: Ensure LR engines are not persistent With our ref counting scheme long running (LR) engines only close properly if not persistent, ensure that LR engines are non-persistent. v2: spell out LR Signed-off-by: Matthew Brost Reviewed-by: Thomas Hellström Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_engine.c b/drivers/gpu/drm/xe/xe_engine.c index 1843e886a405b..e72a94a944d00 100644 --- a/drivers/gpu/drm/xe/xe_engine.c +++ b/drivers/gpu/drm/xe/xe_engine.c @@ -599,7 +599,9 @@ int xe_engine_create_ioctl(struct drm_device *dev, void *data, return -ENOENT; e = xe_engine_create(xe, vm, logical_mask, - args->width, hwe, ENGINE_FLAG_PERSISTENT); + args->width, hwe, + xe_vm_no_dma_fences(vm) ? 0 : + ENGINE_FLAG_PERSISTENT); xe_vm_put(vm); if (IS_ERR(e)) return PTR_ERR(e);