aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2025-02-28 14:14:35 -0500
committerAlex Deucher <alexander.deucher@amd.com>2025-04-08 16:48:20 -0400
commitdf85baa767ca39c0a28d56a5a02251844c122a09 (patch)
treea49eb2bc90349b19c657b83762b38fd7cf2edc9f
parentdrm/amdgpu/userq: handle runtime pm (diff)
downloadwireguard-linux-df85baa767ca39c0a28d56a5a02251844c122a09.tar.xz
wireguard-linux-df85baa767ca39c0a28d56a5a02251844c122a09.zip
drm/amdgpu: return an error in the userq IOCTL when DRM_AMDGPU_NAVI3X_USERQ=n
I'd swear this was already fixed, but I guess the patch never landed. Add it now. Reviewed-by: Prike Liang <Prike.Liang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
index 0664e04828c0..a78a3728f6b8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
@@ -402,7 +402,7 @@ int amdgpu_userq_ioctl(struct drm_device *dev, void *data,
int amdgpu_userq_ioctl(struct drm_device *dev, void *data,
struct drm_file *filp)
{
- return 0;
+ return -ENOTSUPP;
}
#endif