]> git.proxmox.com Git - mirror_ubuntu-kernels.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>
Thu, 22 Oct 2020 03:06:23 +0000 (23:06 -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>
Cc: stable@vger.kernel.org # 5.9.x
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

index ca2abb2e53407879368fe8043d4775f00a3797b2..d708b383f83be2fed14c9e597a02f22c8d048f11 100644 (file)
@@ -962,8 +962,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," :