commit | f77dac6cd62e5d4bcadd740620af1218bfb54cc6 | [log] [tgz] |
---|---|---|
author | Oak Zeng <Oak.Zeng@amd.com> | Thu Jun 06 13:19:06 2019 -0500 |
committer | Alex Deucher <alexander.deucher@amd.com> | Tue Jun 11 12:57:18 2019 -0500 |
tree | 6967d9f4ca95c2d04a80fa905d7c68a628758371 | |
parent | 06b89b38f3cc518a761164f9f958a9607bbb3587 [diff] |
drm/amdkfd: Fix sdma queue allocate race condition SDMA queue allocation requires the dqm lock at it modify the global dqm members. Move up the dqm_lock so sdma queue allocation is enclosed in the critical section. Move mqd allocation out of critical section to avoid circular lock dependency. Signed-off-by: Oak Zeng <Oak.Zeng@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>