From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 7 05:37:41 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27BB0106566B for ; Tue, 7 Dec 2010 05:37:41 +0000 (UTC) (envelope-from freebsd@penx.com) Received: from Elmer.dco.penx.com (elmer.dco.penx.com [174.46.214.114]) by mx1.freebsd.org (Postfix) with ESMTP id 00CF48FC13 for ; Tue, 7 Dec 2010 05:37:40 +0000 (UTC) Received: from localhost (localhost [IPv6:::1]) by Elmer.dco.penx.com (8.14.4/8.14.4) with ESMTP id oB75AmXQ021899 for ; Mon, 6 Dec 2010 22:10:48 -0700 (MST) (envelope-from freebsd@penx.com) Date: Mon, 6 Dec 2010 22:10:48 -0700 (MST) From: Dennis Glatting X-X-Sender: dennisg@Elmer.dco.penx.com To: freebsd-drivers@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: Any work to update the RealTek Drivers? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 05:37:41 -0000 Is there any work going on with the RealTek drivers? The RealTek devices I am using support a 9k MTU but the code limits the MTU to the default. Over gigabit, a larger MTU is desirable. Specifically, on one of several machines I am using: re0: port 0xde00-0xdeff mem 0xfbcff000-0xfbcfffff,0xfbcf8000-0xfbcfbfff irq 16 at device 0.0 on pci7 re1: port 0xce00-0xceff mem 0xfbaff000-0xfbafffff,0xfbaf8000-0xfbafbfff irq 17 at device 0.0 on pci8 Trying to set the MTU: btw# ifconfig re1 mtu 4096 ifconfig: ioctl (set mtu): Invalid argument Looking at the source sys/dev/re/if_re.c /*- * Copyright (c) 1997, 1998-2003 * Bill Paul . All rights reserved. (snip) case RL_HWREV_8168CP: case RL_HWREV_8168D: case RL_HWREV_8168DP: sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD; /* * These controllers support jumbo frame but it seems * that enabling it requires touching additional magic * registers. Depending on MAC revisions some * controllers need to disable checksum offload. So * disable jumbo frame until I have better idea what * it really requires to make it support. * RTL8168C/CP : supports up to 6KB jumbo frame. * RTL8111C/CP : supports up to 9KB jumbo frame. */ sc->rl_flags |= RL_FLAG_NOJUMBO; break; From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 7 11:30:36 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFEE11065675; Tue, 7 Dec 2010 11:30:36 +0000 (UTC) (envelope-from gergely.czuczy@harmless.hu) Received: from marvin.harmless.hu (marvin.harmless.hu [195.56.55.204]) by mx1.freebsd.org (Postfix) with ESMTP id 735CD8FC08; Tue, 7 Dec 2010 11:30:36 +0000 (UTC) Received: from gw.mediatech.hu ([217.150.130.177] helo=unknown) by marvin.harmless.hu with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1PPvkg-0007ZS-Kt; Tue, 07 Dec 2010 12:30:34 +0100 Date: Tue, 7 Dec 2010 12:30:13 +0100 From: Gergely CZUCZY To: John Baldwin , Scott Long , freebsd-drivers@freebsd.org Message-ID: <20101207123013.00006944@unknown> Organization: Harmless Digital Bt X-Mailer: Claws Mail 3.7.4cvs1 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: mps(4) from HEAD for LSI 9211 on 8.x X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 11:30:36 -0000 Hello, A few weeks ago you told me to use mps(4) from HEAD for my LS9211 SAS2 controller. At that time i've just checked it out, moved it to the 8.x tree and it work. Right now the systems is going to be deployed, and I've seen that the driver has undergone quite a lot of changes, touching other subsystems as well. May I ask if you could provide a backport for 8.1 for this driver please? I can test it on this box at first, it's still in its testing state. Best regards, Gergely -- Sincerely, Gergely CZUCZY Harmless Digital Bt +36-30-9702963 From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 7 13:43:59 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB616106566B; Tue, 7 Dec 2010 13:43:59 +0000 (UTC) (envelope-from attila.bogar@linguamatics.com) Received: from mail.linguamatics.com (linguamatics.com [193.34.186.86]) by mx1.freebsd.org (Postfix) with ESMTP id 70A748FC12; Tue, 7 Dec 2010 13:43:59 +0000 (UTC) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.linguamatics.com (Postfix) with ESMTP id D3C821F805; Tue, 7 Dec 2010 13:11:49 +0000 (GMT) X-Virus-Scanned: by Endian Firewall X-Spam-CTCH-RefID: Received: from dhcp092.linguamatics.com (dhcp092.linguamatics.com [10.252.10.92]) by mail.linguamatics.com (Postfix) with ESMTP id DE0131F804; Tue, 7 Dec 2010 13:11:32 +0000 (GMT) Message-ID: <4CFE3284.8050500@linguamatics.com> Date: Tue, 07 Dec 2010 13:11:32 +0000 From: =?ISO-8859-1?Q?Attila_Bog=E1r?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Gergely CZUCZY References: <20101207123013.00006944@unknown> In-Reply-To: <20101207123013.00006944@unknown> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Scott Long , freebsd-drivers@freebsd.org Subject: Re: mps(4) from HEAD for LSI 9211 on 8.x X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 13:43:59 -0000 Hi All, I'm wondering if anyone has tested the Dell PERC H200 card (LSI SAS2008) with the mps driver? I've checked the mps/HEAD source code on the viewvc and the chip identifiers are there for the SAS2008. On 07/12/2010 11:30, Gergely CZUCZY wrote: > May I ask if you could provide a backport for 8.1 for this driver > please? I can test it on this box at first, it's still in its testing > state. I would like ask for an mps backport to 8.1 also. Thanks, Attila -- Linguamatics Ltd St John's Innovation Centre Cowley Rd Cambridge CB4 0WS United Kingdom From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 7 19:54:46 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47C431065673 for ; Tue, 7 Dec 2010 19:54:46 +0000 (UTC) (envelope-from hwunsch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id CB2D08FC20 for ; Tue, 7 Dec 2010 19:54:45 +0000 (UTC) Received: by wyf19 with SMTP id 19so308405wyf.13 for ; Tue, 07 Dec 2010 11:54:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=KHyIrPNSabgnwj7FBB/L3C3pWUxPP6ZBNS/dFYyzIYs=; b=uyg8Lvg5YAWR+HS/YFffuM5Ux8IztP7zcW5mWAqDy2Uy5U326uLgZ46NqbxS0Gz81B w8PxclWG61m5QTDvT9Nd2sjJPEeBTLzmtQinreijEhHvjvOupzlNe2DxOjkTvqQK172v GtjFOA2GaMMtYLzstgzq0rFVqaHvF0MnAWDpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=GPPhQjigtDOGdsvtQRQE2kqSQcRlv3C+9xG8O1imWR5WqZNKhWZLQqRXeVNU7uEn/c ETdv2Doa2EetKSp/OXd/wA+yQRvppjjbibS+s5VaMpFj1+nT0LjScVnBDVg+2wTw6+BB PsX6vm0pfFZj0FAbRswvU3a7Sxeq28YUB5r8I= MIME-Version: 1.0 Received: by 10.216.23.18 with SMTP id u18mr779905weu.92.1291751684644; Tue, 07 Dec 2010 11:54:44 -0800 (PST) Received: by 10.216.86.206 with HTTP; Tue, 7 Dec 2010 11:54:44 -0800 (PST) In-Reply-To: <4CFE3284.8050500@linguamatics.com> References: <20101207123013.00006944@unknown> <4CFE3284.8050500@linguamatics.com> Date: Tue, 7 Dec 2010 11:54:44 -0800 Message-ID: From: Hans Wunsch To: =?ISO-8859-1?Q?Attila_Bog=E1r?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Gergely CZUCZY , freebsd-drivers@freebsd.org Subject: Re: mps(4) from HEAD for LSI 9211 on 8.x X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hwunsch@gmail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 19:54:46 -0000 I had an MD3200 and an H200 setup a couple of weeks ago. It worked with some constraints like it only saw one LUN. Ultimately, we went a different direction (for now). hwunsch@gmail.com On Tue, Dec 7, 2010 at 5:11 AM, Attila Bog=E1r wrote: > Hi All, > > I'm wondering if anyone has tested the Dell PERC H200 card (LSI SAS2008) > with the mps driver? > I've checked the mps/HEAD source code on the viewvc and the chip > identifiers are there for the SAS2008. > > > On 07/12/2010 11:30, Gergely CZUCZY wrote: > >> May I ask if you could provide a backport for 8.1 for this driver >> please? I can test it on this box at first, it's still in its testing >> state. >> > I would like ask for an mps backport to 8.1 also. > > Thanks, > Attila > > -- > > Linguamatics Ltd > St John's Innovation Centre > Cowley Rd > Cambridge > CB4 0WS > United Kingdom > > > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org= " > From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 7 20:42:25 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A97AC1065673 for ; Tue, 7 Dec 2010 20:42:25 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by mx1.freebsd.org (Postfix) with ESMTP id 570F08FC12 for ; Tue, 7 Dec 2010 20:42:25 +0000 (UTC) Received: by gxk28 with SMTP id 28so333281gxk.17 for ; Tue, 07 Dec 2010 12:42:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=HqdOJyS13urDV/0ySqrDEg49JnlC7BwVewU9Op8kico=; b=gwKnwkvNEVunn+7sm8QK0xACSprNI34zFqeY1WVn2kTNc6cgMYzFFpV2jkN9e1tiIv gUAjmv3l6eCBtZCOAd+SX0L3c2PX3o9nBej1NRx+S7wd6q8FKl0dbskKE/QADfky/OQ5 A3WYbZHDCBCAMT+7uUnkV/fOzdYV5zGsNo9Dg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=WavLnmmNd403htwr86PrtKmPplvnMkXLMfb110Hwtx+3Mf/jMr5PSBRgkhMe2J2TbD N+I3crFZCuVE/1TqPYAkmqCZiiFopL9fv1TgpJIx8L1KvsGdZ9LK4WEnmYf1yDUKSWtM niVerSrH3LpT3XhOqP1/3tLfLt0XFKfqzkLfw= Received: by 10.151.143.20 with SMTP id v20mr2552140ybn.114.1291752911202; Tue, 07 Dec 2010 12:15:11 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id y73sm4067004yhc.36.2010.12.07.12.15.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 07 Dec 2010 12:15:09 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 7 Dec 2010 12:15:12 -0800 From: Pyun YongHyeon Date: Tue, 7 Dec 2010 12:15:12 -0800 To: Dennis Glatting Message-ID: <20101207201512.GB6471@michelle.cdnetworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-drivers@freebsd.org Subject: Re: Any work to update the RealTek Drivers? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2010 20:42:25 -0000 On Mon, Dec 06, 2010 at 10:10:48PM -0700, Dennis Glatting wrote: > Is there any work going on with the RealTek drivers? The RealTek devices I > am using support a 9k MTU but the code limits the MTU to the default. Over > gigabit, a larger MTU is desirable. > > Specifically, on one of several machines I am using: > > re0: port > 0xde00-0xdeff mem 0xfbcff000-0xfbcfffff,0xfbcf8000-0xfbcfbfff irq 16 at > device 0.0 on pci7 > re1: port > 0xce00-0xceff mem 0xfbaff000-0xfbafffff,0xfbaf8000-0xfbafbfff irq 17 at > device 0.0 on pci8 > > > Trying to set the MTU: > > btw# ifconfig re1 mtu 4096 > ifconfig: ioctl (set mtu): Invalid argument > Personally I did want to make TSO work on these newer RealTek controllers. TSO may also give similar performance boost of jumbo frame if the network connection use TCP. In addition, it seems these recent re(4) controllers seem to require contiguous jumbo RX buffer instead of supporting chaining multiple RX buffers into single buffer which in turn put much more burden to VM. Supporting this type of jumbo frame support is not hard but it seems this requires undocumented register access with guessing and real hardware for experiments. RealTek does not release data sheet to open source driver writers any more so it would be hard to make it work in near future. RealTek's policy for open source developers had been quite disappointing compared to other leading major network controller vendors. > > Looking at the source sys/dev/re/if_re.c > > /*- > * Copyright (c) 1997, 1998-2003 > * Bill Paul . All rights reserved. > > (snip) > > case RL_HWREV_8168CP: > case RL_HWREV_8168D: > case RL_HWREV_8168DP: > sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR | > RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | > RL_FLAG_AUTOPAD; > /* > * These controllers support jumbo frame but it seems > * that enabling it requires touching additional magic > * registers. Depending on MAC revisions some > * controllers need to disable checksum offload. So > * disable jumbo frame until I have better idea what > * it really requires to make it support. > * RTL8168C/CP : supports up to 6KB jumbo frame. > * RTL8111C/CP : supports up to 9KB jumbo frame. > */ > sc->rl_flags |= RL_FLAG_NOJUMBO; > break; From owner-freebsd-drivers@FreeBSD.ORG Wed Dec 8 23:54:04 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 447CC106566B for ; Wed, 8 Dec 2010 23:54:04 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id A639A8FC08 for ; Wed, 8 Dec 2010 23:54:03 +0000 (UTC) Received: from vhoffman-macbooklocal.local ([10.10.10.191]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id oB8Ns1up037469 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 8 Dec 2010 23:54:01 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4D001A98.7070900@unsane.co.uk> Date: Wed, 08 Dec 2010 23:54:00 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Attila_Bog=E1r?= References: <20101207123013.00006944@unknown> <4CFE3284.8050500@linguamatics.com> In-Reply-To: <4CFE3284.8050500@linguamatics.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: Scott Long , Gergely CZUCZY , freebsd-drivers@freebsd.org Subject: Re: mps(4) from HEAD for LSI 9211 on 8.x X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2010 23:54:04 -0000 On 07/12/2010 13:11, Attila Bogár wrote: > Hi All, > > I'm wondering if anyone has tested the Dell PERC H200 card (LSI > SAS2008) with the mps driver? > I've checked the mps/HEAD source code on the viewvc and the chip > identifiers are there for the SAS2008. > I tried a 9-current snapshot (FreeBSD-9.0-HEAD-20101204-JPSNAP-amd64) from http://pub.allbsd.org/FreeBSD-snapshots/ on a dell poweredge r210, with a Symbios Logic SAS2008. sysinstall didnt find a disk. gpart from the livefs on the dvd didnt see anything either. I'll have another try when i get a chance as we have a few r210s sitting in the datacenter unused at the moment. output from lspci -v on a linux box. 01:00.0 Serial Attached SCSI controller: LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] (rev 02) Subsystem: Dell PERC H200 Adapter Flags: bus master, fast devsel, latency 0, IRQ 169 I/O ports at fc00 [size=256] Memory at df2b0000 (64-bit, non-prefetchable) [size=64K] Memory at df2c0000 (64-bit, non-prefetchable) [size=256K] Expansion ROM at df100000 [disabled] [size=1M] Capabilities: [50] Power Management version 3 Capabilities: [68] Express Endpoint IRQ 0 Capabilities: [d0] Vital Product Data Capabilities: [a8] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable- Capabilities: [c0] MSI-X: Enable+ Mask- TabSize=15 Capabilities: [100] Advanced Error Reporting Capabilities: [138] Power Budgeting Vince > On 07/12/2010 11:30, Gergely CZUCZY wrote: >> May I ask if you could provide a backport for 8.1 for this driver >> please? I can test it on this box at first, it's still in its testing >> state. > I would like ask for an mps backport to 8.1 also. > > Thanks, > Attila >