Skip to contentSkip to conversation

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

PATCH In review Li Ma 3 participants 5 messages Nov 8, 2023

Subsystems (3)
lore
Share & tools
lore

Li Ma

author
#0 lore raw

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

From: Heiner Kallweit <[email protected]>

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")
(cherry picked from commit 90ca51e8c654699b672ba61aeaa418dfb3252e5e)
---
 drivers/net/ethernet/realtek/r8169_main.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +0 -4
index 45147a1016be..27efd07f09ef 100644
@@ -5224,13 +5224,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.25.1
maintainer
#1 lore raw
Quoted 11 lines · Li Ma

From: Heiner Kallweit <[email protected]>

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")
(cherry picked from commit 90ca51e8c654699b672ba61aeaa418dfb3252e5e)
Quoted 3 lines
---
 drivers/net/ethernet/realtek/r8169_main.c | 4 ----
 1 file changed, 4 deletions(-)

Is this a proposed stable tree patch? If so, what kernel(s) are you wanting it applied to?

thanks,

greg k-h

maintainer
#2 lore raw
Quoted 16 lines · Greg KH
Quoted 11 lines · Li Ma

From: Heiner Kallweit <[email protected]>

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")
(cherry picked from commit 90ca51e8c654699b672ba61aeaa418dfb3252e5e)
Quoted 3 lines
---
 drivers/net/ethernet/realtek/r8169_main.c | 4 ----
 1 file changed, 4 deletions(-)
Quoted 3 lines

Is this a proposed stable tree patch? If so, what kernel(s) are you wanting it applied to?

This should have been sent neither to you nor [email protected]. This patch has been applied to stable already, the mail is something AMD-internal it seems.

Quoted 3 lines

thanks,

greg k-h

Heiner

maintainer
#3 lore raw
Quoted 17 lines · Heiner Kallweit
Quoted 16 lines · Greg KH
Quoted 14 lines · Li Ma

From: Heiner Kallweit <[email protected]>

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")
(cherry picked from commit 90ca51e8c654699b672ba61aeaa418dfb3252e5e)
---
 drivers/net/ethernet/realtek/r8169_main.c | 4 ----
 1 file changed, 4 deletions(-)
Quoted 6 lines
Quoted 3 lines

Is this a proposed stable tree patch? If so, what kernel(s) are you wanting it applied to?

This should have been sent neither to you nor [email protected]. This patch has been applied to stable already, the mail is something AMD-internal it seems.

Then someone needs to seriously fix their scripts as it is very confusing :(

author
#4 lore raw

[AMD Official Use Only - General]

Hi Greg KH & Heiner Kallweit,

Sorry for the trouble, this was sent to AMD internel. Because I want to backport this patch to avoid a problem caused by r8169. I forgot to clean up the sent object.
Sorry again for the trouble caused by this misunderstanding.

Best Regads,
Li

-----Original Message-----
From: Greg KH <[email protected]>
Sent: Wednesday, November 8, 2023 3:53 PM
To: Heiner Kallweit <[email protected]>
Cc: [email protected]; Deucher, Alexander <[email protected]>; Limonciello, Mario <[email protected]>; Zhang, Yifan <[email protected]>; [email protected]; David S . Miller <[email protected]>; Ma, Li <[email protected]>
Subject: Re: [PATCH] r8169: fix ASPM-related issues on a number of systems with NIC version from RTL8168h

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.

Quoted 17 lines · Heiner Kallweit
Quoted 16 lines · Greg KH
Quoted 14 lines · Li Ma

From: Heiner Kallweit <[email protected]>

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

from commit 90ca51e8c654699b672ba61aeaa418dfb3252e5e)

---
 drivers/net/ethernet/realtek/r8169_main.c | 4 ----
 1 file changed, 4 deletions(-)
Quoted 6 lines
Quoted 3 lines

Is this a proposed stable tree patch? If so, what kernel(s) are you wanting it applied to?

This should have been sent neither to you nor [email protected]. This patch has been applied to stable already, the mail is something AMD-internal it seems.

Then someone needs to seriously fix their scripts as it is very confusing :(