]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc49366eb18ffbd0344cb6a612737fdd69b317d2
treeec012482c6fb74caf8a0b0b516d2d64cde376edb
parentc30a5fd29b0f2da1b6d591325db16d1090e496f6
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