Skip to content

Commit 3f2d35c

Browse files
committed
drm/amdgpu/gfx11: 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 21818f3 commit 3f2d35c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6091,7 +6091,9 @@ static void gfx_v11_0_ring_soft_recovery(struct amdgpu_ring *ring,
60916091
value = REG_SET_FIELD(value, SQ_CMD, MODE, 0x01);
60926092
value = REG_SET_FIELD(value, SQ_CMD, CHECK_VMID, 1);
60936093
value = REG_SET_FIELD(value, SQ_CMD, VM_ID, vmid);
6094+
amdgpu_gfx_rlc_enter_safe_mode(adev, 0);
60946095
WREG32_SOC15(GC, 0, regSQ_CMD, value);
6096+
amdgpu_gfx_rlc_exit_safe_mode(adev, 0);
60956097
}
60966098

60976099
static void

0 commit comments

Comments
 (0)