[Bug 208343] [em] wake on lan not working with Intel I219 V2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 9 10:19:40 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208343

kaho at elam.kais.kyoto-u.ac.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kaho at elam.kais.kyoto-u.ac.j
                   |                            |p

--- Comment #13 from kaho at 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
===================================================================
--- 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 = E1000_WUC_APME;
                adapter->has_amt = TRUE;
                eeprom_data = E1000_READ_REG(&adapter->hw, E1000_WUC);
@@ -5322,7 +5324,7 @@
 {
        struct adapter  *adapter = device_get_softc(dev);
        if_t ifp = 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) != 0))
@@ -5332,7 +5334,9 @@
        ctrl = E1000_READ_REG(&adapter->hw, E1000_CTRL);
        ctrl |= (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 = E1000_READ_REG(&adapter->hw, E1000_WUC);
+       wuc |= E1000_WUC_PME_EN ;
+       E1000_WRITE_REG(&adapter->hw, E1000_WUC, wuc);

        if ((adapter->hw.mac.type == e1000_ich8lan) ||
            (adapter->hw.mac.type == e1000_pchlan) ||
@@ -5364,7 +5368,9 @@
        }

        if ((adapter->hw.mac.type == e1000_pchlan) ||
-           (adapter->hw.mac.type == e1000_pch2lan)) {
+           (adapter->hw.mac.type == e1000_pch2lan) ||
+           (adapter->hw.mac.type == e1000_pch_lpt) ||
+           (adapter->hw.mac.type == e1000_pch_spt)) {
                if (em_enable_phy_wakeup(adapter))
                        return;
        } else {

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list