Skip to content

Commit 4f74c2d

Browse files
Yang Wangalexdeucher
authored andcommitted
drm/amd/pm: fix wrong pcie parameter on navi1x
fix wrong pcie dpm parameter on navi1x Fixes: 1a18607 ("drm/amd/pm: override pcie dpm parameters only if it is necessary") Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4671 Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Co-developed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 5c5189c)
1 parent 19158c7 commit 4f74c2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,8 +2464,8 @@ static int navi10_update_pcie_parameters(struct smu_context *smu,
24642464
pptable->PcieLaneCount[i] > pcie_width_cap ?
24652465
pcie_width_cap : pptable->PcieLaneCount[i];
24662466
smu_pcie_arg = i << 16;
2467-
smu_pcie_arg |= pcie_gen_cap << 8;
2468-
smu_pcie_arg |= pcie_width_cap;
2467+
smu_pcie_arg |= dpm_context->dpm_tables.pcie_table.pcie_gen[i] << 8;
2468+
smu_pcie_arg |= dpm_context->dpm_tables.pcie_table.pcie_lane[i];
24692469
ret = smu_cmn_send_smc_msg_with_param(smu,
24702470
SMU_MSG_OverridePcieParameters,
24712471
smu_pcie_arg,

0 commit comments

Comments
 (0)