These patches cherry-pick most fixes, improvements and refactoring in the device queue manager from our internal branch. I squashed some patches that applied incremental fixes to the same code. Patch 5 is the extreme case that comes with a bunch of refactoring too. I think I squashed about a dozen patches by 5 authors that all overlapped and and applied incremental fixes and improvements to process termination handling. The last missing fixes in kfd_device_queue_manager.c are related to SDMA, which I'll leave for another patch series that also need changes in amdgpu. It will also add SDMA support for CZ. That's another 11 patches that I may be able to squash to 2 or 3. Felix Kuehling (4): drm/amdkfd: Fix MQD updates drm/amdkfd: Improve process termination handling in the queue manager drm/amdkfd: Clean up process queue management drm/amdkfd: Limit queue number per process and device to 127 Yong Zhao (4): drm/amdkfd: Avoid name confusion involved in queue unmapping drm/amdkfd: Simplify execute and unmap queue APIs drm/amdkfd: Avoid submitting an unnecessary packet to HWS drm/amdkfd: Compress unnecessary function parameters shaoyunl (1): drm/amdkfd: Improve multiple SDMA queues support per process drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 3 +- drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c | 5 +- .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 376 ++++++++++++++------- .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.h | 5 + drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | 27 +- drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 41 ++- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 36 +- .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 62 ++-- 8 files changed, 348 insertions(+), 207 deletions(-) -- 2.7.4