xref: /linux/drivers/iommu/amd/Kconfig (revision 53564f400572b1b8d9ee5bafb9c226eb1d38600a)
1# SPDX-License-Identifier: GPL-2.0-only
2# AMD IOMMU support
3config 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_IO_PGTABLE
15	select IOMMU_SVA
16	select IOMMU_IOPF
17	select IOMMUFD_DRIVER if IOMMUFD
18	depends on X86_64 && PCI && ACPI && HAVE_CMPXCHG_DOUBLE
19	help
20	  With this option you can enable support for AMD IOMMU hardware in
21	  your system. An IOMMU is a hardware component which provides
22	  remapping of DMA memory accesses from devices. With an AMD IOMMU you
23	  can isolate the DMA memory of different devices and protect the
24	  system from misbehaving device drivers or hardware.
25
26	  You can find out if your system has an AMD IOMMU if you look into
27	  your BIOS for an option to enable it or if you have an IVRS ACPI
28	  table.
29
30config AMD_IOMMU_DEBUGFS
31	bool "Enable AMD IOMMU internals in DebugFS"
32	depends on AMD_IOMMU && IOMMU_DEBUGFS
33	help
34	  !!!WARNING!!!  !!!WARNING!!!  !!!WARNING!!!  !!!WARNING!!!
35
36	  DO NOT ENABLE THIS OPTION UNLESS YOU REALLY, -REALLY- KNOW WHAT YOU ARE DOING!!!
37	  Exposes AMD IOMMU device internals in DebugFS.
38
39	  This option is -NOT- intended for production environments, and should
40	  not generally be enabled.
41