mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 22:06:44 +07:00
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>
This commit is contained in:
parent
0cafc82fae
commit
1ecd0da588
@ -642,8 +642,14 @@ static int check_powerplay_tables(
|
||||
"Unsupported PPTable format!", return -1);
|
||||
PP_ASSERT_WITH_CODE(powerplay_table->sHeader.structuresize > 0,
|
||||
"Invalid PowerPlay Table!", return -1);
|
||||
PP_ASSERT_WITH_CODE(powerplay_table->smcPPTable.Version == PPTABLE_V20_SMU_VERSION,
|
||||
"Unmatch PPTable version, vbios update may be needed!", return -1);
|
||||
|
||||
if (powerplay_table->smcPPTable.Version != PPTABLE_V20_SMU_VERSION) {
|
||||
pr_info("Unmatch PPTable version: "
|
||||
"pptable from VBIOS is V%d while driver supported is V%d!",
|
||||
powerplay_table->smcPPTable.Version,
|
||||
PPTABLE_V20_SMU_VERSION);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
//dump_pptable(&powerplay_table->smcPPTable);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user