From owner-freebsd-current@FreeBSD.ORG Sat Nov 8 05:25:32 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 6CC25106564A for ; Sat, 8 Nov 2008 05:25:32 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 175328FC16 for ; Sat, 8 Nov 2008 05:25:31 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so633411yxb.13 for ; Fri, 07 Nov 2008 21:25:31 -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=9SAuRZToA7gpMglHJvuXO4tHEdNGzFApCLsL+u8BVgg=; b=JnmiaWded66TEEzc4u8SW4ar+dtSadfEVlzCN/X5NVzEkUYvu9PLsEOFGiP/lmjLpf kLkdRV7/uFDT5P0Sqv3F7Gme6q4nbcYLcE+aHRnNUs5GBiOc6woQ1GZSxNfHTGT99mGs jV0PKJ9UMEvGSCfsA7SBaXNCuX/9c1LOtLyFo= 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=oJR/s6kaBTgqMhugRKF+hVs4w4Yge6a2yWcih+bl8UCBsIstG+83HIp8VJDTDBgSX4 mEa4if7uvwmHDz51+BAg38c2LxV8ZySZayFpxoDEK2/bzSrOKnAPqikgbc4tNsGa9KUL 9JLtZw9qwRLZat1G54T6+whrGxO7T39bxcMz4= Received: by 10.90.99.3 with SMTP id w3mr3924029agb.27.1226121927172; Fri, 07 Nov 2008 21:25:27 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id 8sm4972124hsp.2.2008.11.07.21.25.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 Nov 2008 21:25:26 -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 mA85NPWs015762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 8 Nov 2008 14:23:25 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mA85NPT5015761 for freebsd-current@FreeBSD.org; Sat, 8 Nov 2008 14:23:25 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sat, 8 Nov 2008 14:23:25 +0900 From: Pyun YongHyeon To: freebsd-current@FreeBSD.org Message-ID: <20081108052324.GD14970@cdnetworks.co.kr> References: <20081030040637.GA78796@cdnetworks.co.kr> <20081030114845.GE78796@cdnetworks.co.kr> <20081031034443.GF82781@cdnetworks.co.kr> <20081107064724.GA11486@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081107064724.GA11486@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: Sat, 08 Nov 2008 05:25:32 -0000 On Fri, Nov 07, 2008 at 03:47:24PM +0900, To freebsd-current@FreeBSD.org wrote: > 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. > One user reported non-working NFS over UDP and I disabled Rx checksum offload as AR81xx hardware is not able to handle fragmented IP datagrams correctly. So it's highly recommended to disable Rx checksum offload or use the following updated files. http://people.freebsd.org/~yongari/ale/ale.20081108.tar.gz -- Regards, Pyun YongHyeon