Kconfig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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 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. # Intel IOMMU support
  55. config DMAR_TABLE
  56. bool
  57. config INTEL_IOMMU
  58. bool "Support for Intel IOMMU using DMA Remapping Devices"
  59. depends on PCI_MSI && ACPI && (X86 || IA64_GENERIC)
  60. select IOMMU_API
  61. select DMAR_TABLE
  62. help
  63. DMA remapping (DMAR) devices support enables independent address
  64. translations for Direct Memory Access (DMA) from devices.
  65. These DMA remapping devices are reported via ACPI tables
  66. and include PCI device scope covered by these DMA
  67. remapping devices.
  68. config INTEL_IOMMU_DEFAULT_ON
  69. def_bool y
  70. prompt "Enable Intel DMA Remapping Devices by default"
  71. depends on INTEL_IOMMU
  72. help
  73. Selecting this option will enable a DMAR device at boot time if
  74. one is found. If this option is not selected, DMAR support can
  75. be enabled by passing intel_iommu=on to the kernel.
  76. config INTEL_IOMMU_BROKEN_GFX_WA
  77. bool "Workaround broken graphics drivers (going away soon)"
  78. depends on INTEL_IOMMU && BROKEN && X86
  79. ---help---
  80. Current Graphics drivers tend to use physical address
  81. for DMA and avoid using DMA APIs. Setting this config
  82. option permits the IOMMU driver to set a unity map for
  83. all the OS-visible memory. Hence the driver can continue
  84. to use physical addresses for DMA, at least until this
  85. option is removed in the 2.6.32 kernel.
  86. config INTEL_IOMMU_FLOPPY_WA
  87. def_bool y
  88. depends on INTEL_IOMMU && X86
  89. ---help---
  90. Floppy disk drivers are known to bypass DMA API calls
  91. thereby failing to work when IOMMU is enabled. This
  92. workaround will setup a 1:1 mapping for the first
  93. 16MiB to make floppy (an ISA device) work.
  94. config IRQ_REMAP
  95. bool "Support for Interrupt Remapping (EXPERIMENTAL)"
  96. depends on X86_64 && X86_IO_APIC && PCI_MSI && ACPI && EXPERIMENTAL
  97. select DMAR_TABLE
  98. ---help---
  99. Supports Interrupt remapping for IO-APIC and MSI devices.
  100. To use x2apic mode in the CPU's which support x2APIC enhancements or
  101. to support platforms with CPU's having > 8 bit APIC ID, say Y.
  102. # OMAP IOMMU support
  103. config OMAP_IOMMU
  104. bool "OMAP IOMMU Support"
  105. depends on ARCH_OMAP
  106. select IOMMU_API
  107. config OMAP_IOVMM
  108. tristate "OMAP IO Virtual Memory Manager Support"
  109. depends on OMAP_IOMMU
  110. config OMAP_IOMMU_DEBUG
  111. tristate "Export OMAP IOMMU/IOVMM internals in DebugFS"
  112. depends on OMAP_IOVMM && DEBUG_FS
  113. help
  114. Select this to see extensive information about
  115. the internal state of OMAP IOMMU/IOVMM in debugfs.
  116. Say N unless you know you need this.
  117. endif # IOMMU_SUPPORT