From owner-freebsd-current@FreeBSD.ORG Sat Jun 12 07:15:06 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24D8C16A4CE for ; Sat, 12 Jun 2004 07:15:06 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id C378743D2D for ; Sat, 12 Jun 2004 07:15:05 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (adsl-68-121-209-148.dsl.snfc21.pacbell.net [68.121.209.148])i5C7Emsg142736; Sat, 12 Jun 2004 03:14:49 -0400 Message-ID: <40CAAD67.9050103@elischer.org> Date: Sat, 12 Jun 2004 00:14:47 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030524 X-Accept-Language: en, hu MIME-Version: 1.0 To: Barry Bouwsma References: <200405232109.aa46210@salmon.maths.tcd.ie> <200406080928.i589Spl01628@Mail.NOSPAM.DynDNS.dK> In-Reply-To: <200406080928.i589Spl01628@Mail.NOSPAM.DynDNS.dK> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: USB patch for better bus_dma and detachment support X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 07:15:06 -0000 Barry Bouwsma wrote: > [drop the above ipv6-only address that only sometimes works from the > recipients and I'll catch up later from the archives, thanks] > > > >> http://people.freebsd.org/~iedowse/usb.diff >>that attempts to begin addressing a number of problems with our >>current USB code: >> >> o All data buffers were allocated using bus_dma as physically >> contiguous memory. All transfers involve a memory copy to/from >> these contiguous buffers, and the contiguous memory is never >> freed. Use of these buffers is also inefficient, so low-memory >> systems tend to quickly run out of usable physical memory. > Are there plans to pass these patches back to the netbsd guys? We don't have enough mass ourselves with USB so we rely on keeping at least "close" to their code.. Are there plans to commit them? > > Apologies for the lateness of this reply, but if you're interested, > I've had great success with this patch, apparently helping a few > annoying problems I've had. > > I've massaged this patch to work against my -stable (with select > source files derived from -current), and so far I no longer see > the problems that had occurred regularly: > :-) With my uhci controller, if I waited to mount and use a umass > device until other programs had snarfed all the system memory, > I'd get BBB timeouts when trying to access the device from > which I could never recover. > :-( My ehci controller, with certain devices, gave a `need data > toggle' kernel message during access which either slowed > access to a crawl, or inhibited any disk access, or could > result in a panic. This problem still does occur within > hours of use if it occurs, but superficially it seems to > be better than before. > The first problem has failed to recur in limited testing after > applying your patch, so it's a significant improvement for me. > So far, I appear to have stable operation of my USB storage > devices with my hardware for a change, though time will tell > if I just haven't yet triggered the above problems. > > > thanks, and sorry for the delay in this feedback. if this > patch has not yet been written to apply against 4.x (only > a few trivial changes appear needed) during the time I've > been offline, I could be strong-armed into posting needed > changes to make it work with selected source. > > barry bouwsma > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / hard at work in | / \ julian@elischer.org +------>x USA \ a very strange | ( OZ ) \___ ___ | country ! +- X_.---._/ presently in San Francisco \_/ \\ v