aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2018-10-29 21:12:22 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-10-30 17:53:28 -0400
commit1ecd0da5888960ecff6409393c11b35fad644104 (patch)
tree11a5f71a5e621d5560aa949f627b151f0719f791
parent0cafc82fae41531b0162150f9a97f2c74f97118f (diff)
drm/amd/powerplay: revise Vega20 pptable version check
Tell the version numbers when the pptable versions do not match. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c
index f7e8bbdc20b0..97f8a1a970c3 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c
@@ -642,8 +642,14 @@ static int check_powerplay_tables(
642 "Unsupported PPTable format!", return -1); 642 "Unsupported PPTable format!", return -1);
643 PP_ASSERT_WITH_CODE(powerplay_table->sHeader.structuresize > 0, 643 PP_ASSERT_WITH_CODE(powerplay_table->sHeader.structuresize > 0,
644 "Invalid PowerPlay Table!", return -1); 644 "Invalid PowerPlay Table!", return -1);
645 PP_ASSERT_WITH_CODE(powerplay_table->smcPPTable.Version == PPTABLE_V20_SMU_VERSION, 645
646 "Unmatch PPTable version, vbios update may be needed!", return -1); 646 if (powerplay_table->smcPPTable.Version != PPTABLE_V20_SMU_VERSION) {
647 pr_info("Unmatch PPTable version: "
648 "pptable from VBIOS is V%d while driver supported is V%d!",
649 powerplay_table->smcPPTable.Version,
650 PPTABLE_V20_SMU_VERSION);
651 return -EINVAL;
652 }
647 653
648 //dump_pptable(&powerplay_table->smcPPTable); 654 //dump_pptable(&powerplay_table->smcPPTable);
649 655