From owner-freebsd-current@FreeBSD.ORG Wed Nov 29 01:28:26 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4406916A40F for ; Wed, 29 Nov 2006 01:28:26 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id B191C43CB3 for ; Wed, 29 Nov 2006 01:28:13 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1370165pyh for ; Tue, 28 Nov 2006 17:28:18 -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=b2BMET/R0a2A0ikl+zj+W0P6NPdygx2aNdbD0k50f7UErorra88mJJKu1MK5KfjmSaacAM0nqGuqwCA1+tLzruFy3mvBEvQpVXI3N7OD4Olkgd4rKNLvf7qtcIJtorNiDUZYKS8Uo3U1kpgFgmBqmY0YDeBK8BC07YFg0QwwBEY= Received: by 10.35.18.18 with SMTP id v18mr2889006pyi.1164763698500; Tue, 28 Nov 2006 17:28:18 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id a79sm16919377pye.2006.11.28.17.28.15; Tue, 28 Nov 2006 17:28:17 -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 kAT1UrF0072130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Nov 2006 10:30:53 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id kAT1Uq81072129; Wed, 29 Nov 2006 10:30:52 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 29 Nov 2006 10:30:52 +0900 From: Pyun YongHyeon To: othermark Message-ID: <20061129013052.GC71523@cdnetworks.co.kr> References: <20060926002916.GA5975@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: Call for Marvell/SysKonnect Yukon II Gigabit Ethernet testers. 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: Wed, 29 Nov 2006 01:28:26 -0000 On Tue, Nov 28, 2006 at 04:37:11PM -0800, othermark wrote: > Pyun YongHyeon wrote: > >Hi, > > > >I've written a driver for Marvell/SysKonnect Yukon II Gigabit > >Ethernet controller. It supports the following GigE adapters. > >o SysKonnect SK-9Sxx Yukon Gigabit Ethernet > >o SysKonnect SK-9Exx Yukon Gigabit Ethernet > >o Marvell Yukon 88E8021CU Gigabit Ethernet > >o Marvell Yukon 88E8021 SX/LX Gigabit Ethernet > >o Marvell Yukon 88E8022CU Gigabit Ethernet > >o Marvell Yukon 88E8022 SX/LX Gigabit Ethernet > >o Marvell Yukon 88E8061CU Gigabit Ethernet > >o Marvell Yukon 88E8061 SX/LX Gigabit Ethernet > >o Marvell Yukon 88E8062CU Gigabit Ethernet > >o Marvell Yukon 88E8062 SX/LX Gigabit Ethernet > >o Marvell Yukon 88E8035 Gigabit Ethernet > >o Marvell Yukon 88E8036 Gigabit Ethernet > >o Marvell Yukon 88E8038 Gigabit Ethernet > >o Marvell Yukon 88E8050 Gigabit Ethernet > >o Marvell Yukon 88E8052 Gigabit Ethernet > >o Marvell Yukon 88E8053 Gigabit Ethernet > >o Marvell Yukon 88E8055 Gigabit Ethernet > >o D-Link 560T Yukon Gigabit Ethernet > > > >Due to lack of documentation, this driver is based on the code from > >sk(4) and Marvell's myk(4) driver for FreeBSD 5.x/6.x. I've also > >adopted the OpenBSD interface name, msk(4) in order to reduce naming > >differences between BSDs. > >After many trial and errors I now managed to work it on i386 box. At > >the moment IP/TCP/UDP checksum offload for transmit and IP checksum > >offload for receive is supported. Hardware VLAN tag insertion/stripping > >is also supported. JUMBO frame support code is present but was not > >tested at all and it may have bugs. > > > >The driver was tested on on-board 88E8053 PCI Express NIC and I'd > >like to hear success/failure reports on other architectures such as > >amd64. I don't have adapters that have TBI transceivers or dual MAC > >configuration so I'd also like to know whether it works on those > >adapters too. > > > >** Be ware, this driver is not for production use. It may even damage > >your hardware. ** > > > >You can get the latest msk(4) driver from the following URL. > >http://people.freebsd.org/~yongari/msk/msk.HEAD.diff > > > >You should add "device msk" in your kernel configuration file > >and rebuild/reboot or build kernel module if_msk.ko. > >You need latest CURRENT to apply this diff. > > > >TODO: > >Automatic crossover support(e1000phy(4)). > >Yukon FE(Fast Ethernet) support(e1000phy(4)). > >Performance tuning. > >Rx TCP/UDP checksum offload. > >TSO support. > >64bit DMA(DAC) support. > > > >Thanks. > > I just tried your latest -HEAD patch for msk > > uname: > FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Nov 28 14:22:29 PST 2006 > root:/usr/obj/usr/src/sys/HELLFIRE i386 > > pciconf: > mskc0@pci2:0:0: class=0x020000 card=0x81421043 chip=0x436211ab rev=0x15 > hdr=0x00 > vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)' > device = '88E8053 Yukon PCI-E Gigabit Ethernet Controller (copper)' > class = network > subclass = ethernet > > dmesg: > mskc0: port 0xd800-0xd8ff mem > 0xdeffc000-0xdeffffff irq 17 at device 0.0 on pci2 > START: try 11 > msk0: on mskc0 > msk0: Ethernet address: 00:11:2f:46:63:47 > miibus0: on msk0 > e1000phy0: on miibus0 > e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseTX-FDX, auto > mskc0: [FAST] > > However during ifconfig, it gives an error. > > Nov 28 16:00:16 kernel: msk0: link state changed to UP > Nov 28 16:00:51 kernel: mskc0: Uncorrectable PCI Express error I think you can ingore above error unless it continuously spits the message. > Nov 28 16:00:51 kernel: msk0: link state changed to DOWN > Nov 28 16:00:54 kernel: msk0: link state changed to UP > > I'm not whether it's working or not yet. I wasn't clear if your > e1000phy patch would tromp on the msk patch so I didn't try it. > Since I've tested msk(4) on 88E8053 it should work without any problems. If it didn't work as expected please let me know. BTW, I guess the patch which is now old does not contain required e1000phy(4) changes. Regenerated patch again. http://people.freebsd.org/~yongari/msk/msk.HEAD.diff -- Regards, Pyun YongHyeon