Re: Broadcom 5701 (3com 3c996B-T) phy support in 4.5?

2002-01-30 Thread John Polstra

In article [EMAIL PROTECTED],
Jonathan Stone  [EMAIL PROTECTED] wrote:
 
 Apologies if this is the wrong place to ask this
 
 I just got a 3com 3c996B-T with a bcm5701 chip. It doesn't work with a
 kernel built from 4.5-RC source pulled Friday: the gigabit phy goes
 unrecognized, gets attached as a ukphy, which (obviously) doesn't
 support 1000baseTX.
 
 Is this expected to work? Its hard to tell from if_bge.
 
 
 I discovered a suitable value for lines for sys/dev/mii/miidevs 
 in the  Debian Linux driver:
 
 +model xxBROADCOM BCM5701   0x0011 BCM5701 10/100/1000baseTX PHY
 
 
 rebuilt the .h file, and added corresponding lines to the probe
 routine in bgrphy.c.  That gets the builtin 5400-compatible gigabit
 PHY recognized -- it auto-negotiates with my gigabit switch, and gives
 the same ttcp same speed as a 5700-- but i still get another 30-odd
 ukphy devices attached on that miibus instance.

Yep, I went through the same exercise.  Apparently the 5701 doesn't
bother to decode the phy address.  The driver just has to know
to use phy number 1.  (Boo, hiss!)  I worked around it by making
bge_miibus_readreg and bge_miibus_writereg return 0 if the device is a
5701 and the phy number isn't 1.  That way, the extra phys never get
probed.

With that change, it works except that I'm getting frequent bogus
bge0: gigabit link up messages.  I haven't been able to figure out
why yet.  They don't appear to affect packet flow at all.

 From investigating the Linux driver, I gather there are a few features
 in these chips which may need workarounds (e.g., the Debian driver
 includes a new firmware image for some 5701 revs'; and forces master
 mode in some revs, to avoid a CRC bug.  Caveat emptor.)

Yes, there are quite a few mysterious workarounds in that driver.

John
-- 
  John Polstra
  John D. Polstra  Co., Inc.Seattle, Washington USA
  Disappointment is a good sign of basic intelligence.  -- Chögyam Trungpa


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Broadcom 5701 (3com 3c996B-T) phy support in 4.5?

2002-01-30 Thread David Malone

On Wed, Jan 30, 2002 at 11:41:05AM -0800, John Polstra wrote:
  From investigating the Linux driver, I gather there are a few features
  in these chips which may need workarounds (e.g., the Debian driver
  includes a new firmware image for some 5701 revs'; and forces master
  mode in some revs, to avoid a CRC bug.  Caveat emptor.)
 
 Yes, there are quite a few mysterious workarounds in that driver.

We've had alot of trouble with the builtin card in our Dell 2550s.
I'm going to try swapping hardware to see if we've got a bad machine,
but I suspect the chip is just plain broken. Where can you get the
Linux driver from? I might try stealing some of the hacks in it to
see if it fixes the problems we're seeing.

David.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Broadcom 5701 (3com 3c996B-T) phy support in 4.5?

2002-01-30 Thread John Polstra

In article [EMAIL PROTECTED], David Malone
[EMAIL PROTECTED] wrote:

 We've had alot of trouble with the builtin card in our Dell 2550s.
 I'm going to try swapping hardware to see if we've got a bad
 machine, but I suspect the chip is just plain broken.

Well, it seems to work OK with the Linux driver.

 Where can you get the Linux driver from?

I believe it's in the standard Linux kernel.  Just grab the latest one
from kernel.org.

John
-- 
  John Polstra
  John D. Polstra  Co., Inc.Seattle, Washington USA
  Disappointment is a good sign of basic intelligence.  -- Chögyam Trungpa


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Broadcom 5701 (3com 3c996B-T) phy support in 4.5?

2002-01-30 Thread John Polstra

In article [EMAIL PROTECTED],
Jonathan Stone  [EMAIL PROTECTED] wrote:
 
 Thanks for the responses. Any chance the miidevs hack and phy
 workarounds will make it into -current or FreeBSD 4.5?

I'm not going to commit anything unless/until I get the driver working
properly with the 5701, including understanding and eliminating those
gigabit link up messages.

John
-- 
  John Polstra
  John D. Polstra  Co., Inc.Seattle, Washington USA
  Disappointment is a good sign of basic intelligence.  -- Chögyam Trungpa


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message