From owner-freebsd-current@FreeBSD.ORG Wed Nov 29 00:32:13 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 B2C2A16A412 for ; Wed, 29 Nov 2006 00:32:13 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6A1B43CA8 for ; Wed, 29 Nov 2006 00:32:05 +0000 (GMT) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GpDMp-0004Na-7H for freebsd-current@freebsd.org; Wed, 29 Nov 2006 01:32:03 +0100 Received: from ip244.gte215.dsl-acs2.sea.iinet.com ([209.20.215.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Nov 2006 01:32:03 +0100 Received: from atkin901 by ip244.gte215.dsl-acs2.sea.iinet.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Nov 2006 01:32:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: othermark Date: Tue, 28 Nov 2006 16:37:11 -0800 Lines: 95 Message-ID: References: <20060926002916.GA5975@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip244.gte215.dsl-acs2.sea.iinet.com User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <20060926002916.GA5975@cdnetworks.co.kr> Sender: news 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 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 00:32:13 -0000 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 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.