Commit 5c5189cf authored by Yang Wang's avatar Yang Wang Committed by Alex Deucher
Browse files

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

fix wrong pcie dpm parameter on navi1x

Fixes: 1a18607c ("drm/amd/pm: override pcie dpm parameters only if it is necessary")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4671


Signed-off-by: default avatarYang Wang <kevinyang.wang@amd.com>
Co-developed-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Signed-off-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8644084a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2216,8 +2216,8 @@ static int navi10_update_pcie_parameters(struct smu_context *smu,
									pptable->PcieLaneCount[i] > pcie_width_cap ?
									pcie_width_cap : pptable->PcieLaneCount[i];
			smu_pcie_arg = i << 16;
			smu_pcie_arg |= pcie_gen_cap << 8;
			smu_pcie_arg |= pcie_width_cap;
			smu_pcie_arg |= dpm_context->dpm_tables.pcie_table.pcie_gen[i] << 8;
			smu_pcie_arg |= dpm_context->dpm_tables.pcie_table.pcie_lane[i];
			ret = smu_cmn_send_smc_msg_with_param(smu,
							SMU_MSG_OverridePcieParameters,
							smu_pcie_arg,