From owner-freebsd-stable@FreeBSD.ORG Mon Nov 3 00:49:19 2008 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 EAE651065680 for ; Mon, 3 Nov 2008 00:49:19 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.185]) by mx1.freebsd.org (Postfix) with ESMTP id 78E888FC0A for ; Mon, 3 Nov 2008 00:49:19 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so1191399tid.3 for ; Sun, 02 Nov 2008 16:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=nxlaNVK/kxKjDWWLb5U8Rwx7KhmaJQqIr9BwPTXg2M4=; b=XRE0OVpr+v0PF6L7svSf5A3o2Ph3DFLq9gpbxXVpBcx2TLsRJwUurzmFZr1c8ihILc /swv7Bv7xSs9qrHvKF1jzhNwfPSbo9snH64RXZQ+NSN51E9qgVwmbolAIwJDCeeXLi5h 4SsUNjSXC5Y902idw/bHwmq3HjIoR4oGkJlDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=YMHihjIfzG+N/eF5QeHgtpgaWJ/PO2Kr6PiaUwfpJCt2/KTo9X25rRU1wmhdyr5WfQ 15m7vaAqQU/PtdcGIQ9IJ+dN1ICsoH9kaA3aT4G5zDbMaaHwxRwy3ChpEv7DYV2sDQla bCsYEN9p2qm0GStqRRiGCLh6ycQUqLxxwKfl0= Received: by 10.110.57.6 with SMTP id f6mr10741323tia.46.1225673358082; Sun, 02 Nov 2008 16:49:18 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id a14sm8054596tia.12.2008.11.02.16.49.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 02 Nov 2008 16:49:16 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id mA30lFvO094512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Nov 2008 09:47:15 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mA30lEBx094511; Mon, 3 Nov 2008 09:47:14 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 3 Nov 2008 09:47:14 +0900 From: Pyun YongHyeon To: Torfinn Ingolfsen Message-ID: <20081103004714.GB94302@cdnetworks.co.kr> References: <20080921215704.eca7300b.torfinn.ingolfsen@broadpark.no> <20080922021022.GC26294@cdnetworks.co.kr> <20081002222542.849d5481.torfinn.ingolfsen@broadpark.no> <20081003083443.GD71518@cdnetworks.co.kr> <20081101200606.e50b5dbc.torfinn.ingolfsen@broadpark.no> <20081102050915.GA90993@cdnetworks.co.kr> <20081102122906.eeceebd8.torfinn.ingolfsen@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081102122906.eeceebd8.torfinn.ingolfsen@broadpark.no> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD 6.5-prerelease and if_re - patches needed? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 00:49:20 -0000 On Sun, Nov 02, 2008 at 12:29:06PM +0100, Torfinn Ingolfsen wrote: > On Sun, 02 Nov 2008 14:09:15 +0900 > Pyun YongHyeon wrote: > > > http://people.freebsd.org/~yongari/re/6.x/README > > > > Hope this helps. > > Yes it does, thanks! > > On boot, trherer is a noticable delay (tens of seconds) after printing > these lines: > re0: port 0xee00-0xeeff mem 0xfdfff000-0xfdffffff irq 19 at device 0.0 on pci2 > re0: turning off MSI enable bit. > re0: Chip rev. 0x38000000 > re0: MAC rev. 0x00000000 > > The original didn't have that delay. I've changed to have re(4) wait the completion of DMAable memory allocation during bus_dma cleanups. The delay you've seen may be related with that change. Previously it just failed to load the driver if there is no available memory at the time of driver loading. However I guess that delay wouldn't happen if the driver is statically linked into kernel. Did you use kernel module? In theory PCIe variants of RealTek controllers would work with DAC so I could alleviate memory allocation restrictions imposed by bus_dma by allowing 64bits DMA addressing. Since I don't have PCIe based RealTek controllers and no datasheets are available for PCIe based controllers it's somewaht difficult to chage current allocation restrictions. > Otrher than that it works much better. Details: > root@kg-vm# uname -a > FreeBSD kg-vm.kg4.no 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #3: Sun Nov 2 10:44:32 CET 2008 root@kg-vm.kg4.no:/usr/obj/usr/src/sys/SMP amd64 > root@kg-vm# pciconf -lv | grep re0 -A 4 > re0@pci2:0:0: class=0x020000 card=0x81aa1043 chip=0x816810ec rev=0x01 hdr=0x00 > vendor = 'Realtek Semiconductor' > device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' > class = network > subclass = ethernet > > Note: I haven't testet if_rl, so I don't know how this patch affects that. rl(4) has a single change to build with updated if_rlreg.h and I don't think that would affect any stability of rl(4). > I'll get back with a note on stability sometime next week (after I have done losts of data transfers to and from this box). Ok. -- Regards, Pyun YongHyeon