Kconfig 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 IRQ_MSI_LIB
  11. select MMU_NOTIFIER
  12. select IOMMU_API
  13. select IOMMU_IOVA
  14. select IOMMU_SVA
  15. select IOMMU_IOPF
  16. select IOMMUFD_DRIVER if IOMMUFD
  17. select GENERIC_PT
  18. select IOMMU_PT
  19. select IOMMU_PT_AMDV1
  20. select IOMMU_PT_X86_64
  21. depends on X86_64 && PCI && ACPI && HAVE_CMPXCHG_DOUBLE
  22. help
  23. With this option you can enable support for AMD IOMMU hardware in
  24. your system. An IOMMU is a hardware component which provides
  25. remapping of DMA memory accesses from devices. With an AMD IOMMU you
  26. can isolate the DMA memory of different devices and protect the
  27. system from misbehaving device drivers or hardware.
  28. You can find out if your system has an AMD IOMMU if you look into
  29. your BIOS for an option to enable it or if you have an IVRS ACPI
  30. table.
  31. config AMD_IOMMU_IOMMUFD
  32. bool "Enable IOMMUFD features for AMD IOMMU (EXPERIMENTAL)"
  33. depends on IOMMUFD
  34. depends on AMD_IOMMU
  35. help
  36. Support for IOMMUFD features intended to support virtual machines
  37. with accelerated virtual IOMMUs.
  38. Say Y here if you are doing development and testing on this feature.
  39. config AMD_IOMMU_DEBUGFS
  40. bool "Enable AMD IOMMU internals in DebugFS"
  41. depends on AMD_IOMMU && IOMMU_DEBUGFS
  42. help
  43. !!!WARNING!!! !!!WARNING!!! !!!WARNING!!! !!!WARNING!!!
  44. DO NOT ENABLE THIS OPTION UNLESS YOU REALLY, -REALLY- KNOW WHAT YOU ARE DOING!!!
  45. Exposes AMD IOMMU device internals in DebugFS.
  46. This option is -NOT- intended for production environments, and should
  47. not generally be enabled.