Skip to content

Commit f8eee86

Browse files
committed
drm/amdgpu/gfx12: use proper rlc safe mode helpers
Rather than open coding it for the queue reset. Acked-by: Vitaly Prosyak <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 01d0552 commit f8eee86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5206,7 +5206,7 @@ static int gfx_v12_0_reset_kcq(struct amdgpu_ring *ring, unsigned int vmid)
52065206
if (amdgpu_sriov_vf(adev))
52075207
return -EINVAL;
52085208

5209-
gfx_v12_0_set_safe_mode(adev, 0);
5209+
amdgpu_gfx_rlc_enter_safe_mode(adev, 0);
52105210
mutex_lock(&adev->srbm_mutex);
52115211
soc24_grbm_select(adev, ring->me, ring->pipe, ring->queue, 0);
52125212
WREG32_SOC15(GC, 0, regCP_HQD_DEQUEUE_REQUEST, 0x2);
@@ -5218,7 +5218,7 @@ static int gfx_v12_0_reset_kcq(struct amdgpu_ring *ring, unsigned int vmid)
52185218
}
52195219
soc24_grbm_select(adev, 0, 0, 0, 0);
52205220
mutex_unlock(&adev->srbm_mutex);
5221-
gfx_v12_0_unset_safe_mode(adev, 0);
5221+
amdgpu_gfx_rlc_exit_safe_mode(adev, 0);
52225222

52235223
r = amdgpu_bo_reserve(ring->mqd_obj, false);
52245224
if (unlikely(r != 0)) {

0 commit comments

Comments
 (0)