You are not logged in.

#1 2023-03-01 00:17:28

thatdevopsguy
Member
From: New York
Registered: 2023-03-01
Posts: 2
Website

[Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

Solved: See below for more details.

Hey folks, pretty much what the message says. I've confirmed functionality on 6.1.14-1-lts, but on 6.2.1.arch1-1 something is amiss.

 sab@antares > ~ > lspci -nnk | grep -A2 Ether
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-V [8086:153b] (rev 05)
        Subsystem: ASRock Incorporation Device [1849:153b]
        Kernel driver in use: e1000e
--
77:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
        Subsystem: ASRock Incorporation Device [1849:1539]
        Kernel driver in use: igb

Specifically, the igb driver in combination with the 6.2 kernel. Not sure where the problem lies, but for now I'll keep on the 6.1 branch.

Anyone have similar issues?

Last edited by thatdevopsguy (2023-03-19 18:21:33)

Offline

#2 2023-03-01 08:51:59

armadillo77789
Member
Registered: 2023-03-01
Posts: 1

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

Same problem after upgrading to 6.2.1-arch1-1 from linux-6.1.12.arch1-1, with a realtek ethernet controller. Regained functionality with downgrading.

Last edited by armadillo77789 (2023-03-01 08:52:46)

Offline

#3 2023-03-02 12:36:27

defragmenteur
Member
Registered: 2022-04-23
Posts: 11

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

Same problem here with 6.2.1.arch1-1 but I think this is a Suspend / Resume problem not a WOL because if I try to wake up the computer with the power button, screen stay black and keyboard / mouse does not work. I must ssh to reboot the computer. Also there is a lot of nouveau nvidia driver warning/error in the logs. The LTS kernel is working fine.

Offline

#4 2023-03-02 23:29:29

loqs
Member
Registered: 2014-03-06
Posts: 17,714

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

Please post the full system journal from a boot with the issue.

Offline

#5 2023-03-04 20:00:32

sweetthdevil
Member
Registered: 2009-10-20
Posts: 417

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

I also have the same issue, downgrading also fixed it.

Offline

#6 2023-03-05 17:34:36

Strangiato
Member
Registered: 2020-01-10
Posts: 382

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

Same on my machine with realtek nic when running the latest kernel. Wol works with LTS kernel.

Offline

#7 2023-03-08 15:34:46

ivanich
Member
From: Odessa
Registered: 2007-11-02
Posts: 9

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

For anyone who able to bisect please post results to the https://bugzilla.kernel.org/show_bug.cgi?id=217069

Offline

#8 2023-03-08 19:07:13

loqs
Member
Registered: 2014-03-06
Posts: 17,714

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

ivanich wrote:

For anyone who able to bisect

You can find some prebuilt bisection kernels in https://bugs.archlinux.org/task/77632

Offline

#9 2023-03-08 20:48:07

ivanich
Member
From: Odessa
Registered: 2007-11-02
Posts: 9

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

loqs wrote:
ivanich wrote:

For anyone who able to bisect

You can find some prebuilt bisection kernels in https://bugs.archlinux.org/task/77632

As I stated in the https://bugzilla.kernel.org/show_bug.cgi?id=217069#c2 it's not possible for me to do that because I have no physical access to these computers.

Last edited by ivanich (2023-03-08 20:54:03)

Offline

#10 2023-03-08 20:59:32

loqs
Member
Registered: 2014-03-06
Posts: 17,714

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

ivanich wrote:

As I stated in the https://bugzilla.kernel.org/show_bug.cgi?id=217069#c2 it's not possible for me to do that because I have no physical access to these computers.

Perhaps it will help one of the five other affected users.

@thatdevopsguy if you were only interested in seeing if others may have the same issue.  I believe that has been established and the thread can be marked as solved?

Offline

#11 2023-03-14 12:58:08

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 359

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

Well here's my story to add wink
I operate 3 Supermicro servers (DMI: Supermicro X8SIL/X8SIL, BIOS 1.2a  06/27/2012) which have 2 integrated Ethernet controllers.
lspci -vv output:

4:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
        Subsystem: Super Micro Computer Inc X8SIL
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at fb5e0000 (32-bit, non-prefetchable) [size=128K]
        Region 2: I/O ports at dc00 [size=32]
        Region 3: Memory at fb5dc000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [c8] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [e0] Express (v1) Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0W
                DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <128ns, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
                LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        Capabilities: [a0] MSI-X: Enable+ Count=5 Masked-
                Vector table: BAR=3 offset=00000000
                PBA: BAR=3 offset=00002000
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr+ BadTLP- BadDLLP- Rollover- Timeout+ AdvNonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
                AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
        Capabilities: [140 v1] Device Serial Number xx-xx-xx-xx-xx-xx-xx-xx
        Kernel driver in use: e1000e
        Kernel modules: e1000e

All of them are configured to wake on LAN (via ether-wake from the Router) at a certain daytime to only power on during worktime.
All of this is working for years without any problem. But starting with kernel 6.2 the machines do not power on anymore. The fun stuff: the integrated IPMI management interface is working and via the web server the machines can be started.

I am completely puzzled what happens here.
Greetings
Harvey

Edit: Forgot to mention: after downgrading to the lts-kernel (6.1.18 atm) all is working as expected again...

Last edited by Harey (2023-03-14 13:07:17)


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#12 2023-03-18 17:59:47

loqs
Member
Registered: 2014-03-06
Posts: 17,714

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

From https://bugzilla.kernel.org/show_bug.cgi?id=217069#c24

The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-03-18 14:41:57 UTC wrote:

Could somebody else maybe try if reverting 5c62d5aab8752e5ee7bfbe75ed6060db1c787f98 helps?

Pre built kernel with 5c62d5aab8752e5ee7bfbe75ed6060db1c787f98 reverted
https://drive.google.com/file/d/1-6DaYV … share_link linux-6.2.7.arch1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1u_GYzb … share_link linux-headers-6.2.7.arch1-1.1-x86_64.pkg.tar.zst

Please test to see if it resolves the issue and report findings upstream.

Last edited by loqs (2023-03-18 18:43:03)

Offline

#13 2023-03-19 16:43:04

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 359

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

Please test to see if it resolves the issue and report findings upstream.

Tested today and this solves the wake-on-lan problem for me. Will report upstream too.

Good work!

Greetings
Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#14 2023-03-19 18:16:30

thatdevopsguy
Member
From: New York
Registered: 2023-03-01
Posts: 2
Website

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

loqs wrote:

Pre built kernel with 5c62d5aab8752e5ee7bfbe75ed6060db1c787f98 reverted
https://drive.google.com/file/d/1-6DaYV … share_link linux-6.2.7.arch1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1u_GYzb … share_link linux-headers-6.2.7.arch1-1.1-x86_64.pkg.tar.zst

Please test to see if it resolves the issue and report findings upstream.

Tested and verified. Many thanks!

Offline

#15 2023-03-24 13:37:10

loqs
Member
Registered: 2014-03-06
Posts: 17,714

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

https://bugzilla.kernel.org/show_bug.cgi?id=217069#c29

The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-03-24 10:19:16 UTC[/quote wrote:

Could somebody try the following patch:
https://github.com/acpica/acpica/pull/7 … a8b1733176

This was asked for in https://lore.kernel.org/all/b39064e3-4f … ongson.cn/ – I'm just a man-in-the-middle here that forwards that request.

The patch in question does not apply and does not look like it is for the kernel.  Transformed patch

diff --git a/drivers/acpi/acpica/hwsleep.c b/drivers/acpi/acpica/hwsleep.c
index 37b3f641feaa..65672fa8dc5b 100644
--- a/drivers/acpi/acpica/hwsleep.c
+++ b/drivers/acpi/acpica/hwsleep.c
@@ -68,6 +68,15 @@ acpi_status acpi_hw_legacy_sleep(u8 sleep_state)
 		return_ACPI_STATUS(status);
 	}
 
+	/* Enable pcie wake event if support */
+	if ((acpi_gbl_FADT.flags & ACPI_FADT_PCI_EXPRESS_WAKE)) {
+		(void)
+		    acpi_write_bit_register(acpi_gbl_fixed_event_info
+					    [ACPI_EVENT_PCIE_WAKE].
+					    enable_register_id,
+					    ACPI_DISABLE_EVENT);
+	}
+
 	/* Get current value of PM1A control */
 
 	status = acpi_hw_register_read(ACPI_REGISTER_PM1_CONTROL,
@@ -311,13 +320,13 @@ acpi_status acpi_hw_legacy_wake(u8 sleep_state)
 				    [ACPI_EVENT_SLEEP_BUTTON].
 				    status_register_id, ACPI_CLEAR_STATUS);
 
-	/* Enable pcie wake event if support */
+	/* Clear and disable pcie wake event if support */
 	if ((acpi_gbl_FADT.flags & ACPI_FADT_PCI_EXPRESS_WAKE)) {
 		(void)
 		    acpi_write_bit_register(acpi_gbl_fixed_event_info
 					    [ACPI_EVENT_PCIE_WAKE].
 					    enable_register_id,
-					    ACPI_DISABLE_EVENT);
+					    ACPI_ENABLE_EVENT);
 		(void)
 		    acpi_write_bit_register(acpi_gbl_fixed_event_info
 					    [ACPI_EVENT_PCIE_WAKE].

Pre-built kernels with the above applied
https://drive.google.com/file/d/1W-baYS … share_link linux-6.2.8.arch1-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1S6js-c … share_link linux-headers-6.2.8.arch1-1.1-x86_64.pkg.tar.zst

Please test to see if it resolves the issue and report findings upstream.

Offline

#16 2023-03-25 15:20:56

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 359

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

Wake-on-Lan still not working with this kernel. Will report upstream

Greetings
Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#17 2023-03-27 13:20:09

loqs
Member
Registered: 2014-03-06
Posts: 17,714

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

https://bugzilla.kernel.org/show_bug.cgi?id=217069#c33

Jianmin Lv 2023-03-27 07:48:12 UTC wrote:

I transform and adjust the patch from the suggested ACPICA change as following, please try it again, thanks!

Pre-built kernels with the patch applied
https://drive.google.com/file/d/1KcwURy … share_link linux-6.2.8.arch1-1.2-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1JzhONf … share_link linux-headers-6.2.8.arch1-1.2-x86_64.pkg.tar.zst

Please test to see if it resolves the issue and report findings upstream.

Last edited by loqs (2023-03-27 13:20:36)

Offline

#18 2023-03-27 17:29:31

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 359

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

This solves the wake-on-lan problem for me. Will report upstream too.
Thanks @loqs for providing the testing kernels and headers!

Greetings
Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#19 2023-04-21 21:30:04

loqs
Member
Registered: 2014-03-06
Posts: 17,714

Re: [Solved] Wake on LAN (WOL) no longer functioning with 6.2.x kernel

The commit causing the issue has been reverted due to the 6.3 release being imminent and no fix having been committed https://git.kernel.org/pub/scm/linux/ke … c4c3914ed9
The revert will be propagated back to a future stable release.
Edit:
Queued for 6.2.13 https://git.kernel.org/pub/scm/linux/ke … e62e4b05a6

Last edited by loqs (2023-04-23 07:56:38)

Offline

Board footer

Powered by FluxBB