Kconfig 4.2 KB

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