From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Christoph Lameter <clameter@sgi.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
jens.axboe@oracle.com
Subject: Re: Define CONFIG_BOUNCE to avoid useless inclusion of bounce buffer logic.
Date: Thu, 24 May 2007 08:50:21 +0100 [thread overview]
Message-ID: <20070524075021.GA4310@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.64.0705231603470.23000@schroedinger.engr.sgi.com>
On Wed, May 23, 2007 at 04:07:12PM -0700, Christoph Lameter wrote:
> On Wed, 23 May 2007, Russell King wrote:
> > At the end of the day, it is _far_ simpler from an architectural point
> > of view for memory to live in the DMA zone and disable the normal and
> > highmem zones than it is to selectively populate the normal zone
> > depending on whether device X is configured, and then also have to hack
> > around various drivers which decide they want to use __GFP_DMA because
> > of some antequated x86ism which doesn't apply on non-x86.
>
> If you switch off CONFIG_ZONE_DMA then __GFP_DMA becomes a no op. So no
> problem. Many of us want to rid the kernel of __GFP_DMA. Please join the
> club and nuke the useless ZONE_DMA on your platforms.
Absolutely and utterly impossible - with over 100 different machine
types I don't have anything approaching the necessary knowledge to
_special_ _case_ those platforms which _might_ be able to survive
without the DMA zone. And that's what it'll be - a set of special
cases in the initialisation path.
As I've tried to explain, from day 1 of the multi-zone Linux MM, it's
always made more sense to put everything into zone DMA and (eventually)
hope that the normal and highmem zones eventually go away.
Who cares what happens to __GFP_DMA - it's irrelevant, since both
__GFP_DMA and non-_GFP_DMA allocations will come from the DMA zone
when the normal zone is empty. Where the normal zone is _never_
populated with any memory, defining __GFP_DMA to zero will have no
effect.
So, let me repeat: it makes much much much more sense to get rid of
__GFP_DMA _and_ the normal and highmem zones than it does to get rid
of the DMA zone.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
next prev parent reply other threads:[~2007-05-24 7:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 4:03 Define CONFIG_BOUNCE to avoid useless inclusion of bounce buffer logic Christoph Lameter
2007-05-22 4:39 ` KAMEZAWA Hiroyuki
2007-05-22 5:27 ` Christoph Lameter
2007-05-23 14:07 ` Russell King
2007-05-23 17:15 ` Christoph Lameter
2007-05-23 22:58 ` Russell King
2007-05-23 23:07 ` Christoph Lameter
2007-05-24 7:50 ` Russell King [this message]
2007-05-24 3:47 ` Paul Mackerras
2007-05-24 4:03 ` Christoph Lameter
2007-06-03 22:24 ` Russell King
2007-05-24 9:57 ` Alan Cox
2007-05-22 7:08 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070524075021.GA4310@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=jens.axboe@oracle.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.