[PATCH v7 12/12] drm/amdgpu: [REVERTME] block usermode queue IOCTL

Shashank Sharma shashank.sharma at amd.com
Tue Oct 10 10:17:52 UTC 2023


This patch blocks the amdgpu usermode queue IOCTL function until
a valid userspace client gets merged upstream. This patch must be
reverted as soon as we have the mesa-3D consumer stack available.

Cc: Alex Deucher <alexander.deucher at amd.com>
Cc: Christian Koenig <christian.koenig at amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
index 26cdd54acd74..22daeee5bf7c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
@@ -330,6 +330,9 @@ int amdgpu_userq_ioctl(struct drm_device *dev, void *data,
 	union drm_amdgpu_userq *args = data;
 	int r = 0;
 
+	DRM_ERROR("Usermode queue is not ready to use\n");
+	return -EOPNOTSUPP;
+
 	switch (args->in.op) {
 	case AMDGPU_USERQ_OP_CREATE:
 		r = amdgpu_userqueue_create(filp, args);
-- 
2.42.0



More information about the amd-gfx mailing list