Skip to content

Commit dc78fea

Browse files
Luben Tuikovalexdeucher
authored andcommitted
drm/amd/pm: Sienna: Print failed BTC
Add a print in sienna_cichlid_run_btc() to help debug and to mirror other platforms, as no print is present in the caller, smu_smc_hw_setup(). Cc: Alex Deucher <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ca4b32b commit dc78fea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,7 +2142,13 @@ static int sienna_cichlid_od_edit_dpm_table(struct smu_context *smu,
21422142

21432143
static int sienna_cichlid_run_btc(struct smu_context *smu)
21442144
{
2145-
return smu_cmn_send_smc_msg(smu, SMU_MSG_RunDcBtc, NULL);
2145+
int res;
2146+
2147+
res = smu_cmn_send_smc_msg(smu, SMU_MSG_RunDcBtc, NULL);
2148+
if (res)
2149+
dev_err(smu->adev->dev, "RunDcBtc failed!\n");
2150+
2151+
return res;
21462152
}
21472153

21482154
static int sienna_cichlid_baco_enter(struct smu_context *smu)

0 commit comments

Comments
 (0)