From owner-freebsd-hardware@FreeBSD.ORG Mon Dec 29 01:18:21 2003 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A44416A4CE for ; Mon, 29 Dec 2003 01:18:21 -0800 (PST) Received: from gaff.hhhr.ision.net (gaff.hhhr.ision.net [195.180.9.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36F0C43D2D for ; Mon, 29 Dec 2003 01:18:19 -0800 (PST) (envelope-from ohoyer@gaff.hhhr.ision.net) Received: from gaff.hhhr.ision.net (localhost [127.0.0.1]) by gaff.hhhr.ision.net (8.12.10/8.12.10) with ESMTP id hBT9IKVX065121; Mon, 29 Dec 2003 10:18:20 +0100 (CET) (envelope-from ohoyer@gaff.hhhr.ision.net) Received: from localhost (ohoyer@localhost)hBT9IJ7i065118; Mon, 29 Dec 2003 10:18:19 +0100 (CET) (envelope-from ohoyer@gaff.hhhr.ision.net) Date: Mon, 29 Dec 2003 10:18:18 +0100 (CET) From: Olaf Hoyer To: Hideki Yamamoto In-Reply-To: <20031229.150542.41696894.yamamoto436@oki.com> Message-ID: <20031229100720.X65076@gaff.hhhr.ision.net> References: <20031229.150542.41696894.yamamoto436@oki.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hardware@freebsd.org Subject: Re: Link up problem between 1000base-SX(bge) and SUN X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 09:18:21 -0000 On Mon, 29 Dec 2003, Hideki Yamamoto wrote: > > Hello, > > I'm having a problem about link up between 1000base-SX(bge) and SUN. > > I tried yesterday's 4.9-stable on a FreeBSD box with two 3COM > 3C996-SXs and two onboard BMC5703 chips. Two 3COM 3C996-SX board link > went up, but the other side, a 1000base-SX I/F on SUN F280 did not go > up. When doing ping command to SUN from FreeBSD box, LED on 3C996 > were brinking but nothing happened to SUN board. I changed bge0 to > bge2, but the situation was the same. Hardware diagram is as follows. > bge0 can send or receive packates to the router or another PC with > intel SX board. > > Is this related to AUTO negotiation? Hi! Sometimes SUN cards are a bit picky. But, lets start gathering additional data: I assume you have a ge-card in, or which card are you using in the 280? The man page says that autoneg is performed, but chooses : The GEM PCS is capable of performing auto-negotiation using the remote (or link partner) link end and receives the capabilities of the remote end. It selects the highest common demonina- tor mode of operation based on priorities. The ge driver also supports forced-mode operation under which the driver selects the mode of operation I assume that the interface is plumbed, and shows up in ifconfig as well, could you also post the snippet of the ifconfig entry? > I cannot find any parameters about AUTO negotiation in 'bge' driver > source. I checked Linux 2.4.22 kernel source and have found the > several code about auto negotiation. I wonder if a linux box works > well. I do not need full support of auto negotiation, but sample code > that handles auto negotiation with Solaris machine. in bge(4) it is stated, that the bge's also support autoneg over a cross-cable-config (which this basically is). But: have a look at the link0 option there (can be adjusted via ifconfig) normally, autoneg shall do, but over a cross-cable you need to designate one end being master, other end being slave. My suspicion is, that autoneg procedure somewhere fails, and you should try to set the bge to be link master. Just my 0.02 EUR -- Olaf Hoyer ohoyer@gaff.hhhr.ision.net Fuerchterliche Erlebniss geben zu raten, ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist. (Nietzsche, Jenseits von Gut und Boese)