From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 20:35:13 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C621C16A420 for ; Thu, 16 Feb 2006 20:35:13 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17DBB43D46 for ; Thu, 16 Feb 2006 20:35:12 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id k1GKZB7q020591; Thu, 16 Feb 2006 21:35:11 +0100 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id k1GKZBWX020589; Thu, 16 Feb 2006 21:35:11 +0100 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.3/8.13.1) with ESMTP id k1GKYHWK006033; Thu, 16 Feb 2006 21:34:17 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.3/8.13.1/Submit) id k1GKYF1M006032; Thu, 16 Feb 2006 21:34:15 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Thu, 16 Feb 2006 21:34:15 +0100 To: Ian Dowse Message-ID: <20060216203415.GA5867@saturn.kn-bremen.de> References: <20060201063254.GD678@turion.vk2pj.dyndns.org> <200602020239.aa88964@nowhere.iedowse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602020239.aa88964@nowhere.iedowse.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-usb@freebsd.org Subject: Re: cvs commit: src/sys/dev/usb ehci.c ehci_pci.c ehcivar.h X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 20:35:13 -0000 On Thu, Feb 02, 2006 at 02:39:01AM +0000, Ian Dowse wrote: > In message <20060201063254.GD678@turion.vk2pj.dyndns.org>, Peter Jeremy writes: > >On Tue, 2006-Jan-31 22:00:21 +0000, Ian Dowse wrote: > >>In the case of USB, there is actually no need for it to perform > >>large contiguous allocations because the host controllers all support > >>some limited scatter-gather functionality so they can mostly access > >>the caller's memory buffer directly via bus_dmamap_load(). This is > >>something I implemented a year or to ago but I haven't got around > >>to finishing the last few details of the patch yet. > > > >I'd looked into the specs far enough to determine that this was > >possible but haven't looked at how difficult it would be to implement > >it. I think this is a preferable solution and would be interested in > >helping you finish your patch. > > I've updated > > http://people.freebsd.org/~iedowse/usb.diff > > with the latest patch I have. I think there are still one or two > places where DMAADDR() calls have been replaced without all the > necessary logic to handle programming segment information into the > host controller descriptors (e.g. the "XXX, fixme" comment in > ohci.c). > > I only updated the OHCI interrupt transfer code and the sl811hs > driver recently so there may be problems there, but most of the > older changes have had a reasonable amount of testing as I've been > using them on a low-memory soekris box for a couple of years. Do you have a RELENG_5 version of that patch too? (And i guess others would be interested in a RELENG_6 one as well? :)