[PATCH 1/3] drm/amdgpu/pm: Drop redundant setting code for pcie lanes

Ma Jun Jun.Ma2 at amd.com
Fri May 10 09:41:15 UTC 2024


Drop redundant setting code for pcie.lanes. It overwrites
the value get from pptable

Signed-off-by: Ma Jun <Jun.Ma2 at amd.com>
---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
index 5794b64507bf..ca1c7ae8d146 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
@@ -702,8 +702,6 @@ static int init_non_clock_fields(struct pp_hwmgr *hwmgr,
 				ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >>
 				ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT) + 1;
 
-	ps->pcie.lanes = 0;
-
 	ps->display.disableFrameModulation = false;
 
 	rrr_index = (le32_to_cpu(pnon_clock_info->ulCapsAndSettings) &
-- 
2.34.1



More information about the amd-gfx mailing list