diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-02-10 04:43:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:19 -0500 |
commit | 5ac6da669e2476dbdac89b357b05b5a79bc5b657 (patch) | |
tree | 45b16221dd4f246595638e5fb6f629ddda96ff33 /arch/arm26 | |
parent | 339ba9b15df58199b9783a23af234e947ec9e6ba (diff) |
[PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA
As Andi pointed out: CONFIG_GENERIC_ISA_DMA only disables the ISA DMA
channel management. Other functionality may still expect GFP_DMA to
provide memory below 16M. So we need to make sure that CONFIG_ZONE_DMA is
set independent of CONFIG_GENERIC_ISA_DMA. Undo the modifications to
mm/Kconfig where we made ZONE_DMA dependent on GENERIC_ISA_DMA and set
theses explicitly in each arches Kconfig.
Reviews must occur for each arch in order to determine if ZONE_DMA can be
switched off. It can only be switched off if we know that all devices
supported by a platform are capable of performing DMA transfers to all of
memory (Some arches already support this: uml, avr32, sh sh64, parisc and
IA64/Altix).
In order to switch ZONE_DMA off conditionally, one would have to establish
a scheme by which one can assure that no drivers are enabled that are only
capable of doing I/O to a part of memory, or one needs to provide an
alternate means of performing an allocation from a specific range of memory
(like provided by alloc_pages_range()) and insure that all drivers use that
call. In that case the arches alloc_dma_coherent() may need to be modified
to call alloc_pages_range() instead of relying on GFP_DMA.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm26')
-rw-r--r-- | arch/arm26/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm26/Kconfig b/arch/arm26/Kconfig index 74eba8b5a8ca..989113dce415 100644 --- a/arch/arm26/Kconfig +++ b/arch/arm26/Kconfig | |||
@@ -60,6 +60,10 @@ config GENERIC_CALIBRATE_DELAY | |||
60 | config GENERIC_BUST_SPINLOCK | 60 | config GENERIC_BUST_SPINLOCK |
61 | bool | 61 | bool |
62 | 62 | ||
63 | config ZONE_DMA | ||
64 | bool | ||
65 | default y | ||
66 | |||
63 | config GENERIC_ISA_DMA | 67 | config GENERIC_ISA_DMA |
64 | bool | 68 | bool |
65 | 69 | ||