Skip to content

Commit 83293f7

Browse files
superm1alexdeucher
authored andcommitted
drm/amd/display: reset dcn31 SMU mailbox on failures
Otherwise future commands may fail as well leading to downstream problems that look like they stemmed from a timeout the first time but really didn't. Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 5fea167 commit 83293f7

File tree

1 file changed

+6
-0
lines changed
  • drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31

1 file changed

+6
-0
lines changed

drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_smu.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ static int dcn31_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr,
119119

120120
result = dcn31_smu_wait_for_response(clk_mgr, 10, 200000);
121121

122+
if (result == VBIOSSMC_Result_Failed) {
123+
ASSERT(0);
124+
REG_WRITE(MP1_SMN_C2PMSG_91, VBIOSSMC_Result_OK);
125+
return -1;
126+
}
127+
122128
if (IS_SMU_TIMEOUT(result)) {
123129
ASSERT(0);
124130
dm_helpers_smu_timeout(CTX, msg_id, param, 10 * 200000);

0 commit comments

Comments
 (0)