Skip to content

Commit 4f7d010

Browse files
Evan Quanalexdeucher
authored andcommitted
drm/amd/powerplay: unload mp1 for Arcturus RAS baco reset
This sequence is recommended by PMFW team for the baco reset with PMFW reloaded. And it seems able to address the random failure seen on Arcturus. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Feifei Xu <[email protected]> Reviewed-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8c7f0a4 commit 4f7d010

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/amd/powerplay/smu_v11_0.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,12 @@ int smu_v11_0_baco_set_state(struct smu_context *smu, enum smu_baco_state state)
17181718
if (ret)
17191719
goto out;
17201720

1721+
if (ras && ras->supported) {
1722+
ret = smu_send_smc_msg(smu, SMU_MSG_PrepareMp1ForUnload, NULL);
1723+
if (ret)
1724+
goto out;
1725+
}
1726+
17211727
/* clear vbios scratch 6 and 7 for coming asic reinit */
17221728
WREG32(adev->bios_scratch_reg_offset + 6, 0);
17231729
WREG32(adev->bios_scratch_reg_offset + 7, 0);

0 commit comments

Comments
 (0)