From owner-freebsd-net@FreeBSD.ORG Wed Jan 25 01:56:33 2006 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1027B16A423 for ; Wed, 25 Jan 2006 01:56:33 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7573743D53 for ; Wed, 25 Jan 2006 01:56:31 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1351767nzo for ; Tue, 24 Jan 2006 17:56:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=AcoHizTgZ8vP1vMGPvpXlcHqizYpeFxjfVkQYdKv/ykgSq6DfNu7ZS0UCXaout25YSM4xqV8VL55WbxzpD2LPdbyVHsNYahWSM8u0A9WR/lhhSpZyy0BTjeRYGl7EBNRo3KC5o1w8/ymPVvqGf5AOOMwduw9gROqIrZKgzKXPok= Received: by 10.37.20.29 with SMTP id x29mr153598nzi; Tue, 24 Jan 2006 17:56:30 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 15sm70127nzp.2006.01.24.17.56.29; Tue, 24 Jan 2006 17:56:30 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.5/8.13.5) with ESMTP id k0P1tB7R011703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 Jan 2006 10:55:12 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.5/8.13.5/Submit) id k0P1tBHG011702; Wed, 25 Jan 2006 10:55:11 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 25 Jan 2006 10:55:11 +0900 From: Pyun YongHyeon To: Andre Oppermann Message-ID: <20060125015511.GA11296@rndsoft.co.kr> References: <43D5FF19.7090903@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43D5FF19.7090903@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: current@freebsd.org, net@freebsd.org Subject: Re: Marvell/SysKonnect YukonII source code available X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 01:56:33 -0000 On Tue, Jan 24, 2006 at 11:19:05AM +0100, Andre Oppermann wrote: > Marvell/SysKonnect made the source code to the YukonII chips available > today under a BSD license: > > http://people.freebsd.org/~andre/mykbsd60x86-8.12.1.3-src.tgz > > I haven't tested the driver yet and I don't know if it available directly > from the their website already. > > Many thanks to Gerald and Frank at SysKonnect for working with us and > making this possible! > Yes, that's great news. Is there any chance to get a copy of data sheet for Yukon chips? I've tried hard to make Rx TCP/UDP checksum offload work but failed. ATM both Linux and OpenBSD use Rx IP checksum offload only but this driver enabled Rx checksum offload for TCP/UDP. So I guess there is somthing not listed in SK-NET Genesis data sheet. :-( Quick reading the source shows that this driver has the following issues. 1. Incomplete bus_dma(9) support. The driver uses BUS_SPACE_MAXADDR when it creates DMA tags which means its DMA supports any address without limitations. However, I'm sure Rx/Tx descriptors should reside in < 4GB. So the driver wouldn't work on systems with > 4GB memory. 2. Since the driver makes use of mbpool(9) it wouldn't work when bounce buffers are involved. In fact, I think the use of mbpool(9) is really bad as it lacks bus_dmamap_sync(9) operation. 3. Lack of ALTQ support. 4. The driver may not work on big-endian architectures. 5. The driver may not work on architectures with strict-alignment. Btw, new sk(4) is availabe at the following URL. Due to lack of documentation it doesn't support YukonII yet. http://people.freebsd.org/~yongari/sk/if_sk.c http://people.freebsd.org/~yongari/sk/if_skreg.h -- Regards, Pyun YongHyeon