amdkfd: Add packet manager module
authorBen Goz <ben.goz@amd.com>
Wed, 16 Jul 2014 21:55:28 +0000 (00:55 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Wed, 16 Jul 2014 21:55:28 +0000 (00:55 +0300)
commit241f24f823631ced1c6f162db1deebc35037f7d0
tree8b06408156d6b9058690a0b78cdcf5878bd98a23
parent31c21fece7a5f279ebdd1ee260493450017183f4
amdkfd: Add packet manager module

The packet manager module builds PM4 packets for the sole use of the CP
scheduler. Those packets are used by the HIQ to submit runlists to the CP.

v3:

Removed include of cik_mqds.h
Changed lower_32/upper_32 calls to use linux macros
Used new gart allocation functions
Added documentation

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
Always chain runlist if you have more than 1 process or if you have
over-subscription over the number of queues.
Various fixes (typos, style)

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_packet_manager.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_priv.h