1 # SPDX-License-Identifier: GPL-2.0-only
13 bool "Support for Intel IOMMU using DMA Remapping Devices"
14 depends on PCI_MSI && ACPI && (X86 || IA64)
18 select NEED_DMA_MAP_STATE
25 DMA remapping (DMAR) devices support enables independent address
26 translations for Direct Memory Access (DMA) from devices.
27 These DMA remapping devices are reported via ACPI tables
28 and include PCI device scope covered by these DMA
33 config INTEL_IOMMU_DEBUGFS
34 bool "Export Intel IOMMU internals in Debugfs"
35 depends on IOMMU_DEBUGFS
41 DO NOT ENABLE THIS OPTION UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!!!
43 Expose Intel IOMMU internals in Debugfs.
45 This option is -NOT- intended for production environments, and should
46 only be enabled for debugging Intel IOMMU.
48 config INTEL_IOMMU_SVM
49 bool "Support for Shared Virtual Memory with Intel IOMMU"
57 Shared Virtual Memory (SVM) provides a facility for devices
58 to access DMA resources through process address space by
59 means of a Process Address Space ID (PASID).
61 config INTEL_IOMMU_DEFAULT_ON
62 bool "Enable Intel DMA Remapping Devices by default"
65 Selecting this option will enable a DMAR device at boot time if
66 one is found. If this option is not selected, DMAR support can
67 be enabled by passing intel_iommu=on to the kernel.
69 config INTEL_IOMMU_BROKEN_GFX_WA
70 bool "Workaround broken graphics drivers (going away soon)"
71 depends on BROKEN && X86
73 Current Graphics drivers tend to use physical address
74 for DMA and avoid using DMA APIs. Setting this config
75 option permits the IOMMU driver to set a unity map for
76 all the OS-visible memory. Hence the driver can continue
77 to use physical addresses for DMA, at least until this
78 option is removed in the 2.6.32 kernel.
80 config INTEL_IOMMU_FLOPPY_WA
84 Floppy disk drivers are known to bypass DMA API calls
85 thereby failing to work when IOMMU is enabled. This
86 workaround will setup a 1:1 mapping for the first
87 16MiB to make floppy (an ISA device) work.
89 config INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON
90 bool "Enable Intel IOMMU scalable mode by default"
93 Selecting this option will enable by default the scalable mode if
94 hardware presents the capability. The scalable mode is defined in
95 VT-d 3.0. The scalable mode capability could be checked by reading
96 /sys/devices/virtual/iommu/dmar*/intel-iommu/ecap. If this option
97 is not selected, scalable mode support could also be enabled by
98 passing intel_iommu=sm_on to the kernel. If not sure, please use