Subject: Re: Problems with the wm driver
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 04/22/2005 13:28:50
On Fri, 22 Apr 2005, Martti Kuparinen wrote:

> I'm having big problems with the wm(4) driver. I have two integrated ports
> on the motherboard (wm0 and wm1) and two ports (wm2 and wm3) on a
> dual-port PCI card.
>
> No matter what I do I can't get the media detected on wm1 and wm3.
> wm0 and wm2 work just fine. Linux 2.6.11 on an identical Dell PowerEdge 750
> is able to use all ports just fine.

I don't know what's going on here but I was able to get address
for wm0, wm1 and wm3 with dhclient. This was shown on the console:

wm2: unable to allocate or map rx buffer 104, error = 55
wm2: interface not running

Here's dmesg with the generic kernel:

NetBSD 3.99.3 (GENERIC) #0: Fri Apr 22 07:59:17 EEST 2005
 	root@localhost:/usr/src/sys/arch/i386/compile/GENERIC
total memory = 3967 MB
avail memory = 3875 MB
...
wm0 at pci1 dev 1 function 0: Intel i82547GI 1000BASE-T Ethernet, rev. 0
wm0: interrupting at irq 3
wm0: Communication Streaming Architecture
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:11:43:ce:67:38
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb1 at pci0 dev 28 function 0: Intel 6300ESB PCI-X Bridge (rev. 0x02)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
wm1 at pci2 dev 1 function 0: Intel i82546EB 1000BASE-T Ethernet, rev. 1
wm1: interrupting at irq 11
wm1: 64-bit 66MHz PCIX bus
wm1: 256 word (8 address bits) MicroWire EEPROM
wm1: Ethernet address 00:04:23:b4:e2:5c
makphy0 at wm1 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm2 at pci2 dev 1 function 1: Intel i82546EB 1000BASE-T Ethernet, rev. 1
wm2: interrupting at irq 11
wm2: 64-bit 66MHz PCIX bus
wm2: 256 word (8 address bits) MicroWire EEPROM
wm2: Ethernet address 00:04:23:b4:e2:5d
makphy1 at wm2 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
uhci0 at pci0 dev 29 function 0: Intel 6300ESB USB UHCI Controller (rev. 0x02)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 6300ESB USB UHCI Controller (rev. 0x02)
uhci1: interrupting at irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
Intel 6300ESB Watchdog Timer (miscellaneous system, revision 0x02) at pci0 dev 29 function 4 not configured
Intel 6300ESB Advanced Interrupt Controller (interrupt system, interface 0x20, revision 0x02) at pci0 dev 29 function 5 not configured
ehci0 at pci0 dev 29 function 7: Intel 6300ESB USB EHCI Controller (rev. 0x02)
ehci0: interrupting at irq 7
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: single transaction translator
uhub2: 4 ports with 4 removable, self powered
ppb2 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0x0a)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
wm3 at pci3 dev 2 function 0: Intel i82541GI 1000BASE-T Ethernet, rev. 0
wm3: interrupting at irq 10
wm3: 32-bit 33MHz PCI bus
wm3: 64 word (6 address bits) MicroWire EEPROM
wm3: Ethernet address 00:11:43:ce:67:39
igphy1 at wm3 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ukphy0 at wm3 phy 2: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: no media present
ex0 at pci3 dev 3 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x74)
ex0: interrupting at irq 11
ex0: MAC address 00:01:02:b5:a5:91
bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 6
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto