]> git.baikalelectronics.ru Git - kernel.git/commit
amdkfd: Disable support for 32-bit user processes
authorOded Gabbay <oded.gabbay@amd.com>
Fri, 5 Dec 2014 08:40:34 +0000 (10:40 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Fri, 5 Dec 2014 20:01:35 +0000 (22:01 +0200)
commitd2ec345a55b005cd435ed4efd789f62f09cf2b85
tree0801554a71620dadf55f319e2936f17f2df049fa
parent8117721fb8ab15c739eb1f7d22b0444a5a3ac6ca
amdkfd: Disable support for 32-bit user processes

This patch checks if the process that opens the /dev/kfd device is 32-bit
process. If so, it returns -EPERM and prints a warning message in dmesg.

This is done to prevent 32-bit user processes from using amdkfd, and hence, HSA
features.

AMD's HSA userspace stack will also support only 64-bit processes on Linux.

Reviewed-by: Alexey Skidanov <alexey.skidanov@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c