drm/amdkfd: Improve multiple SDMA queues support per process
authorshaoyunl <Shaoyun.Liu@amd.com>
Wed, 27 Sep 2017 04:09:56 +0000 (00:09 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 27 Sep 2017 04:09:56 +0000 (00:09 -0400)
commite139cd2a2ff842bd4a5d089b9d251ca62f58ecac
treeed0d1cd3f936217993e400db36b05fb37f8ee61d
parent36c2d7eb5e99a4d765b1ec241823d563c71b1125
drm/amdkfd: Improve multiple SDMA queues support per process

HWS does not support over-subscription and the scheduler can not internally
modify the engine. Driver needs to program the correct engine ID.

Fix the queue and engine selection to create queues on alternating SDMA
engines. This allows concurrent bi-directional DMA transfers in a process
that creates two SDMA queues.

Signed-off-by: shaoyun liu <shaoyun.liu@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c