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: Wed, 23 May 2007 15:07:02 +0100 [thread overview]
Message-ID: <20070523140702.GA16972@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.64.0705212225590.25388@schroedinger.engr.sgi.com>
On Mon, May 21, 2007 at 10:27:16PM -0700, Christoph Lameter wrote:
> On Tue, 22 May 2007, KAMEZAWA Hiroyuki wrote:
>
> > > +config BOUNCE
> > > + def_bool y
> > > + depends on BLOCK && MMU && (ZONE_DMA || HIGHMEM)
> > > +
> >
> > AFAIK, ppc has only ZONE_DMA and it never needs bounce.
> > Is this ok ?
>
> That is wrong. ppc should have ZONE_NORMAL and no ZONE_DMA.
> Otherwise you cannot switch off ZONE_DMA and you cannot switch off
> bounce. ZONE_DMA is a zone for exceptional allocs. If you do not have
> those then you only have normal allocs -> ZONE_NORMAL.
That sounds very wrong to me. Since about 1995 ARM has always placed
all DMA-able memory in the DMA zone, and none in the normal zone.
The reason for doing this is that normal allocations fall back to DMA
allocations when the normal zone becomes full/empty. However, DMA
allocations can never be satisfied by allocations from the normal zone.
Moreover, special casing the "doesn't use __GFP_DMA allocations on this
machine so places all memory in ZONE_NORMAL" is just too complicated -
I've no idea which of the 100+ ARM machine support currently merged
into the Linux kernel uses __GFP_DMA allocations and which don't.
The DMA zone is for memory allocations _for_ _DMA_. If all your memory
is DMA-able then it belongs in 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-23 14:07 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 [this message]
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
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=20070523140702.GA16972@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.