netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Broadcom 5708 taking a few seconds to get link-up
@ 2008-02-08 19:29 Brian Haley
  2008-02-08 19:42 ` Michael Chan
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Haley @ 2008-02-08 19:29 UTC (permalink / raw)
  To: mchan; +Cc: netdev@vger.kernel.org

Hi Michael,

I'm working on a system that has two on-board 5708's.  We've noticed 
that it takes about 3 seconds for the link to come up - is this 
considered normal?  I've tried this with the latest davem tree with 
similar results to older kernels/drivers.

# uname -r
2.6.24

# ethtool -i eth3
driver: bnx2
version: 1.7.3
firmware-version: 1.9.3
bus-info: 0000:42:00.0

# lspci -v
42:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 
Gigabit Ethernet (rev 11)
         Subsystem: Hewlett-Packard Company Unknown device 7038
         Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 34
         Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
         Capabilities: [40] PCI-X non-bridge device
         Capabilities: [48] Power Management version 2
         Capabilities: [50] Vital Product Data
         Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+ 
Queue=0/0 Enable-

# ip link set eth3 up; mii-tool eth3; sleep 1; mii-tool eth3; sleep 1; 
mii-tool eth3; sleep 1; mii-tool eth3
eth3: no link
eth3: no link
eth3: no link
eth3: negotiated 100baseTx-FD, link ok

Other drivers I've tried - e1000 and tg3, get up in < 1 second.  I'm 
asking becuase any packet I try to transmit out this interface before 
link-up never gets out.

Thanks for any info,

-Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Broadcom 5708 taking a few seconds to get link-up
  2008-02-08 19:29 Broadcom 5708 taking a few seconds to get link-up Brian Haley
@ 2008-02-08 19:42 ` Michael Chan
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Chan @ 2008-02-08 19:42 UTC (permalink / raw)
  To: Brian Haley; +Cc: netdev

On Fri, 2008-02-08 at 14:29 -0500, Brian Haley wrote:
> Hi Michael,
> 
> I'm working on a system that has two on-board 5708's.  We've noticed 
> that it takes about 3 seconds for the link to come up - is this 
> considered normal?  I've tried this with the latest davem tree with 
> similar results to older kernels/drivers.

Yes, 2 - 3 seconds are normal for autoneg to link up on
10/100/1000baseT.  Sometimes it can take even longer, but generally less
than 5 seconds.  SerDes is much faster.

> 
> # uname -r
> 2.6.24
> 
> # ethtool -i eth3
> driver: bnx2
> version: 1.7.3
> firmware-version: 1.9.3
> bus-info: 0000:42:00.0
> 
> # lspci -v
> 42:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 
> Gigabit Ethernet (rev 11)
>          Subsystem: Hewlett-Packard Company Unknown device 7038
>          Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 34
>          Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
>          Capabilities: [40] PCI-X non-bridge device
>          Capabilities: [48] Power Management version 2
>          Capabilities: [50] Vital Product Data
>          Capabilities: [58] Message Signalled Interrupts: Mask- 64bit+ 
> Queue=0/0 Enable-
> 
> # ip link set eth3 up; mii-tool eth3; sleep 1; mii-tool eth3; sleep 1; 
> mii-tool eth3; sleep 1; mii-tool eth3
> eth3: no link
> eth3: no link
> eth3: no link
> eth3: negotiated 100baseTx-FD, link ok
> 
> Other drivers I've tried - e1000 and tg3, get up in < 1 second.  I'm 
> asking becuase any packet I try to transmit out this interface before 
> link-up never gets out.
> 

In BNX2 and TG3, we always reset the PHY when we bring up the device,
causing the link to drop and to renegotiate.  The link-up time for TG3
should be about the same (2 - 3 seconds).  Other drivers may not reset
the PHY and so the link may be able to come up instantly.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-08 19:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-08 19:29 Broadcom 5708 taking a few seconds to get link-up Brian Haley
2008-02-08 19:42 ` Michael Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).