Commit 5ac6da669e2476dbdac89b357b05b5a79bc5b657
Committed by
Linus Torvalds
1 parent
339ba9b15d
[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>
Showing 13 changed files with 48 additions and 4 deletions Side-by-side Diff
arch/alpha/Kconfig
arch/arm/Kconfig
arch/arm26/Kconfig
arch/i386/Kconfig
arch/m32r/Kconfig
arch/m68k/Kconfig
arch/mips/Kconfig
arch/powerpc/Kconfig
... | ... | @@ -977,6 +977,10 @@ |
977 | 977 | have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If |
978 | 978 | you have an embedded board, consult your board documentation. |
979 | 979 | |
980 | +config ZONE_DMA | |
981 | + bool | |
982 | + default y | |
983 | + | |
980 | 984 | config GENERIC_ISA_DMA |
981 | 985 | bool |
982 | 986 | depends on PPC64 || POWER4 || 6xx && !CPM2 |
arch/ppc/Kconfig
... | ... | @@ -1177,6 +1177,10 @@ |
1177 | 1177 | have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If |
1178 | 1178 | you have an embedded board, consult your board documentation. |
1179 | 1179 | |
1180 | +config ZONE_DMA | |
1181 | + bool | |
1182 | + default y | |
1183 | + | |
1180 | 1184 | config GENERIC_ISA_DMA |
1181 | 1185 | bool |
1182 | 1186 | depends on 6xx && !CPM2 |
arch/sparc/Kconfig
arch/sparc64/Kconfig
arch/x86_64/Kconfig