Robin Breathe
2003-Jun-04 09:17 UTC
bge drivers does not work for 3COM 3C996-SX / 3C996B-T
I'm experiencing similar problems with a 3C996-T under 4.8-REL. In particular, connecting a 4.8-REL machine to a 5.1-REL machine leads to some interesting situations: I can do simple pings across the link, but ssh fails, and heavy pings crash the 4.8 machine. Similarly changing the interface configuration with ifconfig tends to crash the 4.8 machine (mtu, link0, up/down, etc). The behaviour is somewhat hard to diagnose, since there's no panic - just a hard lock. The 4.8-R machine: $ uname -a FreeBSD quadric.dsl.isometry.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Sun Apr 6 19:46:37 UTC 2003 root@quadric.dsl.isometry.net:/usr/obj/usr/src/sys/QUADRIC i386 $ ifconfig bge0 bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=3<rxcsum,txcsum> inet 192.168.108.1 netmask 0xffffff00 broadcast 192.168.108.255 inet6 fe80::204:76ff:fe3b:6baf%bge0 prefixlen 64 scopeid 0x3 ether 00:04:76:3b:6b:af media: Ethernet autoselect (1000baseTX <full-duplex>) status: active The 5.1-R machine: $ uname -a FreeBSD twiddle.dsl.isometry.net 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Wed Jun 4 08:23:22 UTC 2003 root@twiddle.dsl.isometry.net:/var/obj/var/cvs/RELENG_5/src/sys/TWIDDLE i386 $ ifconfig bge0 bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.108.2 netmask 0xffffff00 broadcast 192.168.108.255 inet6 fe80::204:76ff:fe3b:62e3%bge0 prefixlen 64 scopeid 0x1 ether 00:04:76:3b:62:e3 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active On both machines, the line "bge0: gigabit link up" comes up very regularly on the console. I've had the 4.8-R machine talking happily to the (now) 5.1-R machine running Windows 2000, though also with the "bge0: gigabit link up" messages. Anything else I can provide to help debug? - Robin Fabien THOMAS wrote the following on 16/05/2002 13:03:> I've some problems with bge driver with 3COM 3C996-SX fiber card and > 3C996B-T copper card under -stable: > > The fiber card is detected correctly but the link does not go up (i've > tested the same card between two Win2K and it works well). > > The copper card is detected but the link goes up/down and sometimes lock the > machine (reboot is needed to restart) when i start a 'ping -i0 -q'. > > Does someone experienced the same problems ? > > for the missing splx: i think i've found a new one in bge_init: > > static void > bge_init(xsc) > void *xsc; > { > struct bge_softc *sc = xsc; > struct ifnet *ifp; > u_int16_t *m; > int s; > > s = splimp(); > > ifp = &sc->arpcom.ac_if; > > if (ifp->if_flags & IFF_RUNNING) > --> missing splx ? > return; > > > Fabien
Hideki Yamamoto
2003-Dec-28 04:00 UTC
bge drivers does not work for 3COM 3C996-SX / 3C996B-T
Hi, I tried today's 4.9-stable on a FreeBSD box with two 3COM 3C996-SXs and two onboard BMC5703 chips. 3COM 3C996-SX boards are linkup, but the other side, an SX I/F on SUN F280 is not linkup. When doing ping command to SUN, LED on 3C996 are brinking but nothing happens to SUN board. I changed bge0 to bge2, but the situation is the same. Hardware diagram is as follows. bge0 can connect to the router or another PC with intel SX board. Is this related to AUTO negotiation? I cannot find any parameters about AUTO negotiation in 'bge' driver source. Any help would be greatly appreciated. Hideki Yamamoto +--------------+ | | | (bge0)3C996-SX+-----+[Router] | | | (bge2)3C996-SX+-----+[SUN F280] | | +--------------+ bge0: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem 0xf7ef0000-0xf7efffff irq 10 at device 1.0 on pci1 bge0: Ethernet address: 00:04:76:e1:06:cf bge1: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xf7ee0000-0xf7eeffff irq 11 at device 2.0 on pci1 bge1: Ethernet address: 00:0b:cd:d2:b0:40 miibus0: <MII bus> on bge1 brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto pcib2: <Host to PCI bridge> on motherboard pci2: <PCI bus> on pcib2 pcib3: <Host to PCI bridge> on motherboard pci3: <PCI bus> on pcib3 pcib4: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard IOAPIC #1 intpin 10 -> irq 15 IOAPIC #1 intpin 13 -> irq 16 pci4: <PCI bus> on pcib4 bge2: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem 0xf7ff0000-0xf7ffffff irq 15 at device 1.0 on pci4 bge2: Ethernet address: 00:0a:5e:1d:83:25 bge3: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xf7fe0000-0xf7feffff irq 16 at device 2.0 on pci4 bge3: Ethernet address: 00:0b:cd:d2:b0:3b ----------------------------------------------------------------- Hideki YAMAMOTO Oki Electric Industry Co., Ltd.
Hideki Yamamoto
2003-Dec-29 12:39 UTC
bge drivers does not work for 3COM 3C996-SX / 3C996B-T
Hi, I added code to recognize 3com 1000base-SX card as miibus and compiled them, but I do not have time to test yet. I think this may solove my original problem that link of SUN SX card does not go up, though 3com card goes up well. I will start testing it from Jan.4,2004. I uploaded the fixed code on my web page, http://members.aol.com/hyama99/. I appreciate If someone gives me comments on the code before testing. Date: Mon, 29 Dec 2003 19:16:15 +0900 (JST)> > Dear Peters > > > > > > > > > bge0: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem > > > > 0xf7ef0000-0xf7efffff irq 10 at device 1.0 on pci1 bge0: Ethernet > > > > address: 00:04:76:e1:06:cf > > > > > > No miibus or PHY on bge0? > > > > Sorry, I cannot answer because my knowledge is not sufficient. > > Neither PHY nor miibus exist on bge0 and bge2. > Both bge0 and bge2 are SX cards. The following is the full dmesg. > bge1 and bge3 have miibus and phy.> ------------------------------------------------------------ > bge0: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem 0xf7ef0000-0xf7efffff irq 10 at device 1.0 on pci1 > bge0: Ethernet address: 00:04:76:e1:06:cf > bge1: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xf7ee0000-0xf7eeffff irq 11 at device 2.0 on pci1 > bge1: Ethernet address: 00:0b:cd:d2:b0:40 > miibus0: <MII bus> on bge1 > brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto > bge2: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem 0xf7ff0000-0xf7ffffff irq 15 at device 1.0 on pci4 > bge2: Ethernet address: 00:0a:5e:1d:83:25 > bge3: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xf7fe0000-0xf7feffff irq 16 at device 2.0 on pci4 > bge3: Ethernet address: 00:0b:cd:d2:b0:3b > miibus1: <MII bus> on bge3 > brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1 > brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto > bge0: gigabit link up > bge2: gigabit link up > ------------------------------------------------------------Regards, Hideki Yamamoto
Hideki Yamamoto
2004-Jan-11 00:55 UTC
bge drivers does not work for 3COM 3C996-SX / 3C996B-T
Hi, After all, SUN recognise the FreeBSD box with 3COM 3C996-SX by setting adv_1000autoneg_cap = 0 in /kernel/drv/ge.conf on Solaris, As 3COM 3C996-SX does not support MIIbus, my patch I wrote last year was meaningless. Regards, Hideki Yamamoto From: Hideki Yamamoto <hyama@acm.org> Subject: Re: bge drivers does not work for 3COM 3C996-SX / 3C996B-T Date: Tue, 30 Dec 2003 05:38:58 +0900 (JST) Message-ID: <20031230.053858.74753983.yamamoto436@oki.com>> > Hi, > > I added code to recognize 3com 1000base-SX card as miibus and > compiled them, but I do not have time to test yet. > I think this may solove my original problem that link of SUN SX card > does not go up, though 3com card goes up well. > > I will start testing it from Jan.4,2004. I uploaded the fixed code > on my web page, http://members.aol.com/hyama99/. > > I appreciate If someone gives me comments on the code before testing. > > Date: Mon, 29 Dec 2003 19:16:15 +0900 (JST) > > > > Dear Peters > > > > > > > > > > > > bge0: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem > > > > > 0xf7ef0000-0xf7efffff irq 10 at device 1.0 on pci1 bge0: Ethernet > > > > > address: 00:04:76:e1:06:cf > > > > > > > > No miibus or PHY on bge0? > > > > > > Sorry, I cannot answer because my knowledge is not sufficient. > > > > Neither PHY nor miibus exist on bge0 and bge2. > > Both bge0 and bge2 are SX cards. The following is the full dmesg. > > bge1 and bge3 have miibus and phy. > > > ------------------------------------------------------------ > > bge0: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem 0xf7ef0000-0xf7efffff irq 10 at device 1.0 on pci1 > > bge0: Ethernet address: 00:04:76:e1:06:cf > > bge1: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xf7ee0000-0xf7eeffff irq 11 at device 2.0 on pci1 > > bge1: Ethernet address: 00:0b:cd:d2:b0:40 > > miibus0: <MII bus> on bge1 > > brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0 > > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto > > bge2: <Broadcom BCM5701 Gigabit Ethernet, ASIC rev. 0x105> mem 0xf7ff0000-0xf7ffffff irq 15 at device 1.0 on pci4 > > bge2: Ethernet address: 00:0a:5e:1d:83:25 > > bge3: <Broadcom BCM5703 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xf7fe0000-0xf7feffff irq 16 at device 2.0 on pci4 > > bge3: Ethernet address: 00:0b:cd:d2:b0:3b > > miibus1: <MII bus> on bge3 > > brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1 > > brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto > > bge0: gigabit link up > > bge2: gigabit link up > > ------------------------------------------------------------ > > Regards, > > Hideki Yamamoto