From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 27980 invoked from network); 14 Mar 1999 18:32:29 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 14 Mar 1999 18:32:29 -0000 Received: from ares.cs.Virginia.EDU (ares.cs.Virginia.EDU [128.143.137.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA08642 for ; Sun, 14 Mar 1999 13:23:45 -0500 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.9.2/8.9.2/UVACS-1999030200) with ESMTP id NAA25936 for ; Sun, 14 Mar 1999 13:23:44 -0500 (EST) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.8.5/8.8.5) id NAA00858 for axp-list@redhat.com; Sun, 14 Mar 1999 13:23:44 -0500 (EST) Message-Id: <199903141823.NAA00858@adder.cs.Virginia.EDU> Subject: Re: > 1GB on alpha. Patch to 1TB? To: axp-list@redhat.com Date: Sun, 14 Mar 1999 13:23:43 -0500 (EST) In-Reply-To: <19990313192105.A14626@twiddle.net> from "Richard Henderson" at Mar 13, 99 07:21:05 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > We do already prefer `dma-able' pages for dma tasks. There is a kmalloc > flag just for that. No matter what you do though, at some point it will > so happen that the data is required at some high physical address. One trivial example would be a system with 8 gigs in which it makes sense to have more than 4 gigs used for disk cache. Another example is a driver that DMAs to user-allocated buffers. A third example is any system which has more than 4 gigs of ram; although we prefer dma-able pages for dma tasks, there's no way you can *guarantee* that you can get a dma-able page when you want a buffer; you might have to copy a page to high memory. > Alternately, we can adjust the DMA window so that physical addresses > 0x100000000 through 0x13FFFFFFF (4GB - 5GB) are visible at PCI addresses > 0xC0000000 through 0xFFFFFFFF (3GB - 4GB). At which point we do not have > to copy data around in kernel space, which is a real win. Doesn't this require some driver modifications? We need to keep this in mind, too, in our solution. This solution is probably the highest performance. Another intermediate solution is to prefer dma-able pages and have every driver know how to employ a bounce buffer if the destination is not dma-able. This requires modifying every driver. The third solution is to use windows in clever ways. That requires modifying every driver, and we'd probably have to also require bounce buffer capability since you can run out of DMA windows, or there could be architecture which has no windows. -- greg