On Thu, Dec 22, 2016 at 11:37:05AM +0200, Paul Irofti wrote:
> On 20.12.2016 17:45, Mike Belopuhov wrote:
> > On 5 December 2016 at 11:16,  <[email protected]> wrote:
> > > > Synopsis:
> > > > Category:
> > > > Environment:
> > >         System      : OpenBSD 6.0
> > >         Details     : OpenBSD 6.0-current (GENERIC.MP) #0: Wed Nov 30 
> > > 09:19:28 MST 2016
> > >                          
> > > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > > 
> > >         Architecture: OpenBSD.amd64
> > >         Machine     : amd64
> > > > Description:
> > >         I received a few days ago a thinkpad x260. Sometimes em0 won't 
> > > show up and in
> > > dmesg it says:
> > > em0 at pci0 dev 31 function 6 "Intel I219-V" rev 0x21: msi
> > > em0: Hardware Initialization Failed
> > > em0: Unable to initialize the hardware
> > > 
> > > On other reboots, it works fine.
> > > 
> > 
> > Most likely related to the PHY power being turned off.  X540
> > got a fix for that.  You might want to look through FreeBSD's
> > e1000 driver looking for the phy power bits relevant to your
> > model (determine MAC and PHY ids and chip family and then
> > follow the code).  I've looked briefly some time ago but
> > nothing has immediately popped at me.
> > 
> 
> I think we need at least
> 
>     e1000_power_up_phy_copper
>     e1000_power_down_phy_copper
> 
> from FreeBSD's dev/e1000/e1000_phy.c.
> 
> Speaking of i219 hardware, any idea where the code from if_em.c r1.330 came
> from? The commit is rather succinct.

The diff appears to be based on FreeBSD's code. It's discussed here:

https://marc.info/?t=145493623800004&r=1&w=2

> 
> I will try to adapt the FreeBSD bits and send a diff today or tomorrow.
> 

Reply via email to