diff mbox series

[Unstable/OEM-5.13/OEM-5.14,1/1] UBUNTU: SAUCE: r8169: Disable ASPM L1.2

Message ID 20210907041502.573623-2-kai.heng.feng@canonical.com
State New
Headers show
Series [Unstable/OEM-5.13/OEM-5.14,1/1] UBUNTU: SAUCE: r8169: Disable ASPM L1.2 | expand

Commit Message

Kai-Heng Feng Sept. 7, 2021, 4:15 a.m. UTC
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@canonical.com>
---
 drivers/net/ethernet/realtek/r8169_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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) */