Update to 3.4-final.
[linux-flexiantxendom0-3.2.10.git] / drivers / iommu / Kconfig
1 # IOMMU_API always gets selected by whoever wants it.
2 config IOMMU_API
3         bool
4
5 menuconfig IOMMU_SUPPORT
6         bool "IOMMU Hardware Support"
7         depends on !XEN
8         default y
9         ---help---
10           Say Y here if you want to compile device drivers for IO Memory
11           Management Units into the kernel. These devices usually allow to
12           remap DMA requests and/or remap interrupts from other devices on the
13           system.
14
15 if IOMMU_SUPPORT
16
17 # MSM IOMMU support
18 config MSM_IOMMU
19         bool "MSM IOMMU Support"
20         depends on ARCH_MSM8X60 || ARCH_MSM8960
21         select IOMMU_API
22         help
23           Support for the IOMMUs found on certain Qualcomm SOCs.
24           These IOMMUs allow virtualization of the address space used by most
25           cores within the multimedia subsystem.
26
27           If unsure, say N here.
28
29 config IOMMU_PGTABLES_L2
30         def_bool y
31         depends on MSM_IOMMU && MMU && SMP && CPU_DCACHE_DISABLE=n
32
33 # AMD IOMMU support
34 config AMD_IOMMU
35         bool "AMD IOMMU support"
36         select SWIOTLB
37         select PCI_MSI
38         select PCI_ATS
39         select PCI_PRI
40         select PCI_PASID
41         select IOMMU_API
42         depends on X86_64 && PCI && ACPI
43         ---help---
44           With this option you can enable support for AMD IOMMU hardware in
45           your system. An IOMMU is a hardware component which provides
46           remapping of DMA memory accesses from devices. With an AMD IOMMU you
47           can isolate the the DMA memory of different devices and protect the
48           system from misbehaving device drivers or hardware.
49
50           You can find out if your system has an AMD IOMMU if you look into
51           your BIOS for an option to enable it or if you have an IVRS ACPI
52           table.
53
54 config AMD_IOMMU_STATS
55         bool "Export AMD IOMMU statistics to debugfs"
56         depends on AMD_IOMMU
57         select DEBUG_FS
58         ---help---
59           This option enables code in the AMD IOMMU driver to collect various
60           statistics about whats happening in the driver and exports that
61           information to userspace via debugfs.
62           If unsure, say N.
63
64 config AMD_IOMMU_V2
65         tristate "AMD IOMMU Version 2 driver (EXPERIMENTAL)"
66         depends on AMD_IOMMU && PROFILING && EXPERIMENTAL
67         select MMU_NOTIFIER
68         ---help---
69           This option enables support for the AMD IOMMUv2 features of the IOMMU
70           hardware. Select this option if you want to use devices that support
71           the the PCI PRI and PASID interface.
72
73 # Intel IOMMU support
74 config DMAR_TABLE
75         bool
76
77 config INTEL_IOMMU
78         bool "Support for Intel IOMMU using DMA Remapping Devices"
79         depends on PCI_MSI && ACPI && (X86 || IA64_GENERIC)
80         select IOMMU_API
81         select DMAR_TABLE
82         help
83           DMA remapping (DMAR) devices support enables independent address
84           translations for Direct Memory Access (DMA) from devices.
85           These DMA remapping devices are reported via ACPI tables
86           and include PCI device scope covered by these DMA
87           remapping devices.
88
89 config INTEL_IOMMU_DEFAULT_ON
90         def_bool y
91         prompt "Enable Intel DMA Remapping Devices by default"
92         depends on INTEL_IOMMU
93         help
94           Selecting this option will enable a DMAR device at boot time if
95           one is found. If this option is not selected, DMAR support can
96           be enabled by passing intel_iommu=on to the kernel.
97
98 config INTEL_IOMMU_BROKEN_GFX_WA
99         bool "Workaround broken graphics drivers (going away soon)"
100         depends on INTEL_IOMMU && BROKEN && X86
101         ---help---
102           Current Graphics drivers tend to use physical address
103           for DMA and avoid using DMA APIs. Setting this config
104           option permits the IOMMU driver to set a unity map for
105           all the OS-visible memory. Hence the driver can continue
106           to use physical addresses for DMA, at least until this
107           option is removed in the 2.6.32 kernel.
108
109 config INTEL_IOMMU_FLOPPY_WA
110         def_bool y
111         depends on INTEL_IOMMU && X86
112         ---help---
113           Floppy disk drivers are known to bypass DMA API calls
114           thereby failing to work when IOMMU is enabled. This
115           workaround will setup a 1:1 mapping for the first
116           16MiB to make floppy (an ISA device) work.
117
118 config IRQ_REMAP
119         bool "Support for Interrupt Remapping (EXPERIMENTAL)"
120         depends on X86_64 && X86_IO_APIC && PCI_MSI && ACPI && EXPERIMENTAL
121         select DMAR_TABLE
122         ---help---
123           Supports Interrupt remapping for IO-APIC and MSI devices.
124           To use x2apic mode in the CPU's which support x2APIC enhancements or
125           to support platforms with CPU's having > 8 bit APIC ID, say Y.
126
127 # OMAP IOMMU support
128 config OMAP_IOMMU
129         bool "OMAP IOMMU Support"
130         depends on ARCH_OMAP
131         select IOMMU_API
132
133 config OMAP_IOVMM
134         tristate "OMAP IO Virtual Memory Manager Support"
135         depends on OMAP_IOMMU
136
137 config OMAP_IOMMU_DEBUG
138        tristate "Export OMAP IOMMU/IOVMM internals in DebugFS"
139        depends on OMAP_IOVMM && DEBUG_FS
140        help
141          Select this to see extensive information about
142          the internal state of OMAP IOMMU/IOVMM in debugfs.
143
144          Say N unless you know you need this.
145
146 config TEGRA_IOMMU_GART
147         bool "Tegra GART IOMMU Support"
148         depends on ARCH_TEGRA_2x_SOC
149         select IOMMU_API
150         help
151           Enables support for remapping discontiguous physical memory
152           shared with the operating system into contiguous I/O virtual
153           space through the GART (Graphics Address Relocation Table)
154           hardware included on Tegra SoCs.
155
156 config TEGRA_IOMMU_SMMU
157         bool "Tegra SMMU IOMMU Support"
158         depends on ARCH_TEGRA_3x_SOC
159         select IOMMU_API
160         help
161           Enables support for remapping discontiguous physical memory
162           shared with the operating system into contiguous I/O virtual
163           space through the SMMU (System Memory Management Unit)
164           hardware included on Tegra SoCs.
165
166 endif # IOMMU_SUPPORT