]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amd/pm: fix pcie information for sienna cichlid
authorLikun Gao <Likun.Gao@amd.com>
Tue, 20 Oct 2020 08:29:30 +0000 (16:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Oct 2020 20:14:33 +0000 (16:14 -0400)
Fix the function used for sienna cichlid to get correct PCIE information
by pp_dpm_pcie.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

index 77a0e0799f7459ca39795187040f5a1503134751..496abc31b07e57779576b0da12b7bc6585aae453 100644 (file)
@@ -963,8 +963,8 @@ static int sienna_cichlid_print_clk_levels(struct smu_context *smu,
                }
                break;
        case SMU_PCIE:
-               gen_speed = smu_v11_0_get_current_pcie_link_speed(smu);
-               lane_width = smu_v11_0_get_current_pcie_link_width(smu);
+               gen_speed = smu_v11_0_get_current_pcie_link_speed_level(smu);
+               lane_width = smu_v11_0_get_current_pcie_link_width_level(smu);
                for (i = 0; i < NUM_LINK_LEVELS; i++)
                        size += sprintf(buf + size, "%d: %s %s %dMhz %s\n", i,
                                        (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 0) ? "2.5GT/s," :