]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Count active CP queues directly
authorYong Zhao <Yong.Zhao@amd.com>
Wed, 5 Feb 2020 19:48:38 +0000 (14:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:20:13 +0000 (14:20 -0500)
commit306e2971082bcb61021ba7bf34a6f26bfb2262f0
treedde095cc875667c409a900dfc49b17da6fc0d5ac
parent0b0653c87923119d018b290896ab29eebba5f1cb
drm/amdkfd: Count active CP queues directly

The previous code of calculating active CP queues is problematic if
some SDMA queues are inactive. Fix that by counting CP queues directly.

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_packet_manager.c