amdkfd: Add kernel queue module
authorBen Goz <ben.goz@amd.com>
Wed, 16 Jul 2014 21:45:35 +0000 (00:45 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Wed, 16 Jul 2014 21:45:35 +0000 (00:45 +0300)
commited6e6a3487bd736cbcfc74fe0f9d9220bae00c72
treeeab96e9c1d318d70b565a759db72c897ab7b2795
parent6e99df5741b3332dcceb86915b2818af640c51f9
amdkfd: Add kernel queue module

The kernel queue module enables the amdkfd to establish kernel queues, not
exposed to user space.

The kernel queues are used for HIQ (HSA Interface Queue) and DIQ (Debug
Interface Queue) operations

v3: Removed use of internal typedefs and added use of the new gart allocation
functions

v4: Fixed a miscalculation in kernel queue wrapping

v5:

Move amdkfd from drm/radeon/ to drm/amd/
Change format of mqd structure to match latest KV firmware
Add support for AQL queues creation to enable working with open-source HSA
runtime
Add define for kernel queue size
Various fixes

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/Makefile
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_pm4_opcodes.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_priv.h