Date: Sun, 25 Apr 2021 23:03:18 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 238411] igb(4): Wake on Lan not working with Intel I210 Message-ID: <bug-238411-7501-1bClWinhxZ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-238411-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-238411-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238411 --- Comment #16 from Abraham122x <abraham@gmx.at> --- Let's ask differently in reference to the non-modified FreeBSD drivers.=20 Regardless if I set "ifconfig igb0 wol" or not, I cannot enable the WOL fea= ture on my NICS. So for me it's not clear with which functionality from OS perspective I can influence the field "adapter->wol". My only workaround I found is to change the variable directly in the source code of the driver and overrule it. What I see from my theoretical analysis, the variables are stored in ROM at shutdown -> method "em_enable_phy_wakeup": E1000_WRITE_REG(hw, E1000_WUC, E1000_WUC_PHY_WAKE | E1000_WUC_PME_EN | E1000_WUC_APME); E1000_WRITE_REG(hw, E1000_WUFC, adapter->wol); At startup the register is read again: apme_mask =3D E1000_WUC_APME; eeprom_data =3D E1000_READ_REG(&adapter->hw, E1000_WUC); if (eeprom_data & apme_mask) adapter->wol =3D (E1000_WUFC_MAG | E1000_WUFC_MC); As the variable "adapter->wol" at startup seems to be zero, it means that t= he flag E1000_WUC_APME is not set, although it was written at shutdown. So seen from my hardware perspective, the ROM settings are not properly recognized at startup, hence "adapter->wol" is always zero. The variable ca= nnot be influenced by anything known to me. Is my analysis correct? Did I miss something? P.S: I have an E1000_DEV_ID_I210_COPPER_FLASHLESS installed. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238411-7501-1bClWinhxZ>