Skip to content

Commit e93a169

Browse files
krzkjoergroedel
authored andcommitted
iommu: Enable compile testing for some of drivers
Some of the IOMMU drivers can be compile tested to increase build coverage. The OMAP, Rockchip and Exynos drivers use device.dev_archdata.iommu field which does not exist on all platforms. The sPAPR TCE and ARM SMMU have also restrictions where they can be built. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent d84eddd commit e93a169

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/iommu/Kconfig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ config IRQ_REMAP
273273
# OMAP IOMMU support
274274
config OMAP_IOMMU
275275
bool "OMAP IOMMU Support"
276-
depends on ARM && MMU
276+
depends on ARM && MMU || (COMPILE_TEST && (ARM || ARM64 || IA64 || SPARC))
277277
depends on ARCH_OMAP2PLUS || COMPILE_TEST
278278
select IOMMU_API
279279
---help---
@@ -291,7 +291,7 @@ config OMAP_IOMMU_DEBUG
291291

292292
config ROCKCHIP_IOMMU
293293
bool "Rockchip IOMMU Support"
294-
depends on ARM || ARM64
294+
depends on ARM || ARM64 || (COMPILE_TEST && (ARM64 || IA64 || SPARC))
295295
depends on ARCH_ROCKCHIP || COMPILE_TEST
296296
select IOMMU_API
297297
select ARM_DMA_USE_IOMMU
@@ -325,7 +325,7 @@ config TEGRA_IOMMU_SMMU
325325

326326
config EXYNOS_IOMMU
327327
bool "Exynos IOMMU Support"
328-
depends on ARCH_EXYNOS && MMU
328+
depends on ARCH_EXYNOS && MMU || (COMPILE_TEST && (ARM || ARM64 || IA64 || SPARC))
329329
depends on !CPU_BIG_ENDIAN # revisit driver if we can enable big-endian ptes
330330
select IOMMU_API
331331
select ARM_DMA_USE_IOMMU
@@ -361,7 +361,7 @@ config IPMMU_VMSA
361361

362362
config SPAPR_TCE_IOMMU
363363
bool "sPAPR TCE IOMMU Support"
364-
depends on PPC_POWERNV || PPC_PSERIES
364+
depends on PPC_POWERNV || PPC_PSERIES || (PPC && COMPILE_TEST)
365365
select IOMMU_API
366366
help
367367
Enables bits of IOMMU API required by VFIO. The iommu_ops
@@ -370,7 +370,7 @@ config SPAPR_TCE_IOMMU
370370
# ARM IOMMU support
371371
config ARM_SMMU
372372
tristate "ARM Ltd. System MMU (SMMU) Support"
373-
depends on (ARM64 || ARM) && MMU
373+
depends on (ARM64 || ARM || (COMPILE_TEST && !GENERIC_ATOMIC64)) && MMU
374374
select IOMMU_API
375375
select IOMMU_IO_PGTABLE_LPAE
376376
select ARM_DMA_USE_IOMMU if ARM
@@ -440,23 +440,23 @@ config S390_IOMMU
440440

441441
config S390_CCW_IOMMU
442442
bool "S390 CCW IOMMU Support"
443-
depends on S390 && CCW
443+
depends on S390 && CCW || COMPILE_TEST
444444
select IOMMU_API
445445
help
446446
Enables bits of IOMMU API required by VFIO. The iommu_ops
447447
is not implemented as it is not necessary for VFIO.
448448

449449
config S390_AP_IOMMU
450450
bool "S390 AP IOMMU Support"
451-
depends on S390 && ZCRYPT
451+
depends on S390 && ZCRYPT || COMPILE_TEST
452452
select IOMMU_API
453453
help
454454
Enables bits of IOMMU API required by VFIO. The iommu_ops
455455
is not implemented as it is not necessary for VFIO.
456456

457457
config MTK_IOMMU
458458
bool "MTK IOMMU Support"
459-
depends on ARM || ARM64
459+
depends on ARM || ARM64 || COMPILE_TEST
460460
depends on ARCH_MEDIATEK || COMPILE_TEST
461461
select ARM_DMA_USE_IOMMU
462462
select IOMMU_API

0 commit comments

Comments
 (0)