From owner-cvs-src@FreeBSD.ORG Sun May 28 15:21:58 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60B5916C121; Sun, 28 May 2006 15:21:58 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80A3043D53; Sun, 28 May 2006 15:21:54 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.14] (imini.samsco.home [192.168.254.14]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k4SFLl61058934; Sun, 28 May 2006 09:21:53 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4479C00B.8090504@samsco.org> Date: Sun, 28 May 2006 09:21:47 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ian Dowse References: <200605280527.k4S5R9Qi076598@repoman.freebsd.org> In-Reply-To: <200605280527.k4S5R9Qi076598@repoman.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/usb ehci.c ehci_pci.c ohci.c ohci_pci.c ohcireg.h ohcivar.h sl811hs.c sl811hsvar.h uhci.c uhci_pci.c uhcivar.h usb_mem.c usbdi.c usbdivar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2006 15:21:58 -0000 Ian Dowse wrote: > iedowse 2006-05-28 05:27:09 UTC > > FreeBSD src repository > > Modified files: > sys/dev/usb ehci.c ehci_pci.c ohci.c ohci_pci.c > ohcireg.h ohcivar.h sl811hs.c > sl811hsvar.h uhci.c uhci_pci.c uhcivar.h > usb_mem.c usbdi.c usbdivar.h > Log: > Use the limited scatter-gather capabilities of ehci, ohci and uhci > host controllers to avoid the need to allocate any multi-page > physically contiguous memory blocks. This makes it possible to use > USB devices reliably on low-memory systems or when memory is too > fragmented for contiguous allocations to succeed. > > The USB subsystem now uses bus_dmamap_load() directly on the buffers > supplied by USB peripheral drivers, so this also avoids having to > copy data back and forth before and after transfers. The ehci and > ohci controllers support scatter/gather as long as the buffer is > contiguous in the virtual address space. For uhci the hardware > cannot handle a physical address discontinuity within a USB packet, > so it is necessary to copy small memory fragments at times. > Excellent work, good job! Scott