Subject: Netgear gigabit GA621 fibre interface problems
To: None <port-i386@netbsd.org>
From: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
List: port-i386
Date: 12/10/2002 17:05:05
I am having a few problems getting a Netgear GA621 gigabit card to work. This
has an SX fibre interface. System is running 1.6K from Nov 19th. The card
is detected OK and is reported by the kernel to support 1000baseSX,
1000baseSX-FDX & auto. The card is plugged into a cisco catalyst 6500 which
supports 1000SX in full duplex mode only.

dmesg reports:
NetBSD 1.6K (GENERIC) #1: Mon Nov 18 17:05:13 GMT 2002
    root@splunge2:/usr/obj/sys/arch/i386/compile/GENERIC
total memory = 255 MB
avail memory = 230 MB
using 3297 buffers containing 13188 KB of memory
BIOS32 rev. 0 found at 0xfdb90
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (Coppermine) Pentium III (686-class), 932.94 MHz
cpu0: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 383fbff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 256 KB 32b/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 8 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: ServerWorks CNB20HE Host (rev. 0x23)
ppb0 at pci0 dev 0 function 1: ServerWorks CNB20LE Host (rev. 0x01)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vga1 at pci1 dev 0 function 0: ATI Technologies Rage XL (AGP) (rev. 0x27)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pchb1 at pci0 dev 0 function 2
pchb1: ServerWorks I/O Bridge (rev. 0x01)
pchb2 at pci0 dev 0 function 3
pchb2: ServerWorks I/O Bridge (rev. 0x01)
pci2 at pchb2 bus 2
pci2: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
gsip0 at pci2 dev 1 function 0: NatSemi DP83820 Gigabit Ethernet, rev 00
gsip0: interrupting at irq 11
gsip0: Ethernet address 00:40:f4:29:5e:d1
gsip0: 64-bit PCI slot detected, using 64-bit data transfers
gsip0: using ten-bit interface
ukphy0 at gsip0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 1000baseSX, 1000baseSX-FDX, auto
fxp0 at pci0 dev 4 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at irq 7
fxp0: Ethernet address 00:30:48:11:9d:7a
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
...

'ifconfig gsip0 media 1000baseSX-FDX'  gives
ifconfig: unknown Ethernet media subtype: 1000baseSX-FDX

'ifconfig gsip0 media 1000baseSX' reports no errors, however while the
card link light comes on, the link is dead as far as the catalyst is
concerned. An 'ifconfig gsip0' reports:

gsip0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        enabled=0
        address: 00:40:f4:29:5e:d1
        media: Ethernet 1000baseSX
        status: no carrier
        inet 10.0.0.10 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::240:f4ff:fe29:5ed1%gsip0 prefixlen 64 scopeid 0x1


This looks suspiciously like the PHY is not being handled correctly. Can
anyone suggest where to start looking. I've had a quick poke around
if_sip.c but cannot see anything obvious...

TIA
Dave

--
=====================================================================
Computing Services Dept         Phone/Fax: 0151-794-3731/3759
The University of Liverpool     Email: dtyson@liv.ac.uk
Chadwick Tower, Peach Street    WWW:   http://www.liv.ac.uk/~dtyson
Liverpool L69 7ZF               Open Source O/S: www.netbsd.org
=====================================================================