From owner-freebsd-current@FreeBSD.ORG Wed Jul 7 23:16:27 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 8B2DE16A4CE; Wed, 7 Jul 2004 23:16:27 +0000 (GMT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB79043D2F; Wed, 7 Jul 2004 23:16:26 +0000 (GMT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <20040707231625013008hme9e>; Wed, 7 Jul 2004 23:16:26 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA84092; Wed, 7 Jul 2004 16:16:24 -0700 (PDT) Date: Wed, 7 Jul 2004 16:16:22 -0700 (PDT) From: Julian Elischer To: Scott Long In-Reply-To: <20040707161618.V97786@pooker.samsco.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: Poul-Henning Kamp cc: "Charles M. Hannum" cc: FreeBSD current users cc: ticso@cicely.de Subject: Re: speeding up ugen by an order of magnitude. 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: Wed, 07 Jul 2004 23:16:27 -0000 On Wed, 7 Jul 2004, Scott Long wrote: > On Wed, 7 Jul 2004, Poul-Henning Kamp wrote: > > In message <200407072129.15095.mycroft@netbsd.org>, "Charles M. Hannum"= writes: > > >On Wednesday 07 July 2004 20:46, Charles M. Hannum wrote: > > >> 1) You'll need to add an interface for assigning pipes for read and = write, > > >> since there may be more than just bulk pipes (and may be more than o= ne bulk > > >> pipe in each direction), and we only have have device node to work w= ith. > > > > > >Seems I misspoke there. That part looks fine. > > > > > >I think you're going to be screwed by the buffer alignment, though. T= his also > > >causes some issues with umass if you're not using a bounce buffer. > > > > We've already had that issue with ATA for the b=F8rked Geode controller= : > > physio does nothing for alignment and relies on userland doing somethin= g > > sensible. > > > > I think this is pretty reasonable for the kind of hardware-near > > work that physio is usually employed in (including if we use it for > > ugen). > > > > Obviously, if the alignment is not OK, EINVAL should be returned, > > and that means that the driver should explicitly check the alignment. >=20 > Note that busdma can handle alignment now for loaded buffers by using > bounce pages. Since we have a relatively highly weighted priority on keeping this=20 code common with teh NetBSD version, how does that go for NetBSD? >=20 > Scott >=20