]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
UBUNTU: SAUCE: r8169: disable ASPM L1.1
authorAceLan Kao <acelan.kao@canonical.com>
Tue, 10 Mar 2020 01:48:36 +0000 (09:48 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Feb 2021 07:25:50 +0000 (08:25 +0100)
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 <acelan.kao@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/realtek/r8169_main.c

index 0d78408b4e269fb0b6a21c5fb91f0eff2a28ff37..255f1ad16a0e881914b86051bfbc6d5376648370 100644 (file)
@@ -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) */