From owner-freebsd-arch@FreeBSD.ORG Mon May 22 18:37:34 2006 Return-Path: X-Original-To: Arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C40B916A893; Mon, 22 May 2006 18:37:34 +0000 (UTC) (envelope-from Danovitsch@vitsch.net) Received: from amsfep13-int.chello.nl (amsfep17-int.chello.nl [213.46.243.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54EF643D46; Mon, 22 May 2006 18:37:22 +0000 (GMT) (envelope-from Danovitsch@vitsch.net) Received: from Tuinhuisje.Vitsch.net ([62.195.87.223]) by amsfep13-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20060522183720.KYJW21819.amsfep13-int.chello.nl@Tuinhuisje.Vitsch.net>; Mon, 22 May 2006 20:37:20 +0200 Received: from [192.168.87.6] (f23025.upc-f.chello.nl [80.56.23.25]) (authenticated bits=0) by Tuinhuisje.Vitsch.net (8.13.1/8.13.1) with ESMTP id k4MIb9ki033372; Mon, 22 May 2006 20:37:10 +0200 (CEST) (envelope-from Danovitsch@vitsch.net) From: "Daan Vreeken [PA4DAN]" Organization: Vitsch Electronics To: "Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=" Date: Mon, 22 May 2006 20:37:13 +0200 User-Agent: KMail/1.8.2 References: <20060522144542.T21787@fledge.watson.org> <20060522145953.I21787@fledge.watson.org> <86y7wum9ow.fsf@xps.des.no> In-Reply-To: <86y7wum9ow.fsf@xps.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200605222037.14030.Danovitsch@vitsch.net> Cc: Arch@freebsd.org, Sergey Matveychuk , Robert Watson , Freebsd-USB@freebsd.org, Hans Petter Selasky Subject: Re: Resend with subject: No more non-MPSAFE network device drivers, please! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 May 2006 18:37:37 -0000 On Monday 22 May 2006 16:10, Dag-Erling Sm=F8rgrav wrote: > Robert Watson writes: > > Per discussion at the developer summit, a significant rewrite of the > > USB code is needed to make it MPSAFE. Volunteers welcome. > > HP Selasky claims to have a working Giant-free USB stack: (added him to the 'cc' list) > http://www.turbocat.net/~hselasky/usb4bsd/index.html > > No idea how well it works, though. I have been running his USB driver on a production server for months here=20 without a single problem. I use his ugen implementation to communicate with= a=20 custom made USB device. On FreeBSD's USB driver a stress test would fail=20 after max 40,000 requests. With his USB driver I have successfully made ove= r=20 30,000,000 requests before stopping the test manually. There is a problem with his code though. (At least, there was back when I l= ast=20 looked at it, correct me if I'm wrong.) He has completely rewritten the OHC= I,=20 UHCI and EHCI parts, but kept the original (network, storage, etc) drivers.= =20 =46or the original drivers to work he has added some wrapper functions. Bac= k=20 when I looked these wrappers didn't work out of the box for the devices I=20 have tried. All "old" drivers need to be converter to "new world order" for them to wor= k=20 properly. That's the only problem I have been having with his driver : You get a bett= er=20 USB stack, but with less working drivers. I think it would be great to get his code into -current, but some developer= s=20 would have to help out to convert the existing drivers. =2D- Daan