drm/amdkfd: Fix sdma_bitmap overflow issue
authorOak Zeng <Oak.Zeng@amd.com>
Tue, 9 Jul 2019 14:40:15 +0000 (09:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:04 +0000 (14:18 -0500)
commit35cdc81bfa94d10373ecae279f3c48ca858ac4fd
tree6802e5a17e7c87005d559c0056eb755963fa4a77
parent3a68a638a96f1468e267681f833928fd66185a6a
drm/amdkfd: Fix sdma_bitmap overflow issue

In the original formula, when sdma queue number is 64,
the left shift overflows. Use an equivalence that won't
overflow.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c