Subject: auto-negotiate problems on 4.0beta2
To: None <current-users@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 12/24/2006 20:13:40
I'm having autonegotiate problems with a wm device on 4.0beta2.  Here's
the dmesg:

wm0 at pci4 dev 0 function 0: Intel i82573E IAMT, rev. 3
wm0: interrupting at ioapic0 pin 16 (irq 11)
wm0: PCI-Express bus
wm0: 256 word (8 address bits) SPI EEPROM
wm0: Ethernet address 00:30:48:8a:d8:76
makphy0 at wm0 phy 1: Marvell 88E1111 Gigabit PHY, rev. 2
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto makphy1 at wm1 phy 1: Marvell 88E1111 Gigabit PHY,
rev. 2 makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseT, 1000baseT-FDX, auto

At boot time, it isn't hearing any other packets.  (I haven't checked
if it's sending, but I think so, since I see the lights on the switch
flicker.)  If I manually ifconfig 'media 100baseTX mediaopt full-duplex'
it works properly.  If I manually select 10baseT and then 'media
autoselect', it will talk -- but judging from the speed, still at 10M
bps, even though 'ifconfig' reports 100Mbps.

The machine is eventually going to be talking to a GigE switch.  I hope
it will auto-negotiate that properly, since as I understand it manually
setting the speed for GigE is against the spec.  (For what it's worth,
I tried FreeBSD 6.1 and Fedora Core on the box; both were able to talk
with no trouble, so I don't think it's a hardware problem.)


		--Steve Bellovin, http://www.cs.columbia.edu/~smb