diff options
author | Becky Bruce <beckyb@kernel.crashing.org> | 2009-05-14 08:42:28 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-09 02:49:18 -0400 |
commit | ec3cf2ece22a8ede7478bf38e2a818986322662b (patch) | |
tree | 76654ac60da3d2ac27f49769f825215d55b03276 /arch/powerpc/Kconfig | |
parent | 1babddbc2e83ab98fc4dd0a3e9bd7b2d30be7e32 (diff) |
powerpc: Add support for swiotlb on 32-bit
This patch includes the basic infrastructure to use swiotlb
bounce buffering on 32-bit powerpc. It is not yet enabled on
any platforms. Probably the most interesting bit is the
addition of addr_needs_map to dma_ops - we need this as
a dma_op because the decision of whether or not an addr
can be mapped by a device is device-specific.
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r-- | arch/powerpc/Kconfig | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index ff755398ce28..93a61898b259 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -300,9 +300,19 @@ config IOMMU_VMERGE | |||
300 | config IOMMU_HELPER | 300 | config IOMMU_HELPER |
301 | def_bool PPC64 | 301 | def_bool PPC64 |
302 | 302 | ||
303 | config SWIOTLB | ||
304 | bool "SWIOTLB support" | ||
305 | default n | ||
306 | select IOMMU_HELPER | ||
307 | ---help--- | ||
308 | Support for IO bounce buffering for systems without an IOMMU. | ||
309 | This allows us to DMA to the full physical address space on | ||
310 | platforms where the size of a physical address is larger | ||
311 | than the bus address. Not all platforms support this. | ||
312 | |||
303 | config PPC_NEED_DMA_SYNC_OPS | 313 | config PPC_NEED_DMA_SYNC_OPS |
304 | def_bool y | 314 | def_bool y |
305 | depends on NOT_COHERENT_CACHE | 315 | depends on (NOT_COHERENT_CACHE || SWIOTLB) |
306 | 316 | ||
307 | config HOTPLUG_CPU | 317 | config HOTPLUG_CPU |
308 | bool "Support for enabling/disabling CPUs" | 318 | bool "Support for enabling/disabling CPUs" |