Skip to content

Commit 91739a8

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amd/pm: Add error log for smu v13.0.6 reset
For all mode-2 reset fail cases, add error log. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org # 6.7.x
1 parent d7a254f commit 91739a8

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,17 +2235,18 @@ static int smu_v13_0_6_mode2_reset(struct smu_context *smu)
22352235
continue;
22362236
}
22372237

2238-
if (ret) {
2239-
dev_err(adev->dev,
2240-
"failed to send mode2 message \tparam: 0x%08x error code %d\n",
2241-
SMU_RESET_MODE_2, ret);
2238+
if (ret)
22422239
goto out;
2243-
}
2240+
22442241
} while (ret == -ETIME && timeout);
22452242

22462243
out:
22472244
mutex_unlock(&smu->message_lock);
22482245

2246+
if (ret)
2247+
dev_err(adev->dev, "failed to send mode2 reset, error code %d",
2248+
ret);
2249+
22492250
return ret;
22502251
}
22512252

0 commit comments

Comments
 (0)