Kconfig 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. # AMD IOMMU support
  3. config AMD_IOMMU
  4. bool "AMD IOMMU support"
  5. select SWIOTLB
  6. select PCI_MSI
  7. select PCI_ATS
  8. select PCI_PRI
  9. select PCI_PASID
  10. select IOMMU_API
  11. select IOMMU_IOVA
  12. select IOMMU_DMA
  13. depends on X86_64 && PCI && ACPI && HAVE_CMPXCHG_DOUBLE
  14. help
  15. With this option you can enable support for AMD IOMMU hardware in
  16. your system. An IOMMU is a hardware component which provides
  17. remapping of DMA memory accesses from devices. With an AMD IOMMU you
  18. can isolate the DMA memory of different devices and protect the
  19. system from misbehaving device drivers or hardware.
  20. You can find out if your system has an AMD IOMMU if you look into
  21. your BIOS for an option to enable it or if you have an IVRS ACPI
  22. table.
  23. config AMD_IOMMU_V2
  24. tristate "AMD IOMMU Version 2 driver"
  25. depends on AMD_IOMMU
  26. select MMU_NOTIFIER
  27. help
  28. This option enables support for the AMD IOMMUv2 features of the IOMMU
  29. hardware. Select this option if you want to use devices that support
  30. the PCI PRI and PASID interface.
  31. config AMD_IOMMU_DEBUGFS
  32. bool "Enable AMD IOMMU internals in DebugFS"
  33. depends on AMD_IOMMU && IOMMU_DEBUGFS
  34. help
  35. !!!WARNING!!! !!!WARNING!!! !!!WARNING!!! !!!WARNING!!!
  36. DO NOT ENABLE THIS OPTION UNLESS YOU REALLY, -REALLY- KNOW WHAT YOU ARE DOING!!!
  37. Exposes AMD IOMMU device internals in DebugFS.
  38. This option is -NOT- intended for production environments, and should
  39. not generally be enabled.