From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1791 invoked from network); 14 Mar 1999 03:29:32 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 14 Mar 1999 03:29:32 -0000 Received: from piglet.twiddle.net (rth@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id WAA22553 for ; Sat, 13 Mar 1999 22:21:05 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id TAA14749 for axp-list@redhat.com; Sat, 13 Mar 1999 19:21:05 -0800 Message-ID: <19990313192105.A14626@twiddle.net> Date: Sat, 13 Mar 1999 19:21:05 -0800 From: Richard Henderson To: axp-list@redhat.com Subject: Re: > 1GB on alpha. Patch to 1TB? References: <19990313104538.A11584@twiddle.net> <199903132357.PAA04728@icarus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: <199903132357.PAA04728@icarus.com>; from Stephen Williams on Sat, Mar 13, 1999 at 03:57:48PM -0800 On Sat, Mar 13, 1999 at 03:57:48PM -0800, Stephen Williams wrote: > > With 32-bit PCI devices, it is difficult to get past 2GB RAM. More > > than that requires either bounce buffers or that PCI windows be > > adjusted at runtime to cope with the various outstanding DMA requests. > > > > The problem is buffer allocation. Read "bounce buffers". 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. There are two ways to get the data there -- either through an intermediate buffer in a page frame the device can actually see, as you note NT does. 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. The trick of course being that there are only N dma windows, and they must service all outstanding dma requests simultaneously, and otherwise the request must queue or fall back to a bounce buffer. > The interface is really simple and should be able to handle the problem > quite easily. But is not necessarily the best way. r~