amdkfd: Add process queue manager module
authorBen Goz <ben.goz@amd.com>
Wed, 16 Jul 2014 22:04:10 +0000 (01:04 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Wed, 16 Jul 2014 22:04:10 +0000 (01:04 +0300)
commit45102048f77ef72a57a877efad0f012b917d4df7
treebe08a988cacf7bf00ad66693c25cab6321ae48b8
parent241f24f823631ced1c6f162db1deebc35037f7d0
amdkfd: Add process queue manager module

The queue scheduler divides into two sections, one section is process bounded
and the other section is device bounded.
The process bounded section is handled by this module. The PQM handles usermode
queue setup, updates and tear-down.

v3:

Used kernel parameter to limit queues per process instead of define
Added use of doorbell address from user

v4:

Modified pqm_create_queue so that only when creating usermode queues the
driver should return the queue properties to the userspace.

Added an info message print when no more queues can be opened because of the
queue per process limitation

v5:

Move amdkfd from drm/radeon/ to drm/amd/
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_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c [new file with mode: 0644]