Date: Wed, 09 Nov 2016 10:19:39 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 208343] [em] wake on lan not working with Intel I219 V2 Message-ID: <bug-208343-2472-uJQyogIg9f@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-208343-2472@https.bugs.freebsd.org/bugzilla/> References: <bug-208343-2472@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=3D208343 kaho@elam.kais.kyoto-u.ac.jp changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kaho@elam.kais.kyoto-u.ac.j | |p --- Comment #13 from kaho@elam.kais.kyoto-u.ac.jp --- Can you try this patch? I am not sure it is a correct way. Index: sys/dev/e1000/if_em.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/dev/e1000/if_em.c (revision 308444) +++ sys/dev/e1000/if_em.c (working copy) @@ -5274,6 +5274,8 @@ case e1000_ich10lan: case e1000_pchlan: case e1000_pch2lan: + case e1000_pch_lpt: + case e1000_pch_spt: apme_mask =3D E1000_WUC_APME; adapter->has_amt =3D TRUE; eeprom_data =3D E1000_READ_REG(&adapter->hw, E1000_WUC); @@ -5322,7 +5324,7 @@ { struct adapter *adapter =3D device_get_softc(dev); if_t ifp =3D adapter->ifp; - u32 pmc, ctrl, ctrl_ext, rctl; + u32 pmc, ctrl, wuc, ctrl_ext, rctl; u16 status; if ((pci_find_cap(dev, PCIY_PMG, &pmc) !=3D 0)) @@ -5332,7 +5334,9 @@ ctrl =3D E1000_READ_REG(&adapter->hw, E1000_CTRL); ctrl |=3D (E1000_CTRL_SWDPIN2 | E1000_CTRL_SWDPIN3); E1000_WRITE_REG(&adapter->hw, E1000_CTRL, ctrl); - E1000_WRITE_REG(&adapter->hw, E1000_WUC, E1000_WUC_PME_EN); + wuc =3D E1000_READ_REG(&adapter->hw, E1000_WUC); + wuc |=3D E1000_WUC_PME_EN ; + E1000_WRITE_REG(&adapter->hw, E1000_WUC, wuc); if ((adapter->hw.mac.type =3D=3D e1000_ich8lan) || (adapter->hw.mac.type =3D=3D e1000_pchlan) || @@ -5364,7 +5368,9 @@ } if ((adapter->hw.mac.type =3D=3D e1000_pchlan) || - (adapter->hw.mac.type =3D=3D e1000_pch2lan)) { + (adapter->hw.mac.type =3D=3D e1000_pch2lan) || + (adapter->hw.mac.type =3D=3D e1000_pch_lpt) || + (adapter->hw.mac.type =3D=3D e1000_pch_spt)) { if (em_enable_phy_wakeup(adapter)) return; } else { --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208343-2472-uJQyogIg9f>