From owner-freebsd-usb@FreeBSD.ORG Thu Feb 2 02:39:05 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 4C34716A420 for ; Thu, 2 Feb 2006 02:39:05 +0000 (GMT) (envelope-from iedowse@iedowse.com) Received: from nowhere.iedowse.com (nowhere.iedowse.com [82.195.144.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 60DA143D46 for ; Thu, 2 Feb 2006 02:39:04 +0000 (GMT) (envelope-from iedowse@iedowse.com) Received: from localhost ([127.0.0.1] helo=iedowse.com) by nowhere.iedowse.com via local-iedowse id ; 2 Feb 2006 02:39:02 +0000 (GMT) To: Peter Jeremy In-Reply-To: Your message of "Wed, 01 Feb 2006 17:32:54 +1100." <20060201063254.GD678@turion.vk2pj.dyndns.org> Date: Thu, 02 Feb 2006 02:39:01 +0000 From: Ian Dowse Message-ID: <200602020239.aa88964@nowhere.iedowse.com> Cc: Juergen Lock , 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, 02 Feb 2006 02:39:05 -0000 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. Ian