Kconfig 5.8 KB

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