From nobody Mon Feb 19 20:47:37 2024 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tdvk30XxNz58wsp for ; Mon, 19 Feb 2024 20:47:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tdvk26c9sz4LLH for ; Mon, 19 Feb 2024 20:47:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708375658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YEZNA9j+TwybMbTclVMUmvXknfsfwF6K2zm+CTPZaDw=; b=PWbf2wfaBA6BHFSXnIgefLIxQNUuUR2qD4RbybKnbOGz1ytY7/wdxIrSZ6YfXhktyxv6o9 iK9wgDqUDn+cFUQ1LK7E4WPY0OV1U/E2nxm0WZW0QgCp9cX2JyzyTu5p71zqXYzSxHzQ94 OY6WS/vhB+ESjkxZXg87AdOYeJhHIIvN5xMr8rMjuuwM4WV3X9xgjG8H0vtrLZjvYU/+9s cVYCXzxRDatRuXs1zvsSnakwxu5xr2nOjdL4B4XmWrRfh+y+/WvEByIeBRRqmjref9oHNL /snK8XWR5goSvoO+v+werVnztEnw/zcy6TNlhyWEcgp55Qbtf92uAJSzsaP5Gw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708375658; a=rsa-sha256; cv=none; b=POhYHhOaUqLOK3tpfWNkeLb/4AnorMd6caWTzJETH/k1xAdlD6y6P+uVlhRWExNXuRqn7g D0HdrV4izK0LhnKptlEbeHBDjkVdM+JpytaQ4/KTw7fD2UlNBTe51m1JbvH3WD6uHEl3rS t2pbRmgCIB38Lvgh3eh+vhx3+kfgYj2kJuUttSWCGK5DbRILUXwmdYanYJiqIBVjZFQmcW jOqNqebCYzf7HTMlV5zydUB8JoVN8C9zbrnL/2pH+JlHCJ0+ptHZ1nhEHVy4cwQG2n5qD7 1WZ4btwLadREwu1JinENWIRI9Sv6BLdG0EhfbaK21WdxbfyB38jNvcgntOel8Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tdvk25jPvzqRv for ; Mon, 19 Feb 2024 20:47:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 41JKlcPe058848 for ; Mon, 19 Feb 2024 20:47:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41JKlceA058847 for net@FreeBSD.org; Mon, 19 Feb 2024 20:47:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 218579] bge(4): Wake on Lan (WoL) does not work Date: Mon, 19 Feb 2024 20:47:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-STABLE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: freebsd.bug@nagykeve.e4ward.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: cy@FreeBSD.org X-Bugzilla-Flags: mfc-stable14+ mfc-stable13+ mfc-stable12? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218579 --- Comment #48 from Keve Nagy --- Created attachment 248615 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D248615&action= =3Dedit Files and logs collected during testing the bge-patch, 2024-FEB The summary is: * the bge_wol patch works on 13.2R * the bge_wol patch makes no improvement on 14.0R Used two computers for the tests. A HP T610 Thin Client with an onboard bge interface, which boots in UEFI+GPT mode only. And a HP MicroServer N40L wit= h an onboard bge interface, which boots in BIOS+MBR mode only. Both computers we= re set up to dual-boot between FreeBSD 13.2R and FreeBSD 14.0R, with sources installed, and "freebsd-update fetch install" applied. Before my tests, I connected the bge interface of both computers to an isol= ated network switch. For reference I also connected a third computer without a b= ge interface, this had em0. Booted a live Linux from an USB stick on one of th= e 3 computers at a time, shut it down, and successfully woke it up via FreeBSD's built in "wake aa:bb:cc:dd:ee:ff" command to verify that BIOS settings, cabling, switch, collected addresses are all OK and WOL actually works for = each of them. Then ... * For each system, I booted the factory GENERIC kernel, run "ifconfig" to s= ee what it shows (WOL_MAGIC was never shown, even an "ifconfig bge0 wol" did n= ot activate it), issued a "shutdown -p now", and tried to wake it from one of = the other hosts. WOL with the factory kernel never woke the bge-based nodes, but always woke the em-based computer (which did always show WOL_MAGIC in ifcon= fig output). Then booted the system again, issued a "cd /usr/src", followed by a "patch < ~/if_bge_patch240113.diff" which always completed successfully. Then "make buildkernel", followed by "make installkernel", and "shutdown -r now". ** I booted the bge-patched GENERIC kernel, run "ifconfig" to see what it shows, issued a "shutdown -p now", and tried to wake it from one of the oth= er hosts. Both bge-based nodes successfully woke when they were "shutdown -p n= ow" from under a bge-patched FreeBSD 13.2, but never woke when they were "shutd= own -p now" from under a bge-patched FreeBSD 14.0. The em-based host always wok= e, regardless of being shut down from under FreeBSD 13.2 or 14.0. The bge-patched 13.2 GENERIC kernel works reliably. I tried multiple times. Also tried doing a "shutdown -r now" after a successful WOL and then doing a "shutdown -p now". Always worked perfectly fine. In none of the cases I experienced that the computer booted up unexpectedly after a "shutdown -p now". So it never behaved like a "shutdown -r". Except when I explicitly run a "shutdown -r". See attached files. Let me know if I can help any further. Regards, Keve --=20 You are receiving this mail because: You are on the CC list for the bug.=