summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Wang <kevinyang.wang@amd.com>2025-12-11 07:46:52 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-01-06 01:00:01 +0300
commit14b6a73ce1a33e20d6e526415c0af34a9e01f64a (patch)
treec353b984106ab9566233b03979128b545c4338f7
parent137a9127759fb6a6c526dece90fa78222c1164d6 (diff)
downloadlinux-14b6a73ce1a33e20d6e526415c0af34a9e01f64a.tar.xz
drm/amd/pm: fix pp_dpm_pcie wrong state issue for smu v13.0.0
put wrong value into incorrect data into following function, which caused it to fail to match the correct item on smu v13.0.0: smu_cmn_print_pcie_levels() Fixes: a95f01edd80b ("drm/amd/pm: Use common helper for smuv13.0.0 dpm") Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
index c95dbee06f49..cddb8b283e3b 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
@@ -1234,8 +1234,10 @@ static int smu_v13_0_0_emit_clk_levels(struct smu_context *smu,
return ret;
pcie_table = &(dpm_context->dpm_tables.pcie_table);
- return smu_cmn_print_pcie_levels(smu, pcie_table, gen_speed,
- lane_width, buf, offset);
+ return smu_cmn_print_pcie_levels(smu, pcie_table,
+ SMU_DPM_PCIE_GEN_IDX(gen_speed),
+ SMU_DPM_PCIE_WIDTH_IDX(lane_width),
+ buf, offset);
case SMU_OD_SCLK:
if (!smu_v13_0_0_is_od_feature_supported(smu,
PP_OD_FEATURE_GFXCLK_BIT))