Skip to contentSkip to conversation

r8169: fix ASPM-related issues on a number of systems with NIC version from RTL8168h

PATCH Applied Heiner Kallweit 2 participants 2 messages Aug 25, 2023 – Aug 28, 2023

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 r8169: fix ASPM-related issues on a number of systems with NIC version from RTL8168h

This effectively reverts 4b5f82f6aaef. On a number of systems ASPM L1 causes tx timeouts with RTL8168h, see referenced bug report.

Fixes 4b5f82f6aaef ("r8169: enable ASPM L1/L1.1 from RTL8168h")
---
 drivers/net/ethernet/realtek/r8169_main.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +0 -4
index 5eb50b265..6351a2dc1 100644
@@ -5239,13 +5239,9 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 
 	/* Disable ASPM L1 as that cause random device stop working
 	 * problems as well as full system hangs for some PCIe devices users.
-	 * Chips from RTL8168h partially have issues with L1.2, but seem
-	 * to work fine with L1 and L1.1.
 	 */
 	if (rtl_aspm_is_safe(tp))
 		rc = 0;
-	else if (tp->mac_version >= RTL_GIGA_MAC_VER_46)
-		rc = pci_disable_link_state(pdev, PCIE_LINK_STATE_L1_2);
 	else
 		rc = pci_disable_link_state(pdev, PCIE_LINK_STATE_L1);
 	tp->aspm_manageable = !rc;
Signature · 1 line
2.42.0
#1 lore raw
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:

Quoted 9 lines · On Fri, 25 Aug 2023 21:44:01 +0200 you wrote:

This effectively reverts 4b5f82f6aaef. On a number of systems ASPM L1 causes tx timeouts with RTL8168h, see referenced bug report.

Fixes 4b5f82f6aaef ("r8169: enable ASPM L1/L1.1 from RTL8168h")

[...]

Here is the summary with links:
- [net] r8169: fix ASPM-related issues on a number of systems with NIC version from RTL8168h

    https://git.kernel.org/netdev/net/c/90ca51e8c654

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html