From owner-freebsd-questions@FreeBSD.ORG Fri Oct 31 01:01:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E594F1065679; Fri, 31 Oct 2008 01:01:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id A55EE8FC16; Fri, 31 Oct 2008 01:01:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so873768rvf.43 for ; Thu, 30 Oct 2008 18:01:28 -0700 (PDT) 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:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=WTRPuhN/cI4V59dUNa1VPIXT/rlLwo9VCrLgpdWAZg8=; b=g9VV68+2if0XbqXc7jkkkzTbslPc8rw7uHCQ4nhTPr9a33xslmbGqJSUd3OrLZS1eK GTu9TXvwaylOdHQ6fI6dLiOz47zx7FWwr8DxZo1RIJA7x5UZszybwc+AUx4NZGVlpZl6 KRO2YNmBgK5XTVEvau5QTjnc7UMsin5/Gfi4Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=FnOc8noa/78V2C9jJ02ksayzXM7Mor7nxPZYGd8e4pdLiPaFkKOrtQeefiCFV4rloo Gfh4PSX7otJgL2/MUMeKnuA/saZzjsZ2Bjkm1rrjoGPMsgQ6wtXosMBaOdw9bcwCBXRy YdS0stKTraS7CpoymAg/cwaVdApbnOTG0NTrM= Received: by 10.140.207.2 with SMTP id e2mr6238064rvg.187.1225414888271; Thu, 30 Oct 2008 18:01:28 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id l31sm5991559rvb.2.2008.10.30.18.01.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Oct 2008 18:01:26 -0700 (PDT) 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 m9V0xO0q083020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 31 Oct 2008 09:59: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 m9V0xN24083019; Fri, 31 Oct 2008 09:59:23 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 31 Oct 2008 09:59:22 +0900 From: PYUN Yong-Hyeon To: Jeremy Chadwick Message-ID: <20081031005921.GA82781@cdnetworks.co.kr> References: <20081030123815.GA4568@icarus.home.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081030123815.GA4568@icarus.home.lan> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@FreeBSD.org, Graham Bentley Subject: Re: Marvell 88E8052 PCI-E LAN on FreeBSD 7.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 01:01:29 -0000 On Thu, Oct 30, 2008 at 05:38:15AM -0700, Jeremy Chadwick wrote: > On Thu, Oct 30, 2008 at 11:33:34AM -0000, Graham Bentley wrote: > > Hi ALl, > > > > I have a DFI LanParty Mobo that includes Marvells 88E8052 > > and 88E8053 LAN IF. > > > > Using the module with 7.0 [msk] the network preformance > > is terrible, Opera / Links stall, or wont page load at > > all although pings to the router are fine? > > > > I then tried using Marvells own driver the website [myk] > > and the results where about the same. > > > > Just before I was about to give up and put in my trusty > > old 3Com 3C509 [xl] I noticed that in the Marvell doco > > there where several tunable params so decided to try > > out a few. > > > > I discovered that adding -txcsum and -rxcsum (i.e. > > disabling hardware checksuming) to the ifconfig > > statement, the performance was as quick as it is > > on that other OS! I'm not sure you suffers from the same problem but there was a Tx checksum offload related bug in msk(4) driver and it was fixed in HEAD. How about applying the diff in CVS rev 1.33 of if_msk? http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/msk/if_msk.c.diff?r1=1.32;r2=1.33;f=h > > Yong-Hyeon Pyun can probably explain what's going on here. I've CC'd > him on this mail; he usually hangs out on -stable though. > > You need to keep something in mind here: Marvell does not give out > documentation for their cards publicly, so Yong-Hyeon has to > reverse-engineer and "tinker" with what he already knows. Some hardware > feature do not work, others are buggy, others work fine on specific > revisions of the chip while later ones break. > > And if you tell me "Well Linux has support for this chip!", I will throw > the following evidence back in your face: Marvell and other companies > are giving Linux developers development PCI cards to develop drivers > with (sometimes even before the card is out in the market), so Linux has > the upper hand here. They are not doing this with the BSDs. > > Purely as an example: in my Wiki, section "Network devices", see the > entry for the 88E8040 NIC. I'm still working with Yong-Hyeon to try to > get him access to a laptop that has this chip so he can write the > driver. > > http://wiki.freebsd.org/JeremyChadwick/Commonly_reported_issues > > This should give you some idea of the complexities. As I said, Linux > has the upper hand, because they're getting support from Marvell. > > > It seems that hw cs is on by default so I added the > > above to my ifoncfig line in /etc/rc.conf and now > > all is snappy! > > > > I was wondering how could this be the case and also > > if anyone else had this issue with Marvell chips? > > I would urge you to go out and purchase an Intel Pro/1000 PT card, which > runs for around 30-40 USD. It's good to have a spare NIC on hand > anyways -- your 3C509 xl(4) based NIC probably won't cut it, especially > if you're complaining about performance. :-) No one uses those cards > any more except individuals running on hardware from 1997, which you are > obviously not. > -- Regards, Pyun YongHyeon