drm/amdkfd: Fix sdma queue map issue
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 8 Feb 2019 21:44:35 +0000 (15:44 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:26:58 +0000 (07:26 +0200)
commit210dfe6309112dd028bf06561b828a749b6e1169
tree6ca11f82bbbf68178aab762331fef2bd44e616eb
parentdb64bc13944013357d231cbf9d1aee798d7b9892
drm/amdkfd: Fix sdma queue map issue

[ Upstream commit 065e4bdfa1f3ab2884c110394d8b7e7ebe3b988c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c