From owner-freebsd-usb@FreeBSD.ORG Mon May 28 06:43:58 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 49DCC16A4FC for ; Mon, 28 May 2007 06:43:58 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 3D48913C44B for ; Mon, 28 May 2007 06:43:57 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [88.88.46.79] (account mc467741@c2i.net HELO [192.168.0.102]) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 403537376; Mon, 28 May 2007 08:43:55 +0200 From: Hans Petter Selasky To: "M. Warner Losh" Date: Mon, 28 May 2007 08:43:45 +0200 User-Agent: KMail/1.9.5 References: <200705272235.46048.hselasky@c2i.net> <20070527.145412.-1597331197.imp@bsdimp.com> In-Reply-To: <20070527.145412.-1597331197.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705280843.45808.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: 31st address line sometimes not used on EHCI/UHCI/OHCI 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: Mon, 28 May 2007 06:43:58 -0000 On Sunday 27 May 2007 22:54, M. Warner Losh wrote: > In message: <200705272235.46048.hselasky@c2i.net> > > Hans Petter Selasky writes: > : I've got some reports back that some USB host controllers do not support > : transferring memory from a location higher than 2GB. > : > : What should we do about this? > : > : Should we limit all USB DMA allocations to the lower 2GB of the memory? > > busdma should be managing this behind the scenes. You shouldn't care, > as the problematical usb controllers, if any, can do the bouncing as > required. We need to get the hierarchical bus tagging stuff more > fully integrated, then we'd get this for free. Yes, I just changed the lowaddr when I allocated the tag, and that did the trick! > > Of course, you'd have to stop using contigmalloc to allocate all the > memory for usb. That won't work on some of the embedded platforms we > have, for example, because memory on them isn't as fungible as it is > on i386 and amd64. My new USB stack has been using "bus_dmamem" for quite a while. --HPS