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