drm/amdkfd: Fix sdma queue map issue
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 8 Feb 2019 21:44:35 +0000 (15:44 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:02 +0000 (12:21 -0500)
commit065e4bdfa1f3ab2884c110394d8b7e7ebe3b988c
tree394fb2b07be9c284e2e2b14be07329b4927355b3
parente78579aab7c3e112b85bf92d76432b917c841b5b
drm/amdkfd: Fix sdma queue map issue

Previous codes assumes there are two sdma engines.
This is not true e.g., Raven only has 1 SDMA engine.
Fix the issue by using sdma engine number info in
device_info.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-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