Hi Jonathan,

From: Jonathan Gray <[email protected]>
Subject: Re: Intel 82579LM auto negotiation fails at boot
Date: Mon, 26 Mar 2012 13:36:46 +1100

> On Sun, Mar 25, 2012 at 10:21:58PM +0900, Yoshihisa Matsushita wrote:
>> >Synopsis:   Intel 82579LM auto negotiation fails at boot
>> >Category:   amd64 kernel system
>> >Environment:
>>      System      : OpenBSD 5.1
>>      Details     : OpenBSD 5.1-current (GENERIC.MP) #227: Thu Mar 22 
>> 11:10:40 MDT 2012
>>                       
>> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>> 
>>      Architecture: OpenBSD.amd64
>>      Machine     : amd64
>> >Description:
>>      em(4) describes 82579LM is one of supported chips, but
>>      auto-negotiation fails at boot, always links at 100Mbps on
>>      Thinkpad X220 (4286CTO).
>> 
>>      Despite of "sudo ifconfig em0 media" showing 1000BaseT
>>      capability, manually select 'media 1000baseT mediaopt
>>      full-duplex' also 'media 1000baseT' with ifconfig bring no
>>      links at all.
>> 
>> >How-To-Repeat:
>>      Rebooting system.
>> >Fix:
>>      Following patch fix my problems, auto-negotiation at boot and
>>      "ifconfig media" works as expected. I haven't checked any other
>>      em_pch2lan machines since I don't have any. Tests needed.
> 
> This points to a general problem with reset on 82579/pch2.
>
> It seems we are writing the wrong registers to disable the management
> interference with the chip in non managed mode.
> 
> I think we need something along the lines of the following,
> untested as I don't have any machines with pch2.

Thank you for your patch. But unfortunetely, applying it didn't resolve
my problems.. :(

Also I have tried with your patch and adding mine. This time it worked.

I forgot to mention in my earlier mail, but I have realised the problem
disappears when the system suspends and resumes. Once the system comes
back from suspend/resume, it links at 1000Mbps until I reboot the
system or "ifconfig em0 media". 

Feel free to contact me if you need further test.

Thank you,
-- 
yoshi

Reply via email to