From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 32275 invoked from network); 14 Mar 1999 03:28:04 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 14 Mar 1999 03:28:04 -0000 Received: from mea.tmt.tele.fi (mea.tmt.tele.fi [194.252.70.162]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id WAA22506 for ; Sat, 13 Mar 1999 22:19:37 -0500 Received: by mea.tmt.tele.fi id <92257-406>; Sun, 14 Mar 1999 05:18:14 +0200 Subject: Re: > 1GB on alpha. Patch to 1TB? In-Reply-To: <199903132357.PAA04728@icarus.com> from Stephen Williams at "Mar 13, 99 03:57:48 pm" To: axp-list@redhat.com Date: Sun, 14 Mar 1999 05:18:14 +0200 (EET) From: Matti Aarnio Phone: +358-20402082 (office, with redirection to cellular) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <19990314031821Z92257-406+3@mea.tmt.tele.fi> Stephen Williams respondeth: > rth@twiddle.net said: > > 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. Yes, very much, but at selected hardware platforms we can also do scatter-gather mapping from PCI thru a selected size window to the global cacheable memory of the processor -- reading 21172 a.k.a. "CIA" chip document (21172tm.pdf) discusses this matter quite deeply, and gives some recommendations. At that document, talk about scatter-gather begins at part 6.4.3 (page 208, or 6-36) Part 6.4.4 gives some mapping recommendations.. That manual is also the reason why CIA does 1G Direct-DMA mapping window at Linux, even though 2G is possible. Likely the other chipsets can do similar things too. > I hate to bring up the other guys, but that works under NT by taking as > a parameter to the allocation function a mask of the significant bits > of address that the device can handle. This handles crummy ISA devices > and 32bit PCI devices, and anything in between. GFP_DMA, GFP_DMA32, etc ? Either way, code needs some work.. > The interface is really simple and should be able to handle the problem > quite easily. > Steve Williams "The woods are lovely, dark and deep. > steve@icarus.com But I have promises to keep, /Matti Aarnio