Skip to content

Commit 730ea50

Browse files
committed
drm/amdgpu/gfx9: fix kiq locking in KCQ reset
The ring test needs to be inside the lock. Fixes: fdbd694 ("drm/amdgpu/gfx9: wait for reset done before remap") Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: Jiadong Zhu <Jiadong.Zhu@amd.com>
1 parent 8ff4a4b commit 730ea50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7238,8 +7238,8 @@ static int gfx_v9_0_reset_kcq(struct amdgpu_ring *ring,
72387238
}
72397239
kiq->pmf->kiq_map_queues(kiq_ring, ring);
72407240
amdgpu_ring_commit(kiq_ring);
7241-
spin_unlock_irqrestore(&kiq->ring_lock, flags);
72427241
r = amdgpu_ring_test_ring(kiq_ring);
7242+
spin_unlock_irqrestore(&kiq->ring_lock, flags);
72437243
if (r) {
72447244
DRM_ERROR("fail to remap queue\n");
72457245
return r;

0 commit comments

Comments
 (0)