From owner-freebsd-net@freebsd.org Wed Nov 9 10:19:39 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCBD2C3724C for ; Wed, 9 Nov 2016 10:19:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C2C8DBD8 for ; Wed, 9 Nov 2016 10:19:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA9AJddN053034 for ; Wed, 9 Nov 2016 10:19:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 208343] [em] wake on lan not working with Intel I219 V2 Date: Wed, 09 Nov 2016 10:19:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: IntelNetworking X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kaho@elam.kais.kyoto-u.ac.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2016 10:19:40 -0000 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.=