Skip to content

Commit b75bb8a

Browse files
hkallweitdavem330
authored andcommitted
r8169: disable ASPM again
There's a significant number of reports that re-enabling ASPM causes different issues, ranging from decreased performance to system not booting at all. This affects only a minority of users, but the number of affected users is big enough that we better switch off ASPM again. This will hurt notebook users who are not affected by the issues, they may see decreased battery runtime w/o ASPM. With the PCI core folks is being discussed to add generic sysfs attributes to control ASPM. Once this is in place brave enough users can re-enable ASPM on their system. Fixes: a99790b ("r8169: Reinstate ASPM Support") Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b1a6e8f commit b75bb8a

File tree

1 file changed

+6
-0
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+6
-0
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/pm_runtime.h>
2929
#include <linux/firmware.h>
3030
#include <linux/prefetch.h>
31+
#include <linux/pci-aspm.h>
3132
#include <linux/ipv6.h>
3233
#include <net/ip6_checksum.h>
3334

@@ -7352,6 +7353,11 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
73527353
if (rc)
73537354
return rc;
73547355

7356+
/* Disable ASPM completely as that cause random device stop working
7357+
* problems as well as full system hangs for some PCIe devices users.
7358+
*/
7359+
pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1);
7360+
73557361
/* enable device (incl. PCI PM wakeup and hotplug setup) */
73567362
rc = pcim_enable_device(pdev);
73577363
if (rc < 0) {

0 commit comments

Comments
 (0)