Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h
- From: Nicolas Pitre <nico@xxxxxxx>
- Date: Tue, 30 Sep 2008 17:09:49 -0400 (EDT)
On Tue, 30 Sep 2008, Russell King - ARM Linux wrote:
As we have already covered in the past, CONFIG_ZONE_DMA has to always
be enabled on ARM because ARM always puts all memory in the first zone.
To do otherwise introduces lots of special cases, and I steadfastly
refuse to make the memory initialisation any more complicated than it
already is.
I just tried this:
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 70dba16..8f609cc 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -148,7 +148,6 @@ config ARCH_MAY_HAVE_PC_FDC
config ZONE_DMA
bool
- default y
config GENERIC_ISA_DMA
bool
with no other changes what so ever. And the resulting kernel still
works fine, with this difference:
|On node 0 totalpages: 131072
|free_area_init_node: node 0, pgdat c03c5e00, node_mem_map c03e7000
| Normal zone: 130048 pages, LIFO batch:31
instead of:
|On node 0 totalpages: 131072
|free_area_init_node: node 0, pgdat c03c7e58, node_mem_map c03e9000
| DMA zone: 130048 pages, LIFO batch:31
And the resulting kernel is also smaller:
| text data bss dec hex filename
|3826182 102384 111700 4040266 3da64a vmlinux
|3823593 101616 111700 4036909 3d992d vmlinux.nodmazone
So maybe CONFIG_DMA_ZONE could be selected only by those machines
actually defining arch_adjust_zones() ?
And besides, this has nothing to do with that issue.
Indeed. But still...
Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- wrong usage of MAX_DMA_ADDRESS in bootmem.h
- From: Nicolas Pitre
- Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h
- From: Christoph Lameter
- Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h
- From: Russell King - ARM Linux
- wrong usage of MAX_DMA_ADDRESS in bootmem.h
- Prev by Date: Re: About the maintainer of "MOUSE AND MISC DEVICES"
- Next by Date: Re: [patch 1/2] x86: track memtype for RAM in page struct - v3
- Previous by thread: Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h
- Next by thread: [RFC patch 0/3] signals: add rt_tgsigqueueinfo syscall
- Index(es):
Relevant Pages
|