From owner-freebsd-stable@FreeBSD.ORG Sat Sep 24 12:10:08 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DEBC1065674 for ; Sat, 24 Sep 2011 12:10:08 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta12.westchester.pa.mail.comcast.net (qmta12.westchester.pa.mail.comcast.net [76.96.59.227]) by mx1.freebsd.org (Postfix) with ESMTP id 263398FC17 for ; Sat, 24 Sep 2011 12:10:03 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta12.westchester.pa.mail.comcast.net with comcast id cbXG1h00127AodY5CcA4Q9; Sat, 24 Sep 2011 12:10:04 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta19.westchester.pa.mail.comcast.net with comcast id ccA21h0191t3BNj3fcA3br; Sat, 24 Sep 2011 12:10:04 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id BDC72102C36; Sat, 24 Sep 2011 05:10:01 -0700 (PDT) Date: Sat, 24 Sep 2011 05:10:01 -0700 From: Jeremy Chadwick To: Nenhum_de_Nos Message-ID: <20110924121001.GA14219@icarus.home.lan> References: <4E7DB740.9070206@rdtc.ru> <20110924111221.GA11624@icarus.home.lan> <36bdbdceb6cc95300d91690d1cf3e0e6.squirrel@eternamente.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36bdbdceb6cc95300d91690d1cf3e0e6.squirrel@eternamente.info> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: YongHyeon PYUN , freebsd-stable@freebsd.org Subject: Re: Realtek integrated nic problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2011 12:10:08 -0000 On Sat, Sep 24, 2011 at 08:44:20AM -0300, Nenhum_de_Nos wrote: > > On Sat, September 24, 2011 08:12, Jeremy Chadwick wrote: > > On Sat, Sep 24, 2011 at 05:56:00PM +0700, Eugene Grosbein wrote: > >> > I have a box using this Realtek nic: > >> > > >> > re0@pci0:1:0:0: class=0x020000 card=0x81051019 chip=0x813610ec > >> rev=0x05 > >> > hdr=0x00 > >> > class = network > >> > subclass = ethernet > >> > > >> > but FreeBSD is unable to use it. Its 8.1 pfSense. Newer versions would > >> run > >> > it ? > >> > > >> > thanks, > >> > > >> > matheus > >> > > >> > >> Your card is supported with re(4) driver in 8.2-RELEASE and later > >> versions. > > > > Based on what I can tell his 8.1-based pfSense box detects the card > > and binds it to re(4) -- look closely at the first few digits of the > > first pciconf line. > > > > Whether or not the card actually **functions properly** in 8.1 is a > > different story altogether. The OP doesn't explain what "unable to use > > it" means. My guess: it's probably a revision of card that 8.1 did not > > have proper code for. > > pciconf -lv finds that I sent, but ifconfig won't list the card. it's > useless as a nic. Right, the problem is what I assumed: the re(4) driver in 8.1 binds to the card, but the card/driver/network layer is not functional. This means the code in 8.1 probably does not work with this revision (not "model"!) of card. If it's possible for you to get dmesg(8) output from the machine, that would be useful. Chances are there is something being emitted during kernel boot when re(4) is initialised that indicates failure. It would also help if you could provide "pciconf -lvcb" output; note the additional flags. The BAR details are sometimes useful. > is it possible to use if_re from 8.2 in 8.1 ? I would strongly recommend you avoid doing this unless the existing maintainer of re(4) says it's okay. You should not get in the habit of doing this; there is no guarantee it will work (kernel ABI structures and semantics can/do change between versions). You might be able to take the re(4) source code from 8.2 and make it compile 8.1. I don't know if you'll be able to, say, steal if_re.ko from an 8.2 mirror site and load that on 8.1. It may load, but it may not work correctly. CC'ing YongHyeon to verify/dismiss my claims. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |