drm/amd/pm: Sienna: Print failed BTC
authorLuben Tuikov <luben.tuikov@amd.com>
Wed, 17 Nov 2021 15:58:09 +0000 (10:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 19:06:53 +0000 (14:06 -0500)
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 <Alexander.Deucher@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

index 9d7b4fade30121ba0e70122ec6b4bb81361b0eb3..a7e3d40d8f0ecc509de8a866e2edd59a54549910 100644 (file)
@@ -2142,7 +2142,13 @@ static int sienna_cichlid_od_edit_dpm_table(struct smu_context *smu,
 
 static int sienna_cichlid_run_btc(struct smu_context *smu)
 {
-       return smu_cmn_send_smc_msg(smu, SMU_MSG_RunDcBtc, NULL);
+       int res;
+
+       res = smu_cmn_send_smc_msg(smu, SMU_MSG_RunDcBtc, NULL);
+       if (res)
+               dev_err(smu->adev->dev, "RunDcBtc failed!\n");
+
+       return res;
 }
 
 static int sienna_cichlid_baco_enter(struct smu_context *smu)