put wrong value into incorrect data into following function,
which caused it to fail to match the correct item on smu v13.0.7:
smu_cmn_print_pcie_levels()
Fixes: b2debbbb60f1 ("drm/amd/pm: Use common helper for smuv13.0.7 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>
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_7_is_od_feature_supported(smu,
PP_OD_FEATURE_GFXCLK_BIT))