]> Gentwo Git Trees - linux/.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Aug 2025 18:14:54 +0000 (14:14 -0400)
commit57af162bfc8c05332a28c4d458d246cc46d2746d
tree48769a7a2c82bfcf062ab8651e8d172eafd2959d
parent065e23170a1e09bc9104b761183e59562a029619
drm/amdkfd: return -ENOTTY for unsupported IOCTLs

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>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c