On Wed, Apr 04, 2018 at 04:32:21PM +0300, Manolis Tzanidakis wrote:
> >Synopsis:    wol does not wake on re(4)
> >Category:    sys
> >Environment:
>       System      : OpenBSD 6.3
>       Details     : OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 
> 2018
>                        
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>       Although wol is enabled with ifconfig, the system does not wake up from
>       standby or suspend.
>       BIOS is correctly setup. Wol tested from a linux live usb, works without
>       problems.
> 
> ifconfig hwfeatures:
> re0: flags=108843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,WOL> mtu 1500
>         
> hwfeatures=8037<CSUM_IPv4,CSUM_TCPv4,CSUM_UDPv4,VLAN_MTU,VLAN_HWTAGGING,WOL> 
> hardmtu 9194
>         lladdr f4:6d:04:d8:9f:75
>         index 1 priority 0 llprio 3
>         groups: egress
>         media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
>         status: active
>         inet 192.168.10.114 netmask 0xffffff00 broadcast 192.168.10.255

WOL is still working for me in 6.3 without any issues with this device:

re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), 
msi, address xx:xx:xx:xx:xx:xx
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2

Which is the device WoL support in re(4) was first implemented for.

There is quite a variety of models supported by re(4) so it's possible that
some of them don't work with our WoL support code yet. Those which don't
work are best treated as a case of "you own the hardware and you want WoL
support in our driver to work with it -> you fix the driver".
This might not actually be very difficult to do if you know C and have
another working open source driver as a reference. It's mostly a matter
of figuring out which values need to be written to the WoL config related
registers by the driver when it shuts down the card. Some patience and
spare time for a lot of trial and error might be needed as well.

Reply via email to