Kconfig

CONFIG_IOMMU_IOVA

  • Off
  • Module
  • Built in

CONFIG_IOMMU_API

On

CONFIG_IOMMUFD_DRIVER

On
Default
  • n

CONFIG_IOMMU_SUPPORT IOMMU Hardware Support

On

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
Default
  • y if

If IOMMU_SUPPORT

Generic IOMMU Pagetable Support

CONFIG_IOMMU_IO_PGTABLE

On

If IOMMU_IO_PGTABLE_LPAE

CONFIG_IOMMU_IO_PGTABLE_ARMV7S ARMv7/v8 Short Descriptor Format

On

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.

If IOMMU_IO_PGTABLE_ARMV7S

CONFIG_IOMMU_IO_PGTABLE_ARMV7S_SELFTEST ARMv7s selftests

On

Enable self-tests for ARMv7s page table allocator. This performs a series of page-table consistency checks during boot.

If unsure, say N here.

End of Generic IOMMU Pagetable Support

CONFIG_IOMMU_DEBUGFS Export IOMMU internals in DebugFS

On

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.

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.

CONFIG_IOMMU_DEFAULT_DMA_STRICT Translated - Strict

Off

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.

CONFIG_IOMMU_DEFAULT_DMA_LAZY Translated - Lazy

On

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.

CONFIG_IOMMU_DEFAULT_PASSTHROUGH Passthrough

Off

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.

End of IOMMU default domain type

CONFIG_IOMMU_IOPF

On
Includedrivers/iommu/amd/Kconfig Open file
Includedrivers/iommu/arm/Kconfig Open file
Includedrivers/iommu/intel/Kconfig Open file
Includedrivers/iommu/hyperv/Kconfig Open file
Includedrivers/iommu/iommufd/Kconfig Open file
Includedrivers/iommu/riscv/Kconfig Open file

If OMAP_IOMMU

CONFIG_OMAP_IOMMU_DEBUG Export OMAP IOMMU internals in DebugFS

On

Select this to see extensive information about the internal state of OMAP IOMMU in debugfs.

Say N unless you know you need this.

CONFIG_EXYNOS_IOMMU Exynos IOMMU Support

On

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.

If EXYNOS_IOMMU

CONFIG_EXYNOS_IOMMU_DEBUG Debugging log for Exynos IOMMU

On

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.

CONFIG_IPMMU_VMSA Renesas VMSA-compatible IPMMU

On

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.

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.

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.

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.

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.

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.

CONFIG_BCM2712_IOMMU BCM2712 IOMMU driver

On

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.

CONFIG_IOMMU_DEBUG_PAGEALLOC Debug IOMMU mappings against page allocations

On

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.

Includedrivers/iommu/generic_pt/Kconfig Open file