blob: c1a07a56d332df04edfec2c913483b7e2014bb56 [file] [log] [blame]
Ohad Ben-Cohenab493a02011-06-02 02:48:05 +03001# IOMMU_API always gets selected by whoever wants it.
2config IOMMU_API
3 bool
Ohad Ben-Cohenb10f1272011-06-02 03:20:08 +03004
Joerg Roedel68255b62011-06-14 15:51:54 +02005menuconfig IOMMU_SUPPORT
6 bool "IOMMU Hardware Support"
Arnd Bergmanne5144c92015-01-28 15:45:53 +01007 depends on MMU
Joerg Roedel68255b62011-06-14 15:51:54 +02008 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
15if IOMMU_SUPPORT
16
Will Deaconfdb1d7b2014-11-14 17:16:49 +000017menu "Generic IOMMU Pagetable Support"
18
19# Selected by the actual pagetable implementations
20config IOMMU_IO_PGTABLE
21 bool
22
Will Deacone1d3c0f2014-11-14 17:18:23 +000023config IOMMU_IO_PGTABLE_LPAE
24 bool "ARMv7/v8 Long Descriptor Format"
25 select IOMMU_IO_PGTABLE
Robin Murphyffcb6d12015-09-17 17:42:16 +010026 depends on HAS_DMA && (ARM || ARM64 || COMPILE_TEST)
Will Deacone1d3c0f2014-11-14 17:18:23 +000027 help
28 Enable support for the ARM long descriptor pagetable format.
29 This allocator supports 4K/2M/1G, 16K/32M and 64K/512M page
30 sizes at both stage-1 and stage-2, as well as address spaces
31 up to 48-bits in size.
32
Will Deaconfe4b9912014-11-17 23:31:12 +000033config IOMMU_IO_PGTABLE_LPAE_SELFTEST
34 bool "LPAE selftests"
35 depends on IOMMU_IO_PGTABLE_LPAE
36 help
37 Enable self-tests for LPAE page table allocator. This performs
38 a series of page-table consistency checks during boot.
39
40 If unsure, say N here.
41
Robin Murphye5fc9752016-01-26 17:13:13 +000042config IOMMU_IO_PGTABLE_ARMV7S
43 bool "ARMv7/v8 Short Descriptor Format"
44 select IOMMU_IO_PGTABLE
45 depends on HAS_DMA && (ARM || ARM64 || COMPILE_TEST)
46 help
47 Enable support for the ARM Short-descriptor pagetable format.
48 This supports 32-bit virtual and physical addresses mapped using
49 2-level tables with 4KB pages/1MB sections, and contiguous entries
50 for 64KB pages/16MB supersections if indicated by the IOMMU driver.
51
52config IOMMU_IO_PGTABLE_ARMV7S_SELFTEST
53 bool "ARMv7s selftests"
54 depends on IOMMU_IO_PGTABLE_ARMV7S
55 help
56 Enable self-tests for ARMv7s page table allocator. This performs
57 a series of page-table consistency checks during boot.
58
59 If unsure, say N here.
60
Mitchel Humpherys86a560e2015-09-30 14:23:58 -070061config IOMMU_IO_PGTABLE_FAST
62 bool "Fast ARMv7/v8 Long Descriptor Format"
Atul Rautedcdd342017-01-29 22:06:18 -080063 depends on ARM64_DMA_USE_IOMMU || ARM_DMA_USE_IOMMU
Mitchel Humpherys86a560e2015-09-30 14:23:58 -070064 help
65 Enable support for a subset of the ARM long descriptor pagetable
66 format. This allocator achieves fast performance by
67 pre-allocating and pre-populating page table memory up front.
68 only supports a 32 bit virtual address space.
69
70 This implementation is mainly optimized for use cases where the
71 buffers are small (<= 64K) since it only supports 4K page sizes.
72
73config IOMMU_IO_PGTABLE_FAST_SELFTEST
74 bool "Fast IO pgtable selftests"
75 depends on IOMMU_IO_PGTABLE_FAST
76 help
77 Enable self-tests for "fast" page table allocator. This performs
78 a series of page-table consistency checks during boot.
79
80 If unsure, say N here.
81
Mitchel Humpherys5c704e02015-12-21 15:06:34 -080082config IOMMU_IO_PGTABLE_FAST_PROVE_TLB
83 bool "Prove correctness of TLB maintenance in the Fast DMA mapper"
84 depends on IOMMU_IO_PGTABLE_FAST
85 help
86 Enables some debug features that help prove correctness of TLB
87 maintenance routines in the Fast DMA mapper. This option will
88 slow things down considerably, so should only be used in a debug
89 configuration. This relies on the ability to set bits in an
90 invalid page table entry, which is disallowed on some hardware
91 due to errata. If you're running on such a platform then this
92 option can only be used with unit tests. It will break real use
93 cases.
94
95 If unsure, say N here.
96
Will Deaconfdb1d7b2014-11-14 17:16:49 +000097endmenu
98
Robin Murphy114150d2015-01-12 17:51:13 +000099config IOMMU_IOVA
Sakari Ailus15bbdec2015-07-13 14:31:30 +0300100 tristate
Robin Murphy114150d2015-01-12 17:51:13 +0000101
Hiroshi Doyu4e0ee782012-06-25 14:23:54 +0300102config OF_IOMMU
103 def_bool y
Will Deacon7eba1d52014-08-27 16:20:32 +0100104 depends on OF && IOMMU_API
Hiroshi Doyu4e0ee782012-06-25 14:23:54 +0300105
Robin Murphy0db2e5d2015-10-01 20:13:58 +0100106# IOMMU-agnostic DMA-mapping layer
107config IOMMU_DMA
108 bool
Robin Murphy0db2e5d2015-10-01 20:13:58 +0100109 select IOMMU_API
110 select IOMMU_IOVA
Robin Murphy59a68eb2016-02-29 11:13:39 +0000111 select NEED_SG_DMA_LENGTH
Robin Murphy0db2e5d2015-10-01 20:13:58 +0100112
Varun Sethi695093e2013-07-15 10:20:57 +0530113config FSL_PAMU
114 bool "Freescale IOMMU support"
Andy Fleminga0d284d2016-03-16 23:15:44 -0500115 depends on PPC_E500MC || (COMPILE_TEST && PPC)
Varun Sethi695093e2013-07-15 10:20:57 +0530116 select IOMMU_API
117 select GENERIC_ALLOCATOR
118 help
119 Freescale PAMU support. PAMU is the IOMMU present on Freescale QorIQ platforms.
120 PAMU can authorize memory access, remap the memory address, and remap I/O
121 transaction types.
122
Ohad Ben-Cohenb10f1272011-06-02 03:20:08 +0300123# MSM IOMMU support
124config MSM_IOMMU
125 bool "MSM IOMMU Support"
Joerg Roedel477ab7a2015-01-20 16:13:33 +0100126 depends on ARM
127 depends on ARCH_MSM8X60 || ARCH_MSM8960 || COMPILE_TEST
Ohad Ben-Cohenb10f1272011-06-02 03:20:08 +0300128 select IOMMU_API
Sricharan Rc9220fb2016-06-13 17:06:06 +0530129 select IOMMU_IO_PGTABLE_ARMV7S
Ohad Ben-Cohenb10f1272011-06-02 03:20:08 +0300130 help
131 Support for the IOMMUs found on certain Qualcomm SOCs.
132 These IOMMUs allow virtualization of the address space used by most
133 cores within the multimedia subsystem.
134
135 If unsure, say N here.
136
137config IOMMU_PGTABLES_L2
138 def_bool y
139 depends on MSM_IOMMU && MMU && SMP && CPU_DCACHE_DISABLE=n
Ohad Ben-Cohen29b68412011-06-05 18:22:18 +0300140
141# AMD IOMMU support
142config AMD_IOMMU
143 bool "AMD IOMMU support"
144 select SWIOTLB
145 select PCI_MSI
Joerg Roedel52815b72011-11-17 17:24:28 +0100146 select PCI_ATS
147 select PCI_PRI
148 select PCI_PASID
Ohad Ben-Cohen29b68412011-06-05 18:22:18 +0300149 select IOMMU_API
Joerg Roedela72c4222016-07-05 11:12:49 +0200150 select IOMMU_IOVA
Thomas Petazzoni0dbc6072013-10-03 11:59:14 +0200151 depends on X86_64 && PCI && ACPI
Ohad Ben-Cohen29b68412011-06-05 18:22:18 +0300152 ---help---
153 With this option you can enable support for AMD IOMMU hardware in
154 your system. An IOMMU is a hardware component which provides
155 remapping of DMA memory accesses from devices. With an AMD IOMMU you
Masanari Iida59bf8962012-04-18 00:01:21 +0900156 can isolate the DMA memory of different devices and protect the
Ohad Ben-Cohen29b68412011-06-05 18:22:18 +0300157 system from misbehaving device drivers or hardware.
158
159 You can find out if your system has an AMD IOMMU if you look into
160 your BIOS for an option to enable it or if you have an IVRS ACPI
161 table.
162
Joerg Roedele3c495c2011-11-09 12:31:15 +0100163config AMD_IOMMU_V2
Kees Cooka446e212013-01-16 18:53:39 -0800164 tristate "AMD IOMMU Version 2 driver"
Borislav Petkove5cac322014-07-10 12:44:56 +0200165 depends on AMD_IOMMU
Joerg Roedel8736b2c2011-11-24 16:21:52 +0100166 select MMU_NOTIFIER
Joerg Roedele3c495c2011-11-09 12:31:15 +0100167 ---help---
168 This option enables support for the AMD IOMMUv2 features of the IOMMU
169 hardware. Select this option if you want to use devices that support
Masanari Iida59bf8962012-04-18 00:01:21 +0900170 the PCI PRI and PASID interface.
Joerg Roedele3c495c2011-11-09 12:31:15 +0100171
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300172# Intel IOMMU support
Suresh Siddhad3f13812011-08-23 17:05:25 -0700173config DMAR_TABLE
174 bool
175
176config INTEL_IOMMU
177 bool "Support for Intel IOMMU using DMA Remapping Devices"
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300178 depends on PCI_MSI && ACPI && (X86 || IA64_GENERIC)
179 select IOMMU_API
Robin Murphy114150d2015-01-12 17:51:13 +0000180 select IOMMU_IOVA
Suresh Siddhad3f13812011-08-23 17:05:25 -0700181 select DMAR_TABLE
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300182 help
183 DMA remapping (DMAR) devices support enables independent address
184 translations for Direct Memory Access (DMA) from devices.
185 These DMA remapping devices are reported via ACPI tables
186 and include PCI device scope covered by these DMA
187 remapping devices.
188
David Woodhouse8a94ade2015-03-24 14:54:56 +0000189config INTEL_IOMMU_SVM
190 bool "Support for Shared Virtual Memory with Intel IOMMU"
191 depends on INTEL_IOMMU && X86
David Woodhouseb16d0cb2015-10-12 14:17:37 +0100192 select PCI_PASID
David Woodhouse2f26e0a2015-09-09 11:40:47 +0100193 select MMU_NOTIFIER
David Woodhouse8a94ade2015-03-24 14:54:56 +0000194 help
195 Shared Virtual Memory (SVM) provides a facility for devices
196 to access DMA resources through process address space by
197 means of a Process Address Space ID (PASID).
198
Suresh Siddhad3f13812011-08-23 17:05:25 -0700199config INTEL_IOMMU_DEFAULT_ON
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300200 def_bool y
Suresh Siddhad3f13812011-08-23 17:05:25 -0700201 prompt "Enable Intel DMA Remapping Devices by default"
202 depends on INTEL_IOMMU
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300203 help
204 Selecting this option will enable a DMAR device at boot time if
205 one is found. If this option is not selected, DMAR support can
206 be enabled by passing intel_iommu=on to the kernel.
207
Suresh Siddhad3f13812011-08-23 17:05:25 -0700208config INTEL_IOMMU_BROKEN_GFX_WA
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300209 bool "Workaround broken graphics drivers (going away soon)"
Suresh Siddhad3f13812011-08-23 17:05:25 -0700210 depends on INTEL_IOMMU && BROKEN && X86
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300211 ---help---
212 Current Graphics drivers tend to use physical address
213 for DMA and avoid using DMA APIs. Setting this config
214 option permits the IOMMU driver to set a unity map for
215 all the OS-visible memory. Hence the driver can continue
216 to use physical addresses for DMA, at least until this
217 option is removed in the 2.6.32 kernel.
218
Suresh Siddhad3f13812011-08-23 17:05:25 -0700219config INTEL_IOMMU_FLOPPY_WA
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300220 def_bool y
Suresh Siddhad3f13812011-08-23 17:05:25 -0700221 depends on INTEL_IOMMU && X86
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300222 ---help---
223 Floppy disk drivers are known to bypass DMA API calls
224 thereby failing to work when IOMMU is enabled. This
225 workaround will setup a 1:1 mapping for the first
226 16MiB to make floppy (an ISA device) work.
227
Suresh Siddhad3f13812011-08-23 17:05:25 -0700228config IRQ_REMAP
Kees Cooka446e212013-01-16 18:53:39 -0800229 bool "Support for Interrupt Remapping"
230 depends on X86_64 && X86_IO_APIC && PCI_MSI && ACPI
Suresh Siddhad3f13812011-08-23 17:05:25 -0700231 select DMAR_TABLE
Ohad Ben-Cohen166e9272011-06-10 21:42:27 +0300232 ---help---
233 Supports Interrupt remapping for IO-APIC and MSI devices.
234 To use x2apic mode in the CPU's which support x2APIC enhancements or
235 to support platforms with CPU's having > 8 bit APIC ID, say Y.
Joerg Roedel68255b62011-06-14 15:51:54 +0200236
Ohad Ben-Cohenfcf3a6e2011-08-15 23:21:41 +0300237# OMAP IOMMU support
238config OMAP_IOMMU
239 bool "OMAP IOMMU Support"
Joerg Roedel477ab7a2015-01-20 16:13:33 +0100240 depends on ARM && MMU
241 depends on ARCH_OMAP2PLUS || COMPILE_TEST
Ohad Ben-Cohenfcf3a6e2011-08-15 23:21:41 +0300242 select IOMMU_API
Gerd Hoffmann06b718c2014-11-11 09:17:00 +0100243 ---help---
244 The OMAP3 media platform drivers depend on iommu support,
245 if you need them say Y here.
Ohad Ben-Cohenfcf3a6e2011-08-15 23:21:41 +0300246
Ohad Ben-Cohenfcf3a6e2011-08-15 23:21:41 +0300247config OMAP_IOMMU_DEBUG
Suman Anna61c75352014-10-22 17:22:30 -0500248 bool "Export OMAP IOMMU internals in DebugFS"
249 depends on OMAP_IOMMU && DEBUG_FS
250 ---help---
251 Select this to see extensive information about
252 the internal state of OMAP IOMMU in debugfs.
Ohad Ben-Cohenfcf3a6e2011-08-15 23:21:41 +0300253
Suman Anna61c75352014-10-22 17:22:30 -0500254 Say N unless you know you need this.
Ohad Ben-Cohenfcf3a6e2011-08-15 23:21:41 +0300255
Daniel Kurtzc68a2922014-11-03 10:53:27 +0800256config ROCKCHIP_IOMMU
257 bool "Rockchip IOMMU Support"
Joerg Roedel11175882014-11-03 18:16:56 +0100258 depends on ARM
259 depends on ARCH_ROCKCHIP || COMPILE_TEST
Daniel Kurtzc68a2922014-11-03 10:53:27 +0800260 select IOMMU_API
261 select ARM_DMA_USE_IOMMU
262 help
263 Support for IOMMUs found on Rockchip rk32xx SOCs.
264 These IOMMUs allow virtualization of the address space used by most
265 cores within the multimedia subsystem.
266 Say Y here if you are using a Rockchip SoC that includes an IOMMU
267 device.
Ohad Ben-Cohenab493a02011-06-02 02:48:05 +0300268
Hiroshi DOYUd53e54b2011-11-16 17:36:37 +0200269config TEGRA_IOMMU_GART
270 bool "Tegra GART IOMMU Support"
271 depends on ARCH_TEGRA_2x_SOC
272 select IOMMU_API
273 help
274 Enables support for remapping discontiguous physical memory
275 shared with the operating system into contiguous I/O virtual
276 space through the GART (Graphics Address Relocation Table)
277 hardware included on Tegra SoCs.
278
Hiroshi DOYU7a31f6f2011-11-17 07:31:31 +0200279config TEGRA_IOMMU_SMMU
Thierry Reding89184652014-04-16 09:24:44 +0200280 bool "NVIDIA Tegra SMMU Support"
281 depends on ARCH_TEGRA
282 depends on TEGRA_AHB
283 depends on TEGRA_MC
Hiroshi DOYU7a31f6f2011-11-17 07:31:31 +0200284 select IOMMU_API
285 help
Thierry Reding89184652014-04-16 09:24:44 +0200286 This driver supports the IOMMU hardware (SMMU) found on NVIDIA Tegra
Thierry Reding588c43a2015-03-23 10:45:12 +0100287 SoCs (Tegra30 up to Tegra210).
Hiroshi DOYU7a31f6f2011-11-17 07:31:31 +0200288
KyongHo Cho2a965362012-05-12 05:56:09 +0900289config EXYNOS_IOMMU
290 bool "Exynos IOMMU Support"
Marek Szyprowski740a01e2016-02-18 15:12:58 +0100291 depends on ARCH_EXYNOS && MMU
KyongHo Cho2a965362012-05-12 05:56:09 +0900292 select IOMMU_API
Tushar Behera4802c1d2014-07-04 15:01:08 +0530293 select ARM_DMA_USE_IOMMU
KyongHo Cho2a965362012-05-12 05:56:09 +0900294 help
Sachin Kamat5455d702014-05-22 09:50:55 +0530295 Support for the IOMMU (System MMU) of Samsung Exynos application
296 processor family. This enables H/W multimedia accelerators to see
297 non-linear physical memory chunks as linear memory in their
298 address space.
KyongHo Cho2a965362012-05-12 05:56:09 +0900299
300 If unsure, say N here.
301
302config EXYNOS_IOMMU_DEBUG
303 bool "Debugging log for Exynos IOMMU"
304 depends on EXYNOS_IOMMU
305 help
306 Select this to see the detailed log message that shows what
Sachin Kamat5455d702014-05-22 09:50:55 +0530307 happens in the IOMMU driver.
KyongHo Cho2a965362012-05-12 05:56:09 +0900308
Sachin Kamat5455d702014-05-22 09:50:55 +0530309 Say N unless you need kernel log message for IOMMU debugging.
KyongHo Cho2a965362012-05-12 05:56:09 +0900310
Laurent Pinchartd25a2a12014-04-02 12:47:37 +0200311config IPMMU_VMSA
312 bool "Renesas VMSA-compatible IPMMU"
313 depends on ARM_LPAE
Simon Horman9015ba42016-02-22 10:41:35 +0900314 depends on ARCH_RENESAS || COMPILE_TEST
Laurent Pinchartd25a2a12014-04-02 12:47:37 +0200315 select IOMMU_API
Laurent Pinchartf20ed392015-01-20 18:30:04 +0200316 select IOMMU_IO_PGTABLE_LPAE
Laurent Pinchartd25a2a12014-04-02 12:47:37 +0200317 select ARM_DMA_USE_IOMMU
318 help
319 Support for the Renesas VMSA-compatible IPMMU Renesas found in the
320 R-Mobile APE6 and R-Car H2/M2 SoCs.
321
322 If unsure, say N.
323
Alexey Kardashevskiy4e13c1a2013-05-21 13:33:09 +1000324config SPAPR_TCE_IOMMU
325 bool "sPAPR TCE IOMMU Support"
Alexey Kardashevskiy5b251992013-05-21 13:33:11 +1000326 depends on PPC_POWERNV || PPC_PSERIES
Alexey Kardashevskiy4e13c1a2013-05-21 13:33:09 +1000327 select IOMMU_API
328 help
329 Enables bits of IOMMU API required by VFIO. The iommu_ops
330 is not implemented as it is not necessary for VFIO.
331
Will Deacon48ec83b2015-05-27 17:25:59 +0100332# ARM IOMMU support
Will Deacon45ae7cf2013-06-24 18:31:25 +0100333config ARM_SMMU
334 bool "ARM Ltd. System MMU (SMMU) Support"
Joerg Roedela20cc762015-02-04 16:53:44 +0100335 depends on (ARM64 || ARM) && MMU
Will Deacon45ae7cf2013-06-24 18:31:25 +0100336 select IOMMU_API
Will Deacon518f7132014-11-14 17:17:54 +0000337 select IOMMU_IO_PGTABLE_LPAE
Will Deacon45ae7cf2013-06-24 18:31:25 +0100338 select ARM_DMA_USE_IOMMU if ARM
Mitchel Humpherys36e82822014-08-12 15:27:37 -0700339 select ARM64_DMA_USE_IOMMU if ARM64
Will Deacon45ae7cf2013-06-24 18:31:25 +0100340 help
341 Support for implementations of the ARM System MMU architecture
Will Deacon518f7132014-11-14 17:17:54 +0000342 versions 1 and 2.
Will Deacon45ae7cf2013-06-24 18:31:25 +0100343
344 Say Y here if your SoC includes an IOMMU device implementing
345 the ARM SMMU architecture.
346
Will Deacon48ec83b2015-05-27 17:25:59 +0100347config ARM_SMMU_V3
348 bool "ARM Ltd. System MMU Version 3 (SMMUv3) Support"
Robin Murphy08d4ca22016-09-12 17:13:46 +0100349 depends on ARM64
Will Deacon48ec83b2015-05-27 17:25:59 +0100350 select IOMMU_API
351 select IOMMU_IO_PGTABLE_LPAE
Marc Zyngier166bdbd2015-10-13 18:32:30 +0100352 select GENERIC_MSI_IRQ_DOMAIN
Will Deacon48ec83b2015-05-27 17:25:59 +0100353 help
354 Support for implementations of the ARM System MMU architecture
355 version 3 providing translation support to a PCIe root complex.
356
357 Say Y here if your system includes an IOMMU device implementing
358 the ARM SMMUv3 architecture.
359
Laura Abbott29defcc2014-08-01 16:13:40 -0700360config QCOM_LAZY_MAPPING
361 bool "Reference counted iommu-mapping support"
362 depends on ION_MSM
363 depends on IOMMU_API
364 help
365 ION buffers may be shared between several software clients.
366 Reference counting the mapping may simplify coordination between
367 these clients, and decrease latency by preventing multiple
368 map/unmaps of the same region.
369
370 If unsure, say N here.
371
Gerald Schaefer8128f232015-08-27 15:33:03 +0200372config S390_IOMMU
373 def_bool y if S390 && PCI
374 depends on S390 && PCI
375 select IOMMU_API
376 help
377 Support for the IOMMU API for s390 PCI devices.
378
Yong Wu0df4fab2016-02-23 01:20:50 +0800379config MTK_IOMMU
380 bool "MTK IOMMU Support"
381 depends on ARM || ARM64
382 depends on ARCH_MEDIATEK || COMPILE_TEST
Arnd Bergmann19288322016-02-29 10:19:06 +0100383 select ARM_DMA_USE_IOMMU
Yong Wu0df4fab2016-02-23 01:20:50 +0800384 select IOMMU_API
385 select IOMMU_DMA
386 select IOMMU_IO_PGTABLE_ARMV7S
387 select MEMORY
388 select MTK_SMI
389 help
390 Support for the M4U on certain Mediatek SOCs. M4U is MultiMedia
391 Memory Management Unit. This option enables remapping of DMA memory
392 accesses for the multimedia subsystem.
393
394 If unsure, say N here.
395
Honghui Zhangb17336c2016-06-08 17:51:00 +0800396config MTK_IOMMU_V1
397 bool "MTK IOMMU Version 1 (M4U gen1) Support"
398 depends on ARM
399 depends on ARCH_MEDIATEK || COMPILE_TEST
400 select ARM_DMA_USE_IOMMU
401 select IOMMU_API
402 select MEMORY
403 select MTK_SMI
404 select COMMON_CLK_MT2701_MMSYS
405 select COMMON_CLK_MT2701_IMGSYS
406 select COMMON_CLK_MT2701_VDECSYS
407 help
408 Support for the M4U on certain Mediatek SoCs. M4U generation 1 HW is
409 Multimedia Memory Managememt Unit. This option enables remapping of
410 DMA memory accesses for the multimedia subsystem.
411
412 if unsure, say N here.
413
Mitchel Humpherys42296fb2015-06-23 16:29:16 -0700414menuconfig IOMMU_DEBUG
415 bool "IOMMU Profiling and Debugging"
416 help
417 Makes available some additional IOMMU profiling and debugging
418 options.
419
420if IOMMU_DEBUG
421
422config IOMMU_DEBUG_TRACKING
423 bool "Track key IOMMU events"
424 select IOMMU_API
425 help
426 Enables additional debug tracking in the IOMMU framework code.
427 Tracking information and tests can be accessed through various
428 debugfs files.
429
430 Say Y here if you need to debug IOMMU issues and are okay with
431 the performance penalty of the tracking.
432
433config IOMMU_TESTS
434 bool "Interactive IOMMU performance/functional tests"
435 select IOMMU_API
436 help
437 Enables a suite of IOMMU unit tests. The tests are runnable
438 through debugfs. Unlike the IOMMU_DEBUG_TRACKING option, the
439 impact of enabling this option to overal system performance
440 should be minimal.
441
442endif # IOMMU_DEBUG
443
Ohad Ben-Cohenab493a02011-06-02 02:48:05 +0300444endif # IOMMU_SUPPORT