[PATCH 12/12] drm/amdgpu: remove dead code in si_program_aspm

Jesse Zhang jesse.zhang at amd.com
Mon Jun 3 08:50:05 UTC 2024


The variable disable_l1 is false and execution cannot reach the else branch.

Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/si.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c
index 85235470e872..d80eec275090 100644
--- a/drivers/gpu/drm/amd/amdgpu/si.c
+++ b/drivers/gpu/drm/amd/amdgpu/si.c
@@ -2598,9 +2598,6 @@ static void si_program_aspm(struct amdgpu_device *adev)
 					WREG32(SPLL_CNTL_MODE, data);
 			}
 		}
-	} else {
-		if (orig != data)
-			WREG32_PCIE_PORT(PCIE_LC_CNTL, data);
 	}
 
 	orig = data = RREG32_PCIE(PCIE_CNTL2);
-- 
2.25.1



More information about the amd-gfx mailing list