]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: fix pp_dpm_pcie wrong state issue for smu v14.0.2
authorYang Wang <kevinyang.wang@amd.com>
Wed, 10 Dec 2025 12:33:43 +0000 (20:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 22:00:01 +0000 (17:00 -0500)
put wrong value into incorrect data into following function,
which caused it to fail to match the correct item on smu v14.0.2:
smu_cmn_print_pcie_levels()

Fixes: 03d11f8564ca ("drm/amd/pm: Use common helper for smuv14.0.2 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>
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c

index b1016debdf065d0e1fa090b8db1fd7252fa1a3ff..ea08dc11d7542b96519b87fbaf78d1cfa094b2a0 100644 (file)
@@ -1095,8 +1095,10 @@ static int smu_v14_0_2_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_v14_0_2_is_od_feature_supported(smu,