wakeonlan no longer works with r8169 after upgrade to 5.0 kernel

Bug #1841918 reported by Steve Dodd
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-signed-hwe (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Latest in the eternal saga of WOL problems with r8169 on certain platforms. 4.15.0-58 (bionic) worked; installing the latest HWE (5.0.0-25) stops wakeonlan working.

lspci output:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

5.0.x r8169 related kernel output:

Aug 29 10:35:02 asr-host kernel: r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
Aug 29 10:35:02 asr-host kernel: libphy: r8169: probed
Aug 29 10:35:02 asr-host kernel: r8169 0000:02:00.0 eth0: RTL8168evl/8111evl, bc:5f:f4:b6:4b:e6, XID 2c9, IRQ 28
Aug 29 10:35:02 asr-host kernel: r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
Aug 29 10:35:02 asr-host kernel: r8169 0000:02:00.0 laneth0: renamed from eth0
Aug 29 10:35:10 asr-host kernel: RTL8211E Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
Aug 29 10:35:11 asr-host kernel: r8169 0000:02:00.0 laneth0: Link is Down
Aug 29 10:35:13 asr-host kernel: r8169 0000:02:00.0 laneth0: Link is Up - 1Gbps/Full - flow control off
Aug 29 10:54:03 asr-host kernel: r8169 0000:02:00.0 laneth0: Link is Down
Aug 29 10:54:03 asr-host kernel: r8169 0000:02:00.0 laneth0: Link is Down
Aug 29 10:54:05 asr-host kernel: r8169 0000:02:00.0 laneth0: Link is Up - 1Gbps/Full - flow control off

4.15.x output:

Aug 29 11:03:24 asr-host kernel: r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
Aug 29 11:03:24 asr-host kernel: r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
Aug 29 11:03:24 asr-host kernel: r8169 0000:02:00.0 eth0: RTL8168evl/8111evl at 0x (ptrval), bc:5f:f4:b6:4b:e6, XID 0c900800 IRQ 27
Aug 29 11:03:24 asr-host kernel: r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
Aug 29 11:03:24 asr-host kernel: r8169 0000:02:00.0 laneth0: renamed from eth0
Aug 29 11:03:32 asr-host kernel: r8169 0000:02:00.0 laneth0: link down
Aug 29 11:03:35 asr-host kernel: r8169 0000:02:00.0 laneth0: link up
Aug 29 11:06:01 asr-host kernel: r8169 0000:02:00.0 laneth0: link down
Aug 29 11:06:03 asr-host kernel: r8169 0000:02:00.0 laneth0: link up
Aug 29 11:18:40 asr-host kernel: r8169 0000:02:00.0 laneth0: link down
Aug 29 11:18:42 asr-host kernel: r8169 0000:02:00.0 laneth0: link up

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-5.0.0-25-generic 5.0.0-25.26~18.04.1
ProcVersionSignature: Ubuntu 4.15.0-58.64-generic 4.15.18
Uname: Linux 4.15.0-58-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
Date: Thu Aug 29 11:41:17 2019
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-signed-hwe
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Steve Dodd (anarchetic) wrote :
Revision history for this message
Steve Dodd (anarchetic) wrote :

Interestingly, if I enable WOL by hand with ethtool (even though ethtool is showing it as already enabled), it works.

/sys/class/net/laneth0/device/power/wakeup shows "disabled" if I let systemd enable WOL via the .link file, but after doing it manually with ethtool it shows "enabled."

Note that all I have done is switch to the HWE kernel - I am using exactly the same verison of systemd, ethtool, etc. Has something in the kernel stopped implicitly configuring the system power management, either generically or for r8169? Is ethtool doing it explicitly?

Revision history for this message
Steve Dodd (anarchetic) wrote :

Aha ..

https://github.com/systemd/systemd/blob/master/src/shared/ethtool-util.c#L279

Reads current WOL settings and doesn't set them again if not necessary - we're back the r8169 driver or the BIOS possibly not quite initializing something correctly on start-up, which an explicit ioctl to set WOL corrects :(

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-signed-hwe (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.