CONFIG_IOMMU_IOVA
- Off
- Module
- Built in
CONFIG_IOMMU_API
CONFIG_IOMMUFD_DRIVER
CONFIG_IOMMU_SUPPORT IOMMU Hardware Support
Say Y here if you want to compile device drivers for IO Memory Management Units into the kernel. These devices usually allow to remap DMA requests and/or remap interrupts from other devices on the system.
- Depends on
If IOMMU_SUPPORT
Generic IOMMU Pagetable Support
CONFIG_IOMMU_IO_PGTABLE
CONFIG_IOMMU_IO_PGTABLE_LPAE ARMv7/v8 Long Descriptor Format
Enable support for the ARM long descriptor pagetable format. This allocator supports 4K/2M/1G, 16K/32M and 64K/512M page sizes at both stage-1 and stage-2, as well as address spaces up to 48-bits in size.
- Depends on
IOMMU_SUPPORT && (ARM || ARM64 || COMPILE_TEST) && !GENERIC_ATOMIC64 - Selects
IOMMU_IO_PGTABLE if IOMMU_SUPPORT && (ARM || ARM64 || COMPILE_TEST) && !GENERIC_ATOMIC64
If IOMMU_IO_PGTABLE_LPAE
CONFIG_IOMMU_IO_PGTABLE_LPAE_KUNIT_TEST KUnit tests for LPAE
- Off
- Module
- Built in
Enable kunit tests for LPAE page table allocator. This performs a series of page-table consistency checks.
If unsure, say N here.
- Depends on
IOMMU_SUPPORT && IOMMU_IO_PGTABLE_LPAE && KUNIT
CONFIG_IOMMU_IO_PGTABLE_ARMV7S ARMv7/v8 Short Descriptor Format
Enable support for the ARM Short-descriptor pagetable format. This supports 32-bit virtual and physical addresses mapped using 2-level tables with 4KB pages/1MB sections, and contiguous entries for 64KB pages/16MB supersections if indicated by the IOMMU driver.
- Depends on
IOMMU_SUPPORT && (ARM || ARM64 || COMPILE_TEST) - Selects
IOMMU_IO_PGTABLE if IOMMU_SUPPORT && (ARM || ARM64 || COMPILE_TEST)
If IOMMU_IO_PGTABLE_ARMV7S
CONFIG_IOMMU_IO_PGTABLE_ARMV7S_SELFTEST ARMv7s selftests
Enable self-tests for ARMv7s page table allocator. This performs a series of page-table consistency checks during boot.
If unsure, say N here.
- Depends on
IOMMU_SUPPORT && IOMMU_IO_PGTABLE_ARMV7S
CONFIG_IOMMU_IO_PGTABLE_DART Apple DART Formats
Enable support for the Apple DART pagetable formats. These include the t8020 and t6000/t8110 DART formats used in Apple M1/M2 family SoCs.
If unsure, say N here.
- Depends on
IOMMU_SUPPORT && (ARM64 || COMPILE_TEST) && !GENERIC_ATOMIC64 - Selects
IOMMU_IO_PGTABLE if IOMMU_SUPPORT && (ARM64 || COMPILE_TEST) && !GENERIC_ATOMIC64
CONFIG_IOMMU_DEBUGFS Export IOMMU internals in DebugFS
Allows exposure of IOMMU device internals. This option enables the use of debugfs by IOMMU drivers as required. Devices can, at initialization time, cause the IOMMU code to create a top-level debug/iommu directory, and then populate a subdirectory with entries as required.
- Depends on
IOMMU_SUPPORT && DEBUG_FS
IOMMU default domain type
Choose the type of IOMMU domain used to manage DMA API usage by device drivers. The options here typically represent different levels of tradeoff between robustness/security and performance, depending on the IOMMU driver. Not all IOMMUs support all options. This choice can be overridden at boot via the command line, and for some devices also at runtime via sysfs.
If unsure, keep the default.
- Depends on
IOMMU_SUPPORT && IOMMU_API
CONFIG_IOMMU_DEFAULT_DMA_STRICT Translated - Strict
Trusted devices use translation to restrict their access to only DMA-mapped pages, with strict TLB invalidation on unmap. Equivalent to passing "iommu.passthrough=0 iommu.strict=1" on the command line.
Untrusted devices always use this mode, with an additional layer of bounce-buffering such that they cannot gain access to any unrelated data within a mapped page.
- Depends on
IOMMU_SUPPORT && IOMMU_API
CONFIG_IOMMU_DEFAULT_DMA_LAZY Translated - Lazy
Trusted devices use translation to restrict their access to only DMA-mapped pages, but with "lazy" batched TLB invalidation. This mode allows higher performance with some IOMMUs due to reduced TLB flushing, but at the cost of reduced isolation since devices may be able to access memory for some time after it has been unmapped. Equivalent to passing "iommu.passthrough=0 iommu.strict=0" on the command line.
If this mode is not supported by the IOMMU driver, the effective runtime default will fall back to IOMMU_DEFAULT_DMA_STRICT.
- Depends on
IOMMU_SUPPORT && IOMMU_API
CONFIG_IOMMU_DEFAULT_PASSTHROUGH Passthrough
Trusted devices are identity-mapped, giving them unrestricted access to memory with minimal performance overhead. Equivalent to passing "iommu.passthrough=1" (historically "iommu=pt") on the command line.
If this mode is not supported by the IOMMU driver, the effective runtime default will fall back to IOMMU_DEFAULT_DMA_STRICT.
- Depends on
IOMMU_SUPPORT && IOMMU_API
CONFIG_OF_IOMMU
- Depends on
IOMMU_SUPPORT && OF && IOMMU_API
CONFIG_IOMMU_DMA
- Selects
DMA_OPS_HELPERS if IOMMU_SUPPORT - Selects
IOMMU_API if IOMMU_SUPPORT - Selects
IOMMU_IOVA if IOMMU_SUPPORT - Selects
NEED_SG_DMA_LENGTH if IOMMU_SUPPORT - Selects
NEED_SG_DMA_FLAGS if IOMMU_SUPPORT && SWIOTLB
CONFIG_IOMMU_SVA
- Selects
IOMMU_MM_DATA if IOMMU_SUPPORT
CONFIG_IOMMU_IOPF
CONFIG_FSL_PAMU Freescale IOMMU support
Freescale PAMU support. PAMU is the IOMMU present on Freescale QorIQ platforms. PAMU can authorize memory access, remap the memory address, and remap I/O transaction types.
- Depends on
IOMMU_SUPPORT && PCI && PHYS_64BIT && (PPC_E500MC || COMPILE_TEST && PPC) - Selects
IOMMU_API if IOMMU_SUPPORT && PCI && PHYS_64BIT && (PPC_E500MC || COMPILE_TEST && PPC) - Selects
GENERIC_ALLOCATOR if IOMMU_SUPPORT && PCI && PHYS_64BIT && (PPC_E500MC || COMPILE_TEST && PPC)
CONFIG_MSM_IOMMU MSM IOMMU Support
Support for the IOMMUs found on certain Qualcomm SOCs. These IOMMUs allow virtualization of the address space used by most cores within the multimedia subsystem.
If unsure, say N here.
- Depends on
IOMMU_SUPPORT && ARM && ( || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && ARM && ( || COMPILE_TEST) - Selects
IOMMU_IO_PGTABLE_ARMV7S if IOMMU_SUPPORT && ARM && ( || COMPILE_TEST)
CONFIG_IRQ_REMAP Support for Interrupt Remapping
Supports Interrupt remapping for IO-APIC and MSI devices. To use x2apic mode in the CPU's which support x2APIC enhancements or to support platforms with CPU's having > 8 bit APIC ID, say Y.
- Depends on
IOMMU_SUPPORT && && X86_IO_APIC && PCI_MSI && ACPI - Selects
IRQ_MSI_LIB if IOMMU_SUPPORT && && X86_IO_APIC && PCI_MSI && ACPI
CONFIG_OMAP_IOMMU OMAP IOMMU Support
The OMAP3 media platform drivers depend on iommu support, if you need them say Y here.
- Depends on
IOMMU_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST)
If OMAP_IOMMU
CONFIG_OMAP_IOMMU_DEBUG Export OMAP IOMMU internals in DebugFS
Select this to see extensive information about the internal state of OMAP IOMMU in debugfs.
Say N unless you know you need this.
- Depends on
IOMMU_SUPPORT && OMAP_IOMMU && DEBUG_FS
CONFIG_ROCKCHIP_IOMMU Rockchip IOMMU Support
Support for IOMMUs found on Rockchip rk32xx SOCs. These IOMMUs allow virtualization of the address space used by most cores within the multimedia subsystem. Say Y here if you are using a Rockchip SoC that includes an IOMMU device.
- Depends on
IOMMU_SUPPORT && ( || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && ( || COMPILE_TEST) - Selects
ARM_DMA_USE_IOMMU if IOMMU_SUPPORT && ( || COMPILE_TEST)
CONFIG_SUN50I_IOMMU Allwinner H6 IOMMU Support
Support for the IOMMU introduced in the Allwinner H6 SoCs.
- Depends on
IOMMU_SUPPORT && HAS_DMA && ( || COMPILE_TEST) - Selects
ARM_DMA_USE_IOMMU if IOMMU_SUPPORT && HAS_DMA && ( || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && HAS_DMA && ( || COMPILE_TEST)
CONFIG_TEGRA_IOMMU_SMMU NVIDIA Tegra SMMU Support
This driver supports the IOMMU hardware (SMMU) found on NVIDIA Tegra SoCs (Tegra30 up to Tegra210).
- Depends on
IOMMU_SUPPORT && ( || COMPILE_TEST) && TEGRA_AHB && TEGRA_MC - Selects
IOMMU_API if IOMMU_SUPPORT && ( || COMPILE_TEST) && TEGRA_AHB && TEGRA_MC
CONFIG_EXYNOS_IOMMU Exynos IOMMU Support
Support for the IOMMU (System MMU) of Samsung Exynos application processor family. This enables H/W multimedia accelerators to see non-linear physical memory chunks as linear memory in their address space.
If unsure, say N here.
- Depends on
IOMMU_SUPPORT && ( || COMPILE_TEST) && ! - Selects
IOMMU_API if IOMMU_SUPPORT && ( || COMPILE_TEST) && ! - Selects
ARM_DMA_USE_IOMMU if IOMMU_SUPPORT && ( || COMPILE_TEST) && !
If EXYNOS_IOMMU
CONFIG_EXYNOS_IOMMU_DEBUG Debugging log for Exynos IOMMU
Select this to see the detailed log message that shows what happens in the IOMMU driver.
Say N unless you need kernel log message for IOMMU debugging.
- Depends on
IOMMU_SUPPORT && EXYNOS_IOMMU
CONFIG_IPMMU_VMSA Renesas VMSA-compatible IPMMU
Support for the Renesas VMSA-compatible IPMMU found in the R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} SoCs.
If unsure, say N.
- Depends on
IOMMU_SUPPORT && ( || COMPILE_TEST) && (ARM || ARM64 || COMPILE_TEST) && !GENERIC_ATOMIC64 - Selects
IOMMU_API if IOMMU_SUPPORT && ( || COMPILE_TEST) && (ARM || ARM64 || COMPILE_TEST) && !GENERIC_ATOMIC64 - Selects
IOMMU_IO_PGTABLE_LPAE if IOMMU_SUPPORT && ( || COMPILE_TEST) && (ARM || ARM64 || COMPILE_TEST) && !GENERIC_ATOMIC64 - Selects
ARM_DMA_USE_IOMMU if IOMMU_SUPPORT && ( || COMPILE_TEST) && (ARM || ARM64 || COMPILE_TEST) && !GENERIC_ATOMIC64
CONFIG_SPAPR_TCE_IOMMU sPAPR TCE IOMMU Support
Enables bits of IOMMU API required by VFIO. The iommu_ops is not implemented as it is not necessary for VFIO.
- Depends on
IOMMU_SUPPORT && (PPC_POWERNV || PPC_PSERIES) - Selects
IOMMU_API if IOMMU_SUPPORT && (PPC_POWERNV || PPC_PSERIES)
CONFIG_APPLE_DART Apple DART IOMMU Support
- Off
- Module
- Built in
Support for Apple DART (Device Address Resolution Table) IOMMUs found in Apple ARM SoCs like the M1. This IOMMU is required for most peripherals using DMA to access the main memory.
Say Y here if you are using an Apple SoC.
- Depends on
IOMMU_SUPPORT && (ARCH_APPLE || COMPILE_TEST && ) && !GENERIC_ATOMIC64 - Selects
IOMMU_API if IOMMU_SUPPORT && (ARCH_APPLE || COMPILE_TEST && ) && !GENERIC_ATOMIC64 - Selects
IOMMU_IO_PGTABLE_DART if IOMMU_SUPPORT && (ARCH_APPLE || COMPILE_TEST && ) && !GENERIC_ATOMIC64
CONFIG_S390_IOMMU
Support for the IOMMU API for s390 PCI devices.
- Depends on
IOMMU_SUPPORT && S390 && PCI - Selects
IOMMU_API if IOMMU_SUPPORT && S390 && PCI
CONFIG_MTK_IOMMU MediaTek IOMMU Support
- Off
- Module
- Built in
Support for the M4U on certain Mediatek SOCs. M4U is MultiMedia Memory Management Unit. This option enables remapping of DMA memory accesses for the multimedia subsystem.
If unsure, say N here.
- Depends on
IOMMU_SUPPORT && ( || COMPILE_TEST) - Selects
ARM_DMA_USE_IOMMU if IOMMU_SUPPORT && ( || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && ( || COMPILE_TEST) - Selects
IOMMU_IO_PGTABLE_ARMV7S if IOMMU_SUPPORT && ( || COMPILE_TEST) - Selects
MEMORY if IOMMU_SUPPORT && ( || COMPILE_TEST) - Selects
MTK_SMI if IOMMU_SUPPORT && ( || COMPILE_TEST)
CONFIG_MTK_IOMMU_V1 MediaTek IOMMU Version 1 (M4U gen1) Support
- Off
- Module
- Built in
Support for the M4U on certain Mediatek SoCs. M4U generation 1 HW is Multimedia Memory Managememt Unit. This option enables remapping of DMA memory accesses for the multimedia subsystem.
if unsure, say N here.
- Depends on
IOMMU_SUPPORT && ( && ARM || COMPILE_TEST) - Selects
ARM_DMA_USE_IOMMU if IOMMU_SUPPORT && ( && ARM || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && ( && ARM || COMPILE_TEST) - Selects
MEMORY if IOMMU_SUPPORT && ( && ARM || COMPILE_TEST) - Selects
MTK_SMI if IOMMU_SUPPORT && ( && ARM || COMPILE_TEST)
CONFIG_VIRTIO_IOMMU Virtio IOMMU driver
- Off
- Module
- Built in
Para-virtualised IOMMU driver with virtio.
Say Y here if you intend to run this kernel as a guest.
- Depends on
IOMMU_SUPPORT && VIRTIO && (ARM64 || X86) - Selects
IOMMU_API if IOMMU_SUPPORT && VIRTIO && (ARM64 || X86) - Selects
INTERVAL_TREE if IOMMU_SUPPORT && VIRTIO && (ARM64 || X86) - Selects
ACPI_VIOT if IOMMU_SUPPORT && VIRTIO && (ARM64 || X86) && ACPI
CONFIG_SPRD_IOMMU Unisoc IOMMU Support
- Off
- Module
- Built in
Support for IOMMU on Unisoc's SoCs, this IOMMU can be used by Unisoc's multimedia devices, such as display, Image codec(jpeg) and a few signal processors, including VSP(video), GSP(graphic), ISP(image), and CPP(camera pixel processor), etc.
Say Y here if you want to use the multimedia devices listed above.
- Depends on
IOMMU_SUPPORT && (ARCH_SPRD || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && (ARCH_SPRD || COMPILE_TEST)
CONFIG_VSI_IOMMU Verisilicon IOMMU Support
- Off
- Module
- Built in
Support for IOMMUs used by Verisilicon sub-systems like video decoders or encoder hardware blocks.
Say Y here if you want to use this IOMMU in front of these hardware blocks.
- Depends on
IOMMU_SUPPORT && ( && ARM64 || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && ( && ARM64 || COMPILE_TEST)
CONFIG_BCM2712_IOMMU BCM2712 IOMMU driver
Support for IOMMU on BCM2712 SoC. This IOMMU can be used by the display controller and various multimedia devices to perform efficient memory management.
Say Y here if you want to use this IOMMU in front of these hardware blocks.
- Depends on
IOMMU_SUPPORT && ( && ARM64 || COMPILE_TEST) - Selects
IOMMU_API if IOMMU_SUPPORT && ( && ARM64 || COMPILE_TEST) - Selects
GENERIC_PT if IOMMU_SUPPORT && ( && ARM64 || COMPILE_TEST) - Selects
IOMMU_PT if IOMMU_SUPPORT && ( && ARM64 || COMPILE_TEST) - Selects
IOMMU_PT_BCM2712 if IOMMU_SUPPORT && ( && ARM64 || COMPILE_TEST)
CONFIG_IOMMU_DEBUG_PAGEALLOC Debug IOMMU mappings against page allocations
This enables a consistency check between the kernel page allocator and the IOMMU subsystem. It verifies that pages being allocated or freed are not currently mapped in any IOMMU domain.
This helps detect DMA use-after-free bugs where a driver frees a page but forgets to unmap it from the IOMMU, potentially allowing a device to overwrite memory that the kernel has repurposed.
These checks are best-effort and may not detect all problems.
Due to performance overhead, this feature is disabled by default. You must enable "iommu.debug_pagealloc" from the kernel command line to activate the runtime checks.
If unsure, say N.
- Depends on
IOMMU_SUPPORT && DEBUG_PAGEALLOC && IOMMU_API && PAGE_EXTENSION
- arch/alpha/Kconfig:89
- arch/arc/Kconfig:70
- arch/arm/Kconfig:319
- arch/arm64/Kconfig:278
- arch/csky/Kconfig:160
- arch/hexagon/Kconfig:57
- arch/loongarch/Kconfig:787
- arch/m68k/Kconfig:84
- arch/microblaze/Kconfig:93
- arch/mips/Kconfig:3046
- arch/nios2/Kconfig:69
- arch/openrisc/Kconfig:54
- arch/parisc/Kconfig:106
- arch/powerpc/Kconfig:30
- arch/riscv/Kconfig:292
- arch/s390/Kconfig:2
- arch/sh/mm/Kconfig:4
- arch/sparc/Kconfig:140
- arch/um/Kconfig:52
- arch/x86/Kconfig:356
- arch/xtensa/Kconfig:94