drm/amdkfd: Fix sdma queue allocate race condition
authorOak Zeng <Oak.Zeng@amd.com>
Sat, 15 Jun 2019 00:27:58 +0000 (19:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Jun 2019 16:01:41 +0000 (11:01 -0500)
commit38bb4226ffe51b033ecc6724c00ce0dd210db248
tree38610c16fb416a296435ae6e2bffb1638ed2e240
parent6a6ef5ee257eb178a5ada3b4327a9a208d3a4683
drm/amdkfd: Fix sdma queue allocate race condition

SDMA queue allocation requires the dqm lock as it modify
the global dqm members. Enclose it in the dqm_lock.

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