Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/pm: fix wrong pcie parameter on navi1x

fix wrong pcie dpm parameter on navi1x

Fixes: 1a18607c07bb ("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>

authored by

Yang Wang and committed by
Alex Deucher
5c5189cf 8644084a

+2 -2
+2 -2
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
··· 2216 2216 pptable->PcieLaneCount[i] > pcie_width_cap ? 2217 2217 pcie_width_cap : pptable->PcieLaneCount[i]; 2218 2218 smu_pcie_arg = i << 16; 2219 - smu_pcie_arg |= pcie_gen_cap << 8; 2220 - smu_pcie_arg |= pcie_width_cap; 2219 + smu_pcie_arg |= dpm_context->dpm_tables.pcie_table.pcie_gen[i] << 8; 2220 + smu_pcie_arg |= dpm_context->dpm_tables.pcie_table.pcie_lane[i]; 2221 2221 ret = smu_cmn_send_smc_msg_with_param(smu, 2222 2222 SMU_MSG_OverridePcieParameters, 2223 2223 smu_pcie_arg,