[Unstable/OEM-5.13/OEM-5.14] [PATCH 1/1] UBUNTU: SAUCE: r8169: Disable ASPM L1.2
Kai-Heng Feng
kai.heng.feng at canonical.com
Tue Sep 7 04:15:02 UTC 2021
BugLink: https://bugs.launchpad.net/bugs/1942830
There's a r8169 ethernet NIC that has abysmal TX/RX speed, because it
requires longer time to exit from ASPM L1.1/L1.2 than it advertises.
Changing its LTR to a smaller value doesn't help, so in addition to ASPM
L1.1, also disable ASPM L1.2.
Signed-off-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
---
drivers/net/ethernet/realtek/r8169_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index 32e9ba8efb0ad..93bf8882a3c9a 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -5281,7 +5281,7 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
/* Disable ASPM completely as that cause random device stop working
* problems as well as full system hangs for some PCIe devices users.
*/
- rc = pci_disable_link_state(pdev, PCIE_LINK_STATE_L1_1);
+ rc = pci_disable_link_state(pdev, PCIE_LINK_STATE_L1_1 | PCIE_LINK_STATE_L1_2);
tp->aspm_manageable = !rc;
/* enable device (incl. PCI PM wakeup and hotplug setup) */
--
2.32.0
More information about the kernel-team
mailing list