diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-01-28 09:45:53 -0500 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-01-30 07:39:28 -0500 |
commit | e5144c9375851948f50e13db80c3150e3a7521b8 (patch) | |
tree | a756408b0c739fda3a360592e52983d53679f00b /drivers/iommu | |
parent | 860cd64d102d9b6c97830e09c447a9a850ea7641 (diff) |
iommu: Disable on !MMU builds
A lot of the IOMMU support code does not build if the CPU does
not have an MMU itself, and it's not clear if there is any
use case for it, so let's just disable it and wait for anybody
to need it.
This avoids randconfig errors like
../arch/arm/mm/dma-mapping.c: In function '__iommu_alloc_remap':
../arch/arm/mm/dma-mapping.c:1278:34: error: 'VM_ARM_DMA_CONSISTENT' undeclared (first use in this function)
area = get_vm_area_caller(size, VM_ARM_DMA_CONSISTENT | VM_USERMAP,
^
../arch/arm/mm/dma-mapping.c:1278:34: note: each undeclared identifier is reported only once for each function it appears in
../arch/arm/mm/dma-mapping.c: In function '__atomic_get_pages':
../arch/arm/mm/dma-mapping.c:1358:27: error: 'atomic_pool' undeclared (first use in this function)
struct dma_pool *pool = &atomic_pool;
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/Kconfig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index a839ca93376b..5189cc12c5a3 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig | |||
@@ -4,6 +4,7 @@ config IOMMU_API | |||
4 | 4 | ||
5 | menuconfig IOMMU_SUPPORT | 5 | menuconfig IOMMU_SUPPORT |
6 | bool "IOMMU Hardware Support" | 6 | bool "IOMMU Hardware Support" |
7 | depends on MMU | ||
7 | default y | 8 | default y |
8 | ---help--- | 9 | ---help--- |
9 | Say Y here if you want to compile device drivers for IO Memory | 10 | Say Y here if you want to compile device drivers for IO Memory |
@@ -144,7 +145,7 @@ config IRQ_REMAP | |||
144 | # OMAP IOMMU support | 145 | # OMAP IOMMU support |
145 | config OMAP_IOMMU | 146 | config OMAP_IOMMU |
146 | bool "OMAP IOMMU Support" | 147 | bool "OMAP IOMMU Support" |
147 | depends on ARCH_OMAP2PLUS | 148 | depends on ARCH_OMAP2PLUS && MMU |
148 | select IOMMU_API | 149 | select IOMMU_API |
149 | 150 | ||
150 | config OMAP_IOMMU_DEBUG | 151 | config OMAP_IOMMU_DEBUG |
@@ -191,7 +192,7 @@ config TEGRA_IOMMU_SMMU | |||
191 | 192 | ||
192 | config EXYNOS_IOMMU | 193 | config EXYNOS_IOMMU |
193 | bool "Exynos IOMMU Support" | 194 | bool "Exynos IOMMU Support" |
194 | depends on ARCH_EXYNOS && ARM | 195 | depends on ARCH_EXYNOS && ARM && MMU |
195 | select IOMMU_API | 196 | select IOMMU_API |
196 | select ARM_DMA_USE_IOMMU | 197 | select ARM_DMA_USE_IOMMU |
197 | help | 198 | help |
@@ -220,7 +221,7 @@ config SHMOBILE_IPMMU_TLB | |||
220 | config SHMOBILE_IOMMU | 221 | config SHMOBILE_IOMMU |
221 | bool "IOMMU for Renesas IPMMU/IPMMUI" | 222 | bool "IOMMU for Renesas IPMMU/IPMMUI" |
222 | default n | 223 | default n |
223 | depends on ARM | 224 | depends on ARM && MMU |
224 | depends on ARCH_SHMOBILE || COMPILE_TEST | 225 | depends on ARCH_SHMOBILE || COMPILE_TEST |
225 | select IOMMU_API | 226 | select IOMMU_API |
226 | select ARM_DMA_USE_IOMMU | 227 | select ARM_DMA_USE_IOMMU |
@@ -309,6 +310,7 @@ config SPAPR_TCE_IOMMU | |||
309 | config ARM_SMMU | 310 | config ARM_SMMU |
310 | bool "ARM Ltd. System MMU (SMMU) Support" | 311 | bool "ARM Ltd. System MMU (SMMU) Support" |
311 | depends on ARM64 || (ARM_LPAE && OF) | 312 | depends on ARM64 || (ARM_LPAE && OF) |
313 | depends on MMU | ||
312 | select IOMMU_API | 314 | select IOMMU_API |
313 | select ARM_DMA_USE_IOMMU if ARM | 315 | select ARM_DMA_USE_IOMMU if ARM |
314 | help | 316 | help |