]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: enable ASPM L0s state
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 24 Aug 2021 06:23:20 +0000 (08:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2021 09:50:26 +0000 (10:50 +0100)
commit2da272dbe1891e6b39966b633fae6caf372fdaeb
tree4b2d023bafdf7ba3ac337f9e2f5f2d7d2bcca5bf
parent368154f5ef2fbd47d5b544175b1850e19cd06806
r8169: enable ASPM L0s state

ASPM is disabled completely because we've seen different types of
problems in the past. However it seems these problems occurred with
L1 or L1 sub-states only. On all the chip versions I've seen the
acceptable L0s exit latency is 512ns. This should be short enough not
to cause problems. If the actual L0s exit latency of the PCIe link
is bigger than 512ns then the PCI core will disable L0s anyway.
So let's give it a try and disable L1 and L1 sub-states only.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c