From owner-freebsd-net@FreeBSD.ORG Sun May 27 06:40:05 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FA3A16A400 for ; Sun, 27 May 2007 06:40:05 +0000 (UTC) (envelope-from antinvidia@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 5648013C44C for ; Sun, 27 May 2007 06:40:05 +0000 (UTC) (envelope-from antinvidia@gmail.com) Received: by wa-out-1112.google.com with SMTP id m33so565440wag for ; Sat, 26 May 2007 23:40:03 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=oEqtMDNFl7RP+T7XGQPXitA6kisTSP2jjKUw9Q1nYqD/d+fKZdxJnmFoNXcPMjFea4HY5geXYjpchVXZ5bi907kuvJoqs2NeBf/p9gU7IHQShSmoMx9HHRqUcIttsobLukcyfx2LHqayaFD7dDIMc7XeFsW2muzOjpF3y/3lECk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=e0a9+YC7zb+nT4iM1iAXUEk5XFets5AwEVOuhGi7uCyMzVnYwEvwR1/dJPDIItuWh9bkjdG34Cqn44uzEG/gdw1aMKT9g8M7c/VY6SFcPNdL5a52LF+SKk9gzfOc9WmKiwt3PnAuIS+LSDmmaHB9jvKTRCTqujL6rVHRsh26o/4= Received: by 10.114.209.1 with SMTP id h1mr2306892wag.1180246331077; Sat, 26 May 2007 23:12:11 -0700 (PDT) Received: by 10.115.54.2 with HTTP; Sat, 26 May 2007 23:12:11 -0700 (PDT) Message-ID: Date: Sun, 27 May 2007 06:12:11 +0000 From: MQ To: stefan.lambrev@sun-fish.com In-Reply-To: <462E3B4A.5030307@sun-fish.com> MIME-Version: 1.0 References: <462E3B4A.5030307@sun-fish.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: em0 - bge0 failed to work at 1000baseTX X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2007 06:40:05 -0000 2007/4/24, Stefan Lambrev : > > Hello, > > I'm trying to get two gigabit network cards to work together. > > em0: port > 0x1000-0x101f mem 0xf0500000-0xf051ffff,0xf0524000-0xf0524fff irq 19 at > device 25.0 on pci0 > > em0@pci0:25:0: class=0x020000 card=0x2800103c chip=0x104a8086 rev=0x02 > hdr=0x00 > vendor = 'Intel Corporation' > class = network > subclass = ethernet > > and broadcom on the other end: > > bge0: mem 0xf4100000-0xf410ffff > irq 16 at device 0.0 on pci8 > > bge0@pci8:0:0: class=0x020000 card=0x30a3103c chip=0x16fd14e4 rev=0x21 > hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'BCM5753M NetXtreme Gigabit Ethernet PCI Express' > class = network > subclass = ethernet > > > When I connect both networks without switch e.g. directly they auto > negotiate to: > media: Ethernet autoselect (100baseTX ) > but I want 1000baseTX :( > > First thing that I tried was to force both network card with: > ifconfig bge0/em0 media 1000baseTX mediaopt full-duplex > but this lead to status: no carrier > > Second step was to set bge link0 and em0 link1, but still "no carrier" > (from bge manual) > > On the machine with em card I have linux installed so I boot under linux > and then everything works > with autoselect, and I'm able to transfer with speed +50MB/s. > > When I forced both network cards to 1000baseTX I notice this: > > em0 media: Ethernet 1000baseTX (autoselect) > > ^^^^^^^^ > bge0 media: Ethernet 1000baseTX (none) > > ^^^^ > > Something else that is quite strange is that when I change em media from > autoselec to 1000baseTX, > I see that for 2-3 seconds there is a connection between cards (e.g. > status: active), but just for 2-3 seconds > and then it disconnects again. (ping between hosts works for 2 seconds) > At this time ifconfig shows: > em0 > media: Ethernet 1000baseTX > > ^^^^^^ no autoselect here ? > status: active > > and bge0: > media: Ethernet autoselect (1000baseTX ) ( I left bge to > autoselect at some point as I saw it does not change a thing..) > status: active > > I compiled new kernel with > #define EM_MASTER_SLAVE 2 (and then 3) > in if_em.h (as I'm suspecting em driver ..) > but still no success. > > Last thing that I notice while (re)booting freebsd server with em0 is that > during starting program and rc scripts the status of the network changed > from 100mbps -> 1000mbps -> no carrier -> 100mbps. > > So any ideas how to get my network working at gigabit speeds? :) > > P.S. both machines are running freebsd 6.2 stable - em0 is i386 and bge0 > is on amd64. > em0 was tested with 6.2-release too. > > Thanks in advance. > > -- > > Best Wishes, > Stefan Lambrev > ICQ# 24134177 > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > Actually, I'd rather consider the bge(4) has some problems with its media negotiation. It seems that the problem you described was just the same with mine as I had mentioned earlier this year. I encountered the problem as I wanted a BCM5701 and a BCM5780 to connect to each other with 1000TX duplex.