Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753955AbYGDSMc (ORCPT ); Fri, 4 Jul 2008 14:12:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750978AbYGDSMX (ORCPT ); Fri, 4 Jul 2008 14:12:23 -0400 Received: from casper.infradead.org ([85.118.1.10]:37573 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707AbYGDSMX (ORCPT ); Fri, 4 Jul 2008 14:12:23 -0400 Date: Fri, 4 Jul 2008 11:12:24 -0700 From: Arjan van de Ven To: Pierre Ossman Cc: LKML , linux-mm@kvack.org Subject: Re: How to alloc highmem page below 4GB on i386? Message-ID: <20080704111224.68266afc@infradead.org> In-Reply-To: <20080704195800.4ef6e00a@mjolnir.drzeus.cx> References: <20080630200323.2a5992cd@mjolnir.drzeus.cx> <20080704195800.4ef6e00a@mjolnir.drzeus.cx> Organization: Intel X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1639 Lines: 42 On Fri, 4 Jul 2008 19:58:00 +0200 Pierre Ossman wrote: > On Mon, 30 Jun 2008 20:03:23 +0200 > Pierre Ossman wrote: > > > Simple question. How do I allocate a page from highmem, that's still > > within 32 bits? x86_64 has the DMA32 zone, but i386 has just > > HIGHMEM. As most devices can't DMA above 32 bit, I have 3 GB of > > memory that's not getting decent usage (or results in needless > > bouncing). What to do? > > > > I tried just enabling CONFIG_DMA32 for i386, but there is some guard > > against too many memory zones. I'm assuming this is there for a good > > reason? > > > > Anyone? > well... the assumption sort of is that all high-perf devices are 64 bit capable. For the rest... well you get what you get. There's IOMMU's in modern systems from Intel (and soon AMD) that help you avoid the bounce if you really care. The second assumption sort of is that you don't have 'too much' above 4Gb; once you're over 16Gb or so people assume you will run the 64 bit kernel instead... (you're hard pressed to find any system nowadays that can support > 4Gb but cannot support 64 bit... a few years ago that was different but 64 bit has been with us for many years now) -- If you want to reach me at my work email, use arjan@linux.intel.com For development, discussion and tips for power savings, visit http://www.lesswatts.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/