@@ -273,7 +273,7 @@ config IRQ_REMAP
273
273
# OMAP IOMMU support
274
274
config OMAP_IOMMU
275
275
bool "OMAP IOMMU Support"
276
- depends on ARM && MMU
276
+ depends on ARM && MMU || (COMPILE_TEST && (ARM || ARM64 || IA64 || SPARC))
277
277
depends on ARCH_OMAP2PLUS || COMPILE_TEST
278
278
select IOMMU_API
279
279
---help---
@@ -291,7 +291,7 @@ config OMAP_IOMMU_DEBUG
291
291
292
292
config ROCKCHIP_IOMMU
293
293
bool "Rockchip IOMMU Support"
294
- depends on ARM || ARM64
294
+ depends on ARM || ARM64 || (COMPILE_TEST && (ARM64 || IA64 || SPARC))
295
295
depends on ARCH_ROCKCHIP || COMPILE_TEST
296
296
select IOMMU_API
297
297
select ARM_DMA_USE_IOMMU
@@ -325,7 +325,7 @@ config TEGRA_IOMMU_SMMU
325
325
326
326
config EXYNOS_IOMMU
327
327
bool "Exynos IOMMU Support"
328
- depends on ARCH_EXYNOS && MMU
328
+ depends on ARCH_EXYNOS && MMU || (COMPILE_TEST && (ARM || ARM64 || IA64 || SPARC))
329
329
depends on !CPU_BIG_ENDIAN # revisit driver if we can enable big-endian ptes
330
330
select IOMMU_API
331
331
select ARM_DMA_USE_IOMMU
@@ -361,7 +361,7 @@ config IPMMU_VMSA
361
361
362
362
config SPAPR_TCE_IOMMU
363
363
bool "sPAPR TCE IOMMU Support"
364
- depends on PPC_POWERNV || PPC_PSERIES
364
+ depends on PPC_POWERNV || PPC_PSERIES || (PPC && COMPILE_TEST)
365
365
select IOMMU_API
366
366
help
367
367
Enables bits of IOMMU API required by VFIO. The iommu_ops
@@ -370,7 +370,7 @@ config SPAPR_TCE_IOMMU
370
370
# ARM IOMMU support
371
371
config ARM_SMMU
372
372
tristate "ARM Ltd. System MMU (SMMU) Support"
373
- depends on (ARM64 || ARM) && MMU
373
+ depends on (ARM64 || ARM || (COMPILE_TEST && !GENERIC_ATOMIC64) ) && MMU
374
374
select IOMMU_API
375
375
select IOMMU_IO_PGTABLE_LPAE
376
376
select ARM_DMA_USE_IOMMU if ARM
@@ -440,23 +440,23 @@ config S390_IOMMU
440
440
441
441
config S390_CCW_IOMMU
442
442
bool "S390 CCW IOMMU Support"
443
- depends on S390 && CCW
443
+ depends on S390 && CCW || COMPILE_TEST
444
444
select IOMMU_API
445
445
help
446
446
Enables bits of IOMMU API required by VFIO. The iommu_ops
447
447
is not implemented as it is not necessary for VFIO.
448
448
449
449
config S390_AP_IOMMU
450
450
bool "S390 AP IOMMU Support"
451
- depends on S390 && ZCRYPT
451
+ depends on S390 && ZCRYPT || COMPILE_TEST
452
452
select IOMMU_API
453
453
help
454
454
Enables bits of IOMMU API required by VFIO. The iommu_ops
455
455
is not implemented as it is not necessary for VFIO.
456
456
457
457
config MTK_IOMMU
458
458
bool "MTK IOMMU Support"
459
- depends on ARM || ARM64
459
+ depends on ARM || ARM64 || COMPILE_TEST
460
460
depends on ARCH_MEDIATEK || COMPILE_TEST
461
461
select ARM_DMA_USE_IOMMU
462
462
select IOMMU_API
0 commit comments