OpenCloudOS-Kernel/drivers/gpu/drm/amd/amdkfd
Oded Gabbay a18069c132 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>
2014-12-05 22:01:35 +02:00
..
Kconfig amdkfd: Remove DRM_AMDGPU dependency from Kconfig 2014-11-21 22:36:09 +02:00
Makefile amdkfd: Add interrupt handling module 2014-07-17 01:37:30 +03:00
cik_regs.h amdkfd: Add mqd_manager module 2014-07-17 00:36:17 +03:00
kfd_chardev.c amdkfd: Disable support for 32-bit user processes 2014-12-05 22:01:35 +02:00
kfd_crat.h amdkfd: Add topology module to amdkfd 2014-07-16 21:22:32 +03:00
kfd_device.c amdkfd: Clear ctx cb before suspend 2014-11-09 22:36:22 +02:00
kfd_device_queue_manager.c amdkfd: Fix memory leak of mqds on dqm fini 2014-11-25 15:16:38 +02:00
kfd_device_queue_manager.h amdkfd: Add device queue manager module 2014-07-17 01:27:00 +03:00
kfd_doorbell.c amdkfd: explicitely include io.h in kfd_doorbell.c 2014-11-21 22:04:44 +02:00
kfd_flat_memory.c amdkfd: Fix sparse warnings in kfd_flat_memory.c 2014-11-20 15:49:49 +02:00
kfd_interrupt.c amdkfd: Add interrupt handling module 2014-07-17 01:37:30 +03:00
kfd_kernel_queue.c amdkfd: Set *buffer_ptr to NULL in case of error 2014-12-04 14:09:02 +02:00
kfd_kernel_queue.h amdkfd: Add kernel queue module 2014-07-17 00:45:35 +03:00
kfd_module.c amdkfd: Add module parameter of scheduling policy 2014-07-17 00:48:28 +03:00
kfd_mqd_manager.c amdkfd: is_occupied() can be static 2014-11-20 15:50:53 +02:00
kfd_mqd_manager.h amdkfd: Add mqd_manager module 2014-07-17 00:36:17 +03:00
kfd_packet_manager.c amdkfd: Add packet manager module 2014-07-17 00:55:28 +03:00
kfd_pasid.c amdkfd: use sizeof(long) granularity for the pasid bitmask 2014-12-03 09:26:25 -05:00
kfd_pm4_headers.h amdkfd: Add kernel queue module 2014-07-17 00:45:35 +03:00
kfd_pm4_opcodes.h amdkfd: Add kernel queue module 2014-07-17 00:45:35 +03:00
kfd_priv.h amdkfd: Instead of using get function, use container_of 2014-11-19 17:07:00 +02:00
kfd_process.c amdkfd: use atomic allocations within srcu callbacks 2014-12-03 10:19:36 -05:00
kfd_process_queue_manager.c amdkfd: fix an error handling bug in pqm_create_queue() 2014-11-25 13:24:51 +03:00
kfd_queue.c amdkfd: Add queue module 2014-07-17 00:18:51 +03:00
kfd_topology.c amdkfd: Fix sparse warnings in kfd_topology.c 2014-11-20 15:41:33 +02:00
kfd_topology.h amdkfd: Add topology module to amdkfd 2014-07-16 21:22:32 +03:00