From owner-freebsd-current@FreeBSD.ORG Wed Jul 7 22:12:49 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 1F6DB16A4CE for ; Wed, 7 Jul 2004 22:12:49 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id C57D143D41 for ; Wed, 7 Jul 2004 22:12:48 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from pooker.samsco.org (scottl@localhost [127.0.0.1]) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id i67MHS5N004017; Wed, 7 Jul 2004 16:17:28 -0600 (MDT) (envelope-from scottl@freebsd.org) Received: from localhost (scottl@localhost)i67MHR8Q004014; Wed, 7 Jul 2004 16:17:28 -0600 (MDT) (envelope-from scottl@freebsd.org) X-Authentication-Warning: pooker.samsco.org: scottl owned process doing -bs Date: Wed, 7 Jul 2004 16:17:27 -0600 (MDT) From: Scott Long Sender: scottl@pooker.samsco.org To: Poul-Henning Kamp In-Reply-To: <1901.1089236059@critter.freebsd.dk> Message-ID: <20040707161618.V97786@pooker.samsco.org> References: <1901.1089236059@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: ticso@cicely.de cc: "Charles M. Hannum" cc: FreeBSD current users cc: Julian Elischer 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 22:12:49 -0000 On Wed, 7 Jul 2004, Poul-Henning Kamp wrote: > In message <200407072129.15095.mycroft@netbsd.org>, "Charles M. Hannum" w= rites: > >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 wr= ite, > >> since there may be more than just bulk pipes (and may be more than one= bulk > >> pipe in each direction), and we only have have device node to work wit= h. > > > >Seems I misspoke there. That part looks fine. > > > >I think you're going to be screwed by the buffer alignment, though. Thi= s 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 something > 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. Note that busdma can handle alignment now for loaded buffers by using bounce pages. Scott