]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Delete unnecessary unmap queue package submissions
authorYong Zhao <Yong.Zhao@amd.com>
Wed, 5 Feb 2020 21:53:37 +0000 (16:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:20:33 +0000 (14:20 -0500)
commit2bcf5c396b350e31d61204b63a783964f4f75612
treedeeec3f9fdb6ce9db57ee1eabac16710212ac5f8
parentce320e7c170e62932c5fd891d9bfa6ad4755aac4
drm/amdkfd: Delete unnecessary unmap queue package submissions

The previous way of using SDMA queue count to infer whether we should unmap
SDMA engines has bugs. The reason it did not cause issues is because MEC
firmware unmaps all queues (CP + SDMA) when a unmap package for compute
engine is received. Becasue of that, only one unmap queue package
is needed, instead of one unmap queue package for CP and each SDMA engine,
which results in much simpler driver code.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c