Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Piotr Piórkowski and committed by
Michal Wajdeczko
aafbb42b 1ff4b173

+3
+3
drivers/gpu/drm/xe/xe_vm.c
··· 1657 1657 if (!vm->pt_root[id]) 1658 1658 continue; 1659 1659 1660 + if (!xef) /* Not from userspace */ 1661 + create_flags |= EXEC_QUEUE_FLAG_KERNEL; 1662 + 1660 1663 q = xe_exec_queue_create_bind(xe, tile, vm, create_flags, 0); 1661 1664 if (IS_ERR(q)) { 1662 1665 err = PTR_ERR(q);