From: AceLan Kao Date: Tue, 10 Mar 2020 01:48:36 +0000 (+0800) Subject: UBUNTU: SAUCE: r8169: disable ASPM L1.1 X-Git-Tag: Ubuntu-5.11.0-11.12~301 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=85b986ea47f832ee4f17c6ce33996198ba28c4d3;p=mirror_ubuntu-hirsute-kernel.git UBUNTU: SAUCE: r8169: disable ASPM L1.1 BguLink: https://bugs.launchpad.net/bugs/1836030 r8169 doesn't suport ASPM L1.1, so we don't have to disable ASPM completely. Disable ASPM L1.1 doesn't affect the power consumption and the network function keeps working after S3 test 30 times. Signed-off-by: AceLan Kao Signed-off-by: Seth Forshee --- diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 0d78408b4e26..255f1ad16a0e 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -5286,8 +5286,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_L0S | - PCIE_LINK_STATE_L1); + rc = pci_disable_link_state(pdev, PCIE_LINK_STATE_L1_1); tp->aspm_manageable = !rc; /* enable device (incl. PCI PM wakeup and hotplug setup) */