Debian Codegraph @

drivers/iommu/intel/Kconfig

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # SPDX-License-Identifier: GPL-2.0-only
2 # Intel IOMMU support
3 config DMAR_TABLE
4 bool
5
6 config DMAR_PERF
7 bool
8
9 config DMAR_DEBUG
10 bool
11
12 config INTEL_IOMMU
13 bool "Support for Intel IOMMU using DMA Remapping Devices"
14 depends on PCI_MSI && ACPI && X86
15 select IOMMU_API
16 select GENERIC_PT
17 select IOMMU_PT
18 select IOMMU_PT_X86_64
19 select IOMMU_PT_VTDSS
20 select IOMMU_IOVA
21 select IOMMU_IOPF
22 select IOMMUFD_DRIVER if IOMMUFD
23 select NEED_DMA_MAP_STATE
24 select DMAR_TABLE
25 select SWIOTLB
26 select PCI_ATS
27 select PCI_PRI
28 select PCI_PASID
29 help
30 DMA remapping (DMAR) devices support enables independent address
31 translations for Direct Memory Access (DMA) from devices.
32 These DMA remapping devices are reported via ACPI tables
33 and include PCI device scope covered by these DMA
34 remapping devices.
35
36 if INTEL_IOMMU
37
38 config INTEL_IOMMU_DEBUGFS
39 bool "Export Intel IOMMU internals in Debugfs"
40 depends on IOMMU_DEBUGFS
41 select DMAR_PERF
42 select DMAR_DEBUG
43 help
44 !!!WARNING!!!
45
46 DO NOT ENABLE THIS OPTION UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!!!
47
48 Expose Intel IOMMU internals in Debugfs.
49
50 This option is -NOT- intended for production environments, and should
51 only be enabled for debugging Intel IOMMU.
52
53 config INTEL_IOMMU_SVM
54 bool "Support for Shared Virtual Memory with Intel IOMMU"
55 depends on X86_64
56 select MMU_NOTIFIER
57 select IOMMU_SVA
58 help
59 Shared Virtual Memory (SVM) provides a facility for devices
60 to access DMA resources through process address space by
61 means of a Process Address Space ID (PASID).
62
63 choice
64 prompt "Default state of Intel DMA Remapping Devices"
65 default INTEL_IOMMU_DEFAULT_ON
66 help
67 Choose whether Intel DMA Remapping Devices should be enabled
68 by default. This can be overridden at boot time using the
69 intel_iommu= kernel parameter.
70
71 config INTEL_IOMMU_DEFAULT_ON
72 bool "Enable"
73
74 config INTEL_IOMMU_DEFAULT_ON_INTGPU_OFF
75 bool "Enable, excluding integrated GPU"
76
77 config INTEL_IOMMU_DEFAULT_OFF
78 bool "Disable"
79
80 endchoice
81
82 config INTEL_IOMMU_FLOPPY_WA
83 def_bool y
84 depends on X86 && BLK_DEV_FD
85 help
86 Floppy disk drivers are known to bypass DMA API calls
87 thereby failing to work when IOMMU is enabled. This
88 workaround will setup a 1:1 mapping for the first
89 16MiB to make floppy (an ISA device) work.
90
91 config INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON
92 bool "Enable Intel IOMMU scalable mode by default"
93 default y
94 help
95 Selecting this option will enable by default the scalable mode if
96 hardware presents the capability. The scalable mode is defined in
97 VT-d 3.0. The scalable mode capability could be checked by reading
98 /sys/devices/virtual/iommu/dmar*/intel-iommu/ecap. If this option
99 is not selected, scalable mode support could also be enabled by
100 passing intel_iommu=sm_on to the kernel. If not sure, please use
101 the default value.
102
103 config INTEL_IOMMU_PERF_EVENTS
104 bool "Intel IOMMU performance events"
105 default y
106 depends on INTEL_IOMMU && PERF_EVENTS
107 help
108 Selecting this option will enable the performance monitoring
109 infrastructure in the Intel IOMMU. It collects information about
110 key events occurring during operation of the remapping hardware,
111 to aid performance tuning and debug. These are available on modern
112 processors which support Intel VT-d 4.0 and later.
113
114 endif # INTEL_IOMMU