[RFC PATCH 19/29] drm/xe: Do not allow usermap exec queues in exec IOCTL
Matthew Brost
matthew.brost at intel.com
Mon Nov 18 23:36:10 UTC 2024
Not supported at the moment, may need something in the no doorbells
available.
Signed-off-by: Matthew Brost <matthew.brost at intel.com>
---
drivers/gpu/drm/xe/xe_exec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_exec.c b/drivers/gpu/drm/xe/xe_exec.c
index 31cca938956f..898e4718d639 100644
--- a/drivers/gpu/drm/xe/xe_exec.c
+++ b/drivers/gpu/drm/xe/xe_exec.c
@@ -132,7 +132,8 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
if (XE_IOCTL_DBG(xe, !q))
return -ENOENT;
- if (XE_IOCTL_DBG(xe, q->flags & EXEC_QUEUE_FLAG_VM)) {
+ if (XE_IOCTL_DBG(xe, q->flags & EXEC_QUEUE_FLAG_VM ||
+ xe_exec_queue_is_usermap(q))) {
err = -EINVAL;
goto err_exec_queue;
}
--
2.34.1
More information about the igt-dev
mailing list