Skip to content

Commit ead60e9

Browse files
committed
drm/amdgpu/gfx10: use rlc safe mode for soft recovery
Protect the MMIO access with safe mode. Acked-by: Vitaly Prosyak <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 3f2d35c commit ead60e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8949,7 +8949,9 @@ static void gfx_v10_0_ring_soft_recovery(struct amdgpu_ring *ring,
89498949
value = REG_SET_FIELD(value, SQ_CMD, MODE, 0x01);
89508950
value = REG_SET_FIELD(value, SQ_CMD, CHECK_VMID, 1);
89518951
value = REG_SET_FIELD(value, SQ_CMD, VM_ID, vmid);
8952+
amdgpu_gfx_rlc_enter_safe_mode(adev, 0);
89528953
WREG32_SOC15(GC, 0, mmSQ_CMD, value);
8954+
amdgpu_gfx_rlc_exit_safe_mode(adev, 0);
89538955
}
89548956

89558957
static void

0 commit comments

Comments
 (0)