drm/amd: Don't show warning on reading vbios values for SMU13 3.1
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 14 Jun 2022 04:53:52 +0000 (23:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jun 2022 22:17:21 +0000 (18:17 -0400)
Some APUs with SMU13 are showing the following message:
`amdgpu 0000:63:00.0: amdgpu: Unexpected and unhandled version: 3.1`

This warning isn't relevant for smu info 3.1, as no bootup information
is present in the table.

Fixes: 593a54f18031 ("drm/amd/pm: correct the way for retrieving bootup clocks")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

index f18f960..0e59ab2 100644 (file)
@@ -731,6 +731,8 @@ int smu_v13_0_get_vbios_bootup_values(struct smu_context *smu)
                        smu->smu_table.boot_values.vclk = smu_info_v3_6->bootup_vclk_10khz;
                        smu->smu_table.boot_values.dclk = smu_info_v3_6->bootup_dclk_10khz;
                        smu->smu_table.boot_values.fclk = smu_info_v3_6->bootup_fclk_10khz;
+               } else if ((frev == 3) && (crev == 1)) {
+                       return 0;
                } else if ((frev == 4) && (crev == 0)) {
                        smu_info_v4_0 = (struct atom_smu_info_v4_0 *)header;