On Sat, Nov 14, 2015 at 09:56:36AM -0800, David Wolfskill wrote: > On Wed, Nov 11, 2015 at 06:33:37AM -0800, David Wolfskill wrote: > > ... > > But a quick perusal of > > <https://docs.freebsd.org/mail/current/svn-src-head.html> doesn't show > > anything especially like a "smoking gun" -- to me, anyway. > > > > Can anyone else confirm or refute my observations? Or suggest a > > hint? I'll try narrowing it down myself, but I need to do it during > > times I'm at home (so I can manually power the machine back up when > > it fails to respond to WoL), so it may be a few days before I can > > accomplish much that way. > > .... > > r290565 still works; r290566 fails -- in my case. r290566 changed some > re(4) behavior, and the NIC on my affected machine is an re(4): > > re0@pci0:3:0:0: class=0x020000 card=0x05b71028 chip=0x816810ec rev=0x0c > hdr=0x00 > vendor = 'Realtek Semiconductor Co., Ltd.' > device = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet > Controller' > class = network > subclass = ethernet > > from "pciconf -lv" while running: > > D freebeast.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1904 > r290565M/290565:1100089: Sat Nov 14 09:44:33 PST 2015 > r...@freebeast.catwhisker.org:/common/S3/obj/usr/src/sys/GENERIC amd64 > > I've placed a copy of a verbose dmes.boot in > <http://www.catwhisker.org/~david/FreeBSD/freebeast/>. > > I'm happy to test suggested changes. >
*sigh* Okay, could you please test whether the attached patch restores WOL capability for you? Marius
Index: if_re.c =================================================================== --- if_re.c (revision 290566) +++ if_re.c (working copy) @@ -3851,6 +3852,11 @@ re_setwol(struct rl_softc *sc) CSR_READ_1(sc, RL_GPIO) & ~0x01); } if ((ifp->if_capenable & IFCAP_WOL) != 0) { + if ((sc->rl_flags & RL_FLAG_8168G_PLUS) != 0) { + /* Disable RXDV gate. */ + CSR_WRITE_4(sc, RL_MISC, CSR_READ_4(sc, RL_MISC) & + ~0x00080000); + } re_set_rxmode(sc); if ((sc->rl_flags & RL_FLAG_WOL_MANLINK) != 0) re_set_linkspeed(sc);
_______________________________________________ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"