From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 26 12:10:22 2007 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 15CC816A406 for ; Mon, 26 Mar 2007 12:10:22 +0000 (UTC) (envelope-from Danovitsch@vitsch.net) Received: from amsfep19-int.chello.nl (amsfep19-int.chello.nl [62.179.120.14]) by mx1.freebsd.org (Postfix) with ESMTP id 782F313C448 for ; Mon, 26 Mar 2007 12:10:21 +0000 (UTC) (envelope-from Danovitsch@vitsch.net) Received: from Tuinhuisje.Vitsch.net ([62.195.87.223]) by amsfep18-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20070326115222.GCTA25770.amsfep18-int.chello.nl@Tuinhuisje.Vitsch.net>; Mon, 26 Mar 2007 13:52:22 +0200 Received: from self (f187184.upc-f.chello.nl [80.56.187.184]) (authenticated bits=0) by Tuinhuisje.Vitsch.net (8.13.1/8.13.1) with ESMTP id l2QBqFx5018066; Mon, 26 Mar 2007 13:52:15 +0200 (CEST) (envelope-from Danovitsch@vitsch.net) From: "Daan Vreeken [PA4DAN]" Organization: Vitsch Electronics To: Paul Haddad Date: Mon, 26 Mar 2007 13:52:18 +0200 User-Agent: KMail/1.9.1 References: <200703251514.l2PFEf8L056452@www.freebsd.org> In-Reply-To: <200703251514.l2PFEf8L056452@www.freebsd.org> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_yP7BGydDeC19Dgi" Message-Id: <200703261352.18970.Danovitsch@vitsch.net> Cc: freebsd-bugs@freebsd.org Subject: Re: misc/110804: re driver doesn't properly support RTL8110SC X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 12:10:22 -0000 --Boundary-00=_yP7BGydDeC19Dgi Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sunday 25 March 2007 17:14, Paul Haddad wrote: > >Number: 110804 > >Category: misc > >Synopsis: re driver doesn't properly support RTL8110SC > >Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun Mar 25 15:20:01 GMT 2007 > >Closed-Date: > >Last-Modified: > >Originator: Paul Haddad > >Release: pfSense 1.0.1/6.1 (but verified problem still exists in > > 6.2) Organization: > > PTH Consulting > > >Environment: > > FreeBSD router.pth.prv 6.1-RELEASE-p15 FreeBSD 6.1-RELEASE-p15 #3: Sat Mar > 17 23:09:48 UTC 2007 > root@pfSense.local:/usr/obj.pfSense/usr/src/sys/pfSense_wrap.6 i386 > > >Description: > > The Jetway AD3RTLANG (3 port RTL8110SC card) device isn't supported > properly in the RE driver. It seems like the device is listed in if_reg.h > but it isn't matching the device. The below is the pciconf for the device. > > > none0@pci0:9:0: class=0x020000 card=0x10ec16f3 chip=0x816910ec rev=0x10 > hdr=0x00 class = network > subclass = ethernet > none2@pci0:11:0: class=0x020000 card=0x10ec16f3 chip=0x816910ec > rev=0x10 hdr=0x00 class = network > subclass = ethernet > none3@pci0:12:0: class=0x020000 card=0x10ec16f3 chip=0x816910ec > rev=0x10 hdr=0x00 class = network > subclass = ethernet > > This doesn't seem to match what the RE driver is looking for. I've tried > to change the matching logic for the driver but haven't had any luck with > this. I stumbled upon this two weeks ago while setting up a new (mini-ITX) server for my company. The attached patch adds the correct ID's for the Realtek chips on the Jetway triple-gigabit expansion card. After patching the kernel all three devices are properly detected and work like a charm. This tiny patch was sponsoren by : Vitsch Electronics pciconf, dmesg or any other information is available upon request. grtz, -- Daan --Boundary-00=_yP7BGydDeC19Dgi Content-Type: text/plain; charset="iso-8859-6"; name="if_re.c.jetway-patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="if_re.c.jetway-patch" --- if_re.c~ Mon Jan 1 02:07:02 2007 +++ if_re.c Mon Jan 1 02:11:38 2007 @@ -182,6 +182,8 @@ "RealTek 8169S Single-chip Gigabit Ethernet" }, { RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169_8110SB, "RealTek 8169SB/8110SB Single-chip Gigabit Ethernet" }, + { RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169_8110SC, + "RealTek 8169SC/8110SC Single-chip Gigabit Ethernet" }, { RT_VENDORID, RT_DEVICEID_8169SC, RL_HWREV_8169_8110SC, "RealTek 8169SC/8110SC Single-chip Gigabit Ethernet" }, { RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8110S, @@ -1219,7 +1221,9 @@ * Allocate the parent bus DMA tag appropriate for PCI. */ #define RL_NSEG_NEW 32 - error = bus_dma_tag_create(bus_get_dma_tag(dev), 1, 0, +// DAAN Daan daan !! +// error = bus_dma_tag_create(bus_get_dma_tag(dev), 1, 0, + error = bus_dma_tag_create(NULL, 1, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, MAXBSIZE, RL_NSEG_NEW, BUS_SPACE_MAXSIZE_32BIT, 0, NULL, NULL, &sc->rl_parent_tag); --Boundary-00=_yP7BGydDeC19Dgi--