Subject: kern/31303: wm(4) driver doesn't detect/attach to a fiber phy
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <dheeraj@ece.gatech.edu>
List: netbsd-bugs
Date: 09/12/2005 16:31:00
>Number:         31303
>Category:       kern
>Synopsis:       wm(4) driver doesn't detect/attach to a fiber phy
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 12 16:31:00 +0000 2005
>Originator:     Dheeraj Reddy
>Release:        NetBSD-current
>Organization:
GA Tech
>Environment:
>Description:
The wm(4) doesn;t detect a fiber PHY. The copper one works fine.
I can see the wm2, wm3 interfaces but their status is always inactive.

dmesg follows:
----------------

NetBSD 2.1_RC3 (GENERIC) #0: Thu Sep  1 10:54:48 UTC 2005                       

riz@faith.netbsd.org:/home/builds/ab/netbsd-2-1-RC3/i386/200508312123Z-obj/home/
builds/ab/netbsd-2-1-RC3/src/sys/arch/i386/compile/GENERIC
total memory = 3839 MB
avail memory = 3750 MB
BIOS32 rev. 0 found at 0xfdb54                                                  
mainbus0 (root)                                                                 
cpu0 at mainbus0: (uniprocessor)                                                
cpu0: Intel Xeon (686-class), 3056.96 MHz, id 0xf27                             
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>       
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>              
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>                            
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way                  
cpu0: L2 cache 512 KB 64B/line 8-way                                            
cpu0: ITLB 4K/4M: 64 entries                                                    
cpu0: DTLB 4K/4M: 64 entries                                                    
cpu0: 16 page colors                                                            
pci0 at mainbus0 bus 0: configuration mode 1                                    
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok              
pchb0 at pci0 dev 0 function 0                                                  
pchb0: Intel E7501 MCH Host (rev. 0x01)                                         
Intel E7500 MCH DRAM Controller (undefined subclass 0x00, revision 0x01) at pci0
dev 0 function 1 not configured                                                 
ppb0 at pci0 dev 3 function 0: Intel E7500 MCH HI_C vppb 1 (rev. 0x01)          
pci1 at ppb0 bus 2                                                              
pci1: i/o space, memory space enabled                                           
Intel 82870P2 P64H2 IOxAPIC (interrupt system, interface 0x20, revision 0x04) at
pci1 dev 28 function 0 not configured                                           
ppb1 at pci1 dev 29 function 0: Intel 82870P2 P64H2 PCI-to-PCI Bridge (rev.     
0x04)                                                                           
pci2 at ppb1 bus 4                                                              
pci2: memory space enabled                                                      
icp0 at pci2 dev 8 function 0: Intel Storage RAID controller                    
icp0: interrupting at irq 9                                                     
icp0: model <SRCZCR>, firmware <Firmware>, 2 channel(s), 32MB memory
icpsp0 at icp0 unit 100: physical SCSI channel 0
scsibus0 at icpsp0: 16 targets, 8 luns per target
icpsp1 at icp0 unit 101: physical SCSI channel 1
scsibus1 at icpsp1: 16 targets, 8 luns per target
ld0 at icp0 unit 0: <PD_B000>, type: JBOD, status: optimal
ld0: 34696 MB, 8811 cyl, 128 head, 63 sec, 512 bytes/sect x 71058031 sectors
ld1 at icp0 unit 1: <PD_B001>, type: JBOD, status: optimal
ld1: 341 GB, 44601 cyl, 255 head, 63 sec, 512 bytes/sect x 716530688 sectors
Intel 82870P2 P64H2 IOxAPIC (interrupt system, interface 0x20, revision 0x04) at
pci1 dev 30 function 0 not configured
ppb2 at pci1 dev 31 function 0: Intel 82870P2 P64H2 PCI-to-PCI Bridge (rev.
0x04)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
wm0 at pci3 dev 7 function 0: Intel i82546EB 1000BASE-T Ethernet, rev. 1
wm0: interrupting at irq 9
wm0: 64-bit 33MHz PCI bus
wm0: 256 word (8 address bits) MicroWire EEPROM
wm0: Ethernet address 00:07:e9:05:7e:02
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
wm1 at pci3 dev 7 function 1: Intel i82546EB 1000BASE-T Ethernet, rev. 1
wm1: interrupting at irq 9
wm1: 64-bit 33MHz PCI bus
wm1: 256 word (8 address bits) MicroWire EEPROM
wm1: Ethernet address 00:07:e9:05:7e:03
makphy1 at wm1 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
wm2 at pci3 dev 8 function 0: Intel i82542 1000BASE-X Ethernet, rev. 3
wm2: interrupting at irq 9
wm2: 64 word (6 address bits) MicroWire EEPROM
wm2: Ethernet address 00:d0:b7:45:7b:47
wm2: 1000baseSX, 1000baseSX-FDX, auto
wm3 at pci3 dev 9 function 0: Intel i82542 1000BASE-X Ethernet, rev. 3
wm3: interrupting at irq 9
wm3: 64 word (6 address bits) MicroWire EEPROM
wm3: Ethernet address 00:d0:b7:45:7b:f0
wm3: 1000baseSX, 1000baseSX-FDX, auto
wm4 at pci3 dev 10 function 0: Intel i82542 1000BASE-X Ethernet, rev. 3
wm4: interrupting at irq 9
wm4: 64 word (6 address bits) MicroWire EEPROM
wm4: Ethernet address 00:d0:b7:45:7a:ee
wm4: 1000baseSX, 1000baseSX-FDX, auto
Intel E7500 MCH HI_C vppb 2 (undefined subclass 0x00, revision 0x01) at pci0 dev
3 function 1 not configured
uhci0 at pci0 dev 29 function 0: Intel 82801CA/CAM USB Controller (rev. 0x02)
uhci0: interrupting at irq 9
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 82801CA/CAM USB 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
ppb3 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge (rev. 0x42)
pci4 at ppb3 bus 1
pci4: i/o space, memory space enabled
vga1 at pci4 dev 12 function 0: ATI Technologies Rage XL (rev. 0x27)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801CA LPC Interface (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801CA IDE Controller (ICH3) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
Intel 82801CA/CAM SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev
31 function 3 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
crypto: assign driver 0, flags 2
crypto: driver 0 registers alg 1 flags 0 maxoplen 0
crypto: driver 0 registers alg 2 flags 0 maxoplen 0
crypto: driver 0 registers alg 3 flags 0 maxoplen 0
crypto: driver 0 registers alg 4 flags 0 maxoplen 0
crypto: driver 0 registers alg 5 flags 0 maxoplen 0
crypto: driver 0 registers alg 17 flags 0 maxoplen 0
crypto: driver 0 registers alg 6 flags 0 maxoplen 0
crypto: driver 0 registers alg 7 flags 0 maxoplen 0
crypto: driver 0 registers alg 15 flags 0 maxoplen 0
crypto: driver 0 registers alg 8 flags 0 maxoplen 0
crypto: driver 0 registers alg 16 flags 0 maxoplen 0
crypto: driver 0 registers alg 9 flags 0 maxoplen 0
crypto: driver 0 registers alg 10 flags 0 maxoplen 0
crypto: driver 0 registers alg 13 flags 0 maxoplen 0
crypto: driver 0 registers alg 14 flags 0 maxoplen 0
crypto: driver 0 registers alg 11 flags 0 maxoplen 0
crypto: driver 0 registers alg 18 flags 0 maxoplen 0
ses0 at scsibus1 target 6 lun 0: <ESG-SHV, SCA HSBP M16, 0.05> processor fixed
ses0: SAF-TE Compliant Device
boot device: ld0
root on ld0a dumps on ld0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
WARNING: mclpool limit reached; increase NMBCLUSTERS
wm4: unable to allocate or map rx buffer 0, error = 55
wm4: interface not running
wm4: unable to allocate or map rx buffer 0, error = 55
wm4: interface not running
wm4: unable to allocate or map rx buffer 0, error = 55
wm4: interface not running
WARNING: mclpool limit reached; increase NMBCLUSTERS
------------------------------------------------------------

>How-To-Repeat:
Use a machine with wm cards(PCI-X) with a fiber phy.
And try to enable the NiC using ifconfig wm2 up

The status never changes to active.

>Fix:
Sorry.