Summary: | Wake on LAN doesn't work for any of my NIC cards (em0, bge0) | ||
---|---|---|---|
Product: | Base System | Reporter: | George B <bourmg> |
Component: | kern | Assignee: | freebsd-net (Nobody) <net> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | kaho, pi, zarychtam |
Priority: | --- | Keywords: | regression |
Version: | 11.2-RELEASE | ||
Hardware: | amd64 | ||
OS: | Any |
Description
George B
2018-10-26 11:50:20 UTC
It's not a bug, it's a feature. I assume you have enabled WoL in BIOS/UEFI. The interface should be brought up with one of its WoL capabilities, so in /etc/rc.conf you should have at least : ifconfig_em0="up wol_magic" I got it working with I217-LM, but the machine could be suspended only once, suspending after resume works, but workstation wakes up almost immediately. Next long lasting sleep state is possible after reboot. It's probably another feature. Thanks for the reply, (In reply to Marek Zarychta from comment #1) I've had this Kit for over 4 years now so yes WoL is BIOS enabled. I have already tried bringing up WOL capabilities on boot but that is not the problem I think. It seems that the option is missing... altogether In 11.1 I even had bge0 working thanks to this https://github.com/NamTaf/if_bge_wol patch. No luck so far with 11.2 I can also confirm that on fresh 11.2-STABLE r339662 it is impossible to enable wol_magic option for NC360T NIC which is based on em(4) Intel 82571EB. I am able to turn this option on and off for em(4) NICs based on Intel: 82546EB, 82541GI, 82566MM, I217-LM though. The breakage in 11-STABLE occurred between r326425 and r339662. (In reply to Marek Zarychta from comment #3) > The breakage in 11-STABLE occurred between r326425 and r339662. Really? Between these revisions, the almost changes are additions of support for kaby Lake generation chips. The other changes are only comments corrections. Can you revert r323079 or r322955? They have changes related WOL. (In reply to Kaho Toshikazu from comment #4) I am sorry I have been ignoring your reply for such a long time. I can't experiment much with this box as it's almost retired, cold spare backup. I'll move the NIC to another box when I found a replacement. (In reply to Marek Zarychta from comment #5) I recommend to use a new hardware and a new release like 12.0-RELEASE. But try the patch, if you really test. Index: sys/dev/e1000/if_em.c =================================================================== --- sys/dev/e1000/if_em.c (revision 343252) +++ sys/dev/e1000/if_em.c (working copy) @@ -2508,6 +2508,7 @@ e1000_reset_hw(&adapter->hw); E1000_WRITE_REG(&adapter->hw, E1000_WUC, 0); + E1000_WRITE_REG(&adapter->hw, E1000_WUFC, 0); e1000_led_off(&adapter->hw); e1000_cleanup_led(&adapter->hw); (In reply to Kaho Toshikazu from comment #6) Thank you for the patch. I have applied it on r343301, but the issue hasn't been resolved. Still "wol_magic" option can't be enabled for 82571EB. |