summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorPiotr Piórkowski <piotr.piorkowski@intel.com>2026-02-11 20:14:41 +0300
committerMichal Wajdeczko <michal.wajdeczko@intel.com>2026-02-13 15:16:36 +0300
commitaafbb42be589d4a3d282b377f50a1ddb42400628 (patch)
treece7bce89f238c25d137936700182856f3f5e29c8 /drivers/gpu
parent1ff4b1730ca421de6bd84b871f68107b9ae46bcf (diff)
downloadlinux-aafbb42be589d4a3d282b377f50a1ddb42400628.tar.xz
drm/xe: Force EXEC_QUEUE_FLAG_KERNEL for kernel internal VMs
VMs created without an associated xe_file originate from kernel contexts and should use kernel exec queues. Ensure such VMs create bind exec queues with EXEC_QUEUE_FLAG_KERNEL set. Let's ensure bind exec queues created for kernel VMs are always marked with EXEC_QUEUE_FLAG_KERNEL. Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patch.msgid.link/20260211171441.3246686-1-piotr.piorkowski@intel.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/xe/xe_vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index e6cfa5dc7f62..a46f11a71c37 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -1657,6 +1657,9 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags, struct xe_file *xef)
if (!vm->pt_root[id])
continue;
+ if (!xef) /* Not from userspace */
+ create_flags |= EXEC_QUEUE_FLAG_KERNEL;
+
q = xe_exec_queue_create_bind(xe, tile, vm, create_flags, 0);
if (IS_ERR(q)) {
err = PTR_ERR(q);