From owner-freebsd-current@FreeBSD.ORG Fri Nov 7 06:49:30 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA0F7106567E for ; Fri, 7 Nov 2008 06:49:30 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 666418FC1C for ; Fri, 7 Nov 2008 06:49:30 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so430552ywe.13 for ; Thu, 06 Nov 2008 22:49:29 -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:subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=5hex03JJC6ZdgGUSP2IF6OFw5DJ8z4MYoaVtbUaFy60=; b=FHEf8G2XF7AGSeflvSkZxqii4iblWvF/aDyASR6SCRdlKmBglpypOKtLHSTmMxEaC8 VhBRX6FdX7Agapg2YBDLHs5HHPTIGtGiyAO7KujM1ZIxpZIuFaPH5g+RmXpS0EwjUUm2 CaHaXUpIBQhxWHqKYllhckUmrlUCD08LN1TDE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=DU6Ye3VI76EUwBeBF5bGnk4N9iHIwXIqC4Zo7faKFR2LdoyOyeSNnB2BErWIL4tOfS gEHFzW/8kg2gMCnpAMd5a7kBf3ikD0EIIEY4W90EuqqY7GvpxTTHGGbgp9SnjG5bmRDU 0nSDxozq3FEzc2Qa+YjbnyHoUySirOroOl9pw= Received: by 10.90.99.6 with SMTP id w6mr2740516agb.81.1226040569200; Thu, 06 Nov 2008 22:49:29 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id l31sm2862052hsa.12.2008.11.06.22.49.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 06 Nov 2008 22:49:27 -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 mA76lQqX011802 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 7 Nov 2008 15:47:27 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mA76lQl3011801 for freebsd-current@FreeBSD.org; Fri, 7 Nov 2008 15:47:26 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 7 Nov 2008 15:47:24 +0900 From: Pyun YongHyeon To: freebsd-current@FreeBSD.org Message-ID: <20081107064724.GA11486@cdnetworks.co.kr> References: <20081030040637.GA78796@cdnetworks.co.kr> <20081030114845.GE78796@cdnetworks.co.kr> <20081031034443.GF82781@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081031034443.GF82781@cdnetworks.co.kr> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: Call for testers: Atheros AR8121(L1E)/AR8113/AR8114(L2E) ethernet X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 06:49:30 -0000 On Fri, Oct 31, 2008 at 12:44:43PM +0900, To freebsd-current@FreeBSD.org wrote: > On Thu, Oct 30, 2008 at 08:48:45PM +0900, To freebsd-current@FreeBSD.org wrote: > > On Thu, Oct 30, 2008 at 01:06:37PM +0900, To freebsd-current@FreeBSD.org wrote: > > > > > > Hi, > > > > > > I had been working on writing a driver for Atheros AR8121(L1E), > > > AR8113/AR8114(L2E) ethernet controllers since Jeremy Chadwick sent > > > the hardware to me. I think it's feature complete state and time > > > for more testing for stability or some edge cases. I guess AR81xx > > > is commonly found on newer Asus EeePC or P5Q series of Asus > > > motherboard. If you have AR81xx controller would you give it spin > > > and let me know how it goes? You can get the latest driver at the > > > following URL. > > > http://people.freebsd.org/~yongari/ate/if_ate.c > > > http://people.freebsd.org/~yongari/ate/if_atereg.h > > > http://people.freebsd.org/~yongari/ate/if_atevar.h > > > http://people.freebsd.org/~yongari/ate/Makefile > > > or > > > http://people.freebsd.org/~yongari/ate/ate.20081030.tar.gz > > > The driver should build without problems on CURRENT, stable/7. > > > > > > ATM the driver supports the following hardware features. > > > - TSO > > > - Rx TCP/UDP/IP checksum offload > > > - VLAN tag insertion/stripping > > > - Jumbo frame > > > - WOL > > > It seems that hardware supports Tx checksum offload but I couldn't > > > make it work for TCP segments. Only short TCP segments seem to work > > > so I disabled Tx checksum offload. > > > Note, the hardware does not support descriptor based DMA on Rx side > > > so driver have to copy recevied frames to pass them to upper stack > > > so it will consume a lot of CPU cycles if you push the hardware to > > > the limit. > > > > > > > As bruffer pointed out the device name chosen conflicts with other > > driver in tree so I renamed it to ale(4).The URL for the driver is > > http://people.freebsd.org/~yongari/ale/if_ale.c > > http://people.freebsd.org/~yongari/ale/if_alereg.h > > http://people.freebsd.org/~yongari/ale/if_alevar.h > > http://people.freebsd.org/~yongari/ale/Makefile > > or > > http://people.freebsd.org/~yongari/ale/ale.20081030.tar.gz > > Sorry for confusion. > > > > FYI: > There was a typo that keep ale(4) from building on stable/7. It was > fixed now and I reuploaded related files(URLs are the same as before). Finally I've managed to make Tx checksum offload work and added one more workaround for silicon bug. As usual updated ale(4) can be found at the following URL. http://people.freebsd.org/~yongari/ale/if_ale.c http://people.freebsd.org/~yongari/ale/if_alereg.h http://people.freebsd.org/~yongari/ale/if_alevar.h http://people.freebsd.org/~yongari/ale/Makefile or http://people.freebsd.org/~yongari/ale/ale.20081107.tar.gz The workaround takes more CPU cycles than previous one but you can still saturate the link if you have fast CPU. I'll commit this version within a week unless severe issues are reported. Thanks. -- Regards, Pyun YongHyeon