Revert "drm/amdkfd: Fix sdma queue allocate race condition"
authorOak Zeng <Oak.Zeng@amd.com>
Sat, 15 Jun 2019 00:32:51 +0000 (19:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Jun 2019 16:01:41 +0000 (11:01 -0500)
commit70d488fb3f9e096e037994aa4b18441fea625e7b
tree9dfe5c64a647619a83feda13600c711b6b3ea7e2
parenteb03e7959c36b1df2cc7c9054e1ee1e821368272
Revert "drm/amdkfd: Fix sdma queue allocate race condition"

This reverts commit f77dac6cd62e5d4bcadd740620af1218bfb54cc6.
This fix is not proper. allocate_mqd can't be moved before
allocate_sdma_queue as it depends on q->properties->sdma_id
set in later.

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