Skip to contentSkip to conversation

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

PATCH In review Yang Wang 3 participants 5 messages Dec 11, 2025

Subsystems (3)
lore
Share & tools
lore

Yang Wang

author
#0 lore raw

PATCH 1/1 drm/amd/pm: fix wrong pcie parameter on navi10

fix wrong pcie dpm parameter on navi10

Fixes 1a18607c07bb ("drm/amd/pm: override pcie dpm parameters only if it is necessary")
---
 drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +2 -2
index 882830770b79..0c26fe6fb949 100644
@@ -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,
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Yang Wang

fix wrong pcie dpm parameter on navi10

Fixes 1a18607c07bb ("drm/amd/pm: override pcie dpm parameters only if it is necessary")

Thanks,
Lijo

Quoted 19 lines
---
  drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +2 -2
index 882830770b79..0c26fe6fb949 100644
@@ -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,
Acked-by on v1 1/1
#2 lore raw
In reply to Yang Wang
Quoted 4 lines · Yang Wang

fix wrong pcie dpm parameter on navi10

Fixes 1a18607c07bb ("drm/amd/pm: override pcie dpm parameters only if it is necessary")

Assuming this fixes the gitlab ticket:

Quoted 25 lines
---
 drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +2 -3
index 882830770b79..0c26fe6fb949 100644
@@ -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,
--

2.34.1

#3 lore raw
Quoted 10 lines · Alex Deucher
Quoted 4 lines · Yang Wang

fix wrong pcie dpm parameter on navi10

Fixes 1a18607c07bb ("drm/amd/pm: override pcie dpm parameters only if it is necessary")

Assuming this fixes the gitlab ticket:

per the reporter, this does not fix the issue.

Alex

Quoted 28 lines
Quoted 25 lines
---
 drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +2 -3
index 882830770b79..0c26fe6fb949 100644
@@ -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,
--

2.34.1

#4 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Hi Alex,

The machine of X870E and navi10 is quite unique, and I need to find a machine to verify this issue. But this patch is necessary as it is a coding issue confirmed with Kenneth.

Best Regards,
Kevin

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, December 11, 2025 23:27
To: Wang, Yang(Kevin) <[email protected]>
Cc: [email protected]; Zhang, Hawking <[email protected]>; Deucher, Alexander <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: fix wrong pcie parameter on navi10

Quoted 10 lines · Alex Deucher
Quoted 4 lines · Yang Wang

fix wrong pcie dpm parameter on navi10

Fixes 1a18607c07bb ("drm/amd/pm: override pcie dpm parameters only if it is necessary")

Assuming this fixes the gitlab ticket:

per the reporter, this does not fix the issue.

Alex

Quoted 28 lines
Quoted 25 lines
---
 drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +2 -3
index 882830770b79..0c26fe6fb949 100644
@@ -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,
--

2.34.1