]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdkfd: return -ENOTTY for unsupported IOCTLs
authorGeoffrey McRae <geoffrey.mcrae@amd.com>
Tue, 8 Jul 2025 03:53:40 +0000 (13:53 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:09 +0000 (12:45 +0100)
commit3dca940d8492fb5e962ed663c3b0b8c0ff74c241
tree51d634afa8d62a541d661fc39f2c8ca7eeb9a13e
parent0f2fce4b19caefe3397c8731087e1ceae49972a9
drm/amdkfd: return -ENOTTY for unsupported IOCTLs

[ Upstream commit 57af162bfc8c05332a28c4d458d246cc46d2746d ]

Some kfd ioctls may not be available depending on the kernel version the
user is running, as such we need to report -ENOTTY so userland can
determine the cause of the ioctl failure.

Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c