Kconfig 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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
  54. bool "Support for DMA Remapping Devices"
  55. depends on PCI_MSI && ACPI && (X86 || IA64_GENERIC)
  56. select IOMMU_API
  57. help
  58. DMA remapping (DMAR) devices support enables independent address
  59. translations for Direct Memory Access (DMA) from devices.
  60. These DMA remapping devices are reported via ACPI tables
  61. and include PCI device scope covered by these DMA
  62. remapping devices.
  63. config DMAR_DEFAULT_ON
  64. def_bool y
  65. prompt "Enable DMA Remapping Devices by default"
  66. depends on DMAR
  67. help
  68. Selecting this option will enable a DMAR device at boot time if
  69. one is found. If this option is not selected, DMAR support can
  70. be enabled by passing intel_iommu=on to the kernel.
  71. config DMAR_BROKEN_GFX_WA
  72. bool "Workaround broken graphics drivers (going away soon)"
  73. depends on DMAR && BROKEN && X86
  74. ---help---
  75. Current Graphics drivers tend to use physical address
  76. for DMA and avoid using DMA APIs. Setting this config
  77. option permits the IOMMU driver to set a unity map for
  78. all the OS-visible memory. Hence the driver can continue
  79. to use physical addresses for DMA, at least until this
  80. option is removed in the 2.6.32 kernel.
  81. config DMAR_FLOPPY_WA
  82. def_bool y
  83. depends on DMAR && X86
  84. ---help---
  85. Floppy disk drivers are known to bypass DMA API calls
  86. thereby failing to work when IOMMU is enabled. This
  87. workaround will setup a 1:1 mapping for the first
  88. 16MiB to make floppy (an ISA device) work.
  89. config INTR_REMAP
  90. bool "Support for Interrupt Remapping (EXPERIMENTAL)"
  91. depends on X86_64 && X86_IO_APIC && PCI_MSI && ACPI && EXPERIMENTAL
  92. ---help---
  93. Supports Interrupt remapping for IO-APIC and MSI devices.
  94. To use x2apic mode in the CPU's which support x2APIC enhancements or
  95. to support platforms with CPU's having > 8 bit APIC ID, say Y.
  96. endif # IOMMU_SUPPORT