Subject: Re: Intel Gigabit driver wm(4) fiber phy
To: None <tech-net@NetBSD.org>
From: Dheeraj S <dheeraj@ece.gatech.edu>
List: tech-net
Date: 09/07/2005 17:35:46
On Wed, Sep 07, 2005 at 04:26:43PM -0400, Dheeraj S wrote:

> Hello all
>   Does the wm(4) driver support fiber phy too ? I am having problems trying
> to bring up a wm card with fiber phy connected. and the link status never
> goes active. Any ideas/code fragments will be of huge help.
> 
> truly
> dheeraj
> -- 
Sorry about the missing dmesg and ifconfig outputs.

---------------------8<------------------------8<------------------------
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
-----------------------8<------------------------8<--------------------

$ ifconfig -a
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        enabled=0
        address: 00:07:e9:05:7e:02
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet 192.168.0.5 netmask 0xffffff80 broadcast 192.168.0.255
        inet6 fe80::207:e9ff:fe05:7e02%wm0 prefixlen 64 scopeid 0x1
wm1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        enabled=0
        address: 00:07:e9:05:7e:03
        media: Ethernet autoselect (none)
        status: no carrier
        inet6 fe80::207:e9ff:fe05:7e03%wm1 prefixlen 64 scopeid 0x2
wm2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:d0:b7:45:7b:47
        media: Ethernet autoselect (none)
        status: no carrier
        inet6 fe80::2d0:b7ff:fe45:7b47%wm2 prefixlen 64 scopeid 0x3
wm3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:d0:b7:45:7b:f0
        media: Ethernet autoselect (none)
        status: no carrier
        inet6 fe80::2d0:b7ff:fe45:7bf0%wm3 prefixlen 64 scopeid 0x4
wm4: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: 00:d0:b7:45:7a:ee
        media: Ethernet autoselect (none)
        status: no carrier
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33196
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
strip0: flags=0 mtu 1100
strip1: flags=0 mtu 1100

--------------------------------------------------


wm2, wm3 and wm4 are the problematic NiCs

truly
dheeraj
-- 
"Nature wants us to react, return blow for blow, cheating for cheating, lie for
lie, and then it requires a Divine power not to hit-back, keep control and 
remain unattached, and act with prudence."