drm/amdkfd: Use a systematic method to calculate queue mask bit
authorYong Zhao <Yong.Zhao@amd.com>
Wed, 4 Mar 2020 21:52:41 +0000 (16:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 May 2020 19:19:08 +0000 (15:19 -0400)
commitd09f85d52ad6d1da9d6b8aecca6b81e0b4750afb
treeec012482c6fb74caf8a0b0b516d2d64cde376edb
parent5c180eb910df3c635e22f5327fd074aafafc7523
drm/amdkfd: Use a systematic method to calculate queue mask bit

The queue mask used for set_resources always assumes the queue number
per pipe is 8, so KFD needs to align with that by using function
amdgpu_queue_mask_bit_to_set_resource_bit().

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c