From owner-svn-src-head@FreeBSD.ORG Mon Feb 9 00:06:27 2009 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A12FF106564A; Mon, 9 Feb 2009 00:06:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 5B0A08FC1B; Mon, 9 Feb 2009 00:06:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n1905BdG009408; Sun, 8 Feb 2009 17:05:12 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 08 Feb 2009 17:05:15 -0700 (MST) Message-Id: <20090208.170515.1031215309.imp@bsdimp.com> To: xcllnt@mac.com From: "M. Warner Losh" In-Reply-To: <9E40268E-A2E2-4CAA-AAFE-EB2491175CEE@mac.com> References: <200902082254.n18MsxVt037307@svn.freebsd.org> <9E40268E-A2E2-4CAA-AAFE-EB2491175CEE@mac.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r188350 - in head/sys: amd64/amd64 arm/arm dev/usb2/core i386/i386 ia64/ia64 sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 00:06:28 -0000 In message: <9E40268E-A2E2-4CAA-AAFE-EB2491175CEE@mac.com> Marcel Moolenaar writes: : : On Feb 8, 2009, at 2:54 PM, Warner Losh wrote: : : > Author: imp : > Date: Sun Feb 8 22:54:58 2009 : > New Revision: 188350 : > URL: http://svn.freebsd.org/changeset/base/188350 : > : > Log: : > When bouncing pages, allow a new option to preserve the intra-page : > offset. This is needed for the ehci hardware buffer rings that : > assume : > this behavior. : : I thought we ended up with always doing that? : : Bounce buffers may or may not be used, so if the page offset : must be zero for bounce buffers, they must be zero for the : original DMA request. I see no value in re-aligning the DMA : request to a page boundary when bounce buffers are used, but : it is required in some cases to not realign. Hence, why not : always (and unconditionally) preserve the alignment? I'm not entirely sure either. However, at this stage of the game I'd rather be a little conservative in what we change and do a more careful and thorough analysis. One area we do need to fix is the inability to flush a subset of the range. Warner