1cbe94c6eSJerry Snitselaar# SPDX-License-Identifier: GPL-2.0-only 2cbe94c6eSJerry Snitselaar# AMD IOMMU support 3cbe94c6eSJerry Snitselaarconfig AMD_IOMMU 4cbe94c6eSJerry Snitselaar bool "AMD IOMMU support" 5cbe94c6eSJerry Snitselaar select SWIOTLB 6cbe94c6eSJerry Snitselaar select PCI_MSI 7cbe94c6eSJerry Snitselaar select PCI_ATS 8cbe94c6eSJerry Snitselaar select PCI_PRI 9cbe94c6eSJerry Snitselaar select PCI_PASID 10*bbe1e78aSAndy Shevchenko select MMU_NOTIFIER 11cbe94c6eSJerry Snitselaar select IOMMU_API 12cbe94c6eSJerry Snitselaar select IOMMU_IOVA 13c9b258c6SSuravee Suthikulpanit select IOMMU_IO_PGTABLE 141af95763SVasant Hegde select IOMMU_SVA 15c4cb2311SVasant Hegde select IOMMU_IOPF 16421a511aSJoao Martins select IOMMUFD_DRIVER if IOMMUFD 17e52d58d5SSuravee Suthikulpanit depends on X86_64 && PCI && ACPI && HAVE_CMPXCHG_DOUBLE 18cbe94c6eSJerry Snitselaar help 19cbe94c6eSJerry Snitselaar With this option you can enable support for AMD IOMMU hardware in 20cbe94c6eSJerry Snitselaar your system. An IOMMU is a hardware component which provides 21cbe94c6eSJerry Snitselaar remapping of DMA memory accesses from devices. With an AMD IOMMU you 22cbe94c6eSJerry Snitselaar can isolate the DMA memory of different devices and protect the 23cbe94c6eSJerry Snitselaar system from misbehaving device drivers or hardware. 24cbe94c6eSJerry Snitselaar 25cbe94c6eSJerry Snitselaar You can find out if your system has an AMD IOMMU if you look into 26cbe94c6eSJerry Snitselaar your BIOS for an option to enable it or if you have an IVRS ACPI 27cbe94c6eSJerry Snitselaar table. 28cbe94c6eSJerry Snitselaar 29cbe94c6eSJerry Snitselaarconfig AMD_IOMMU_DEBUGFS 30cbe94c6eSJerry Snitselaar bool "Enable AMD IOMMU internals in DebugFS" 31cbe94c6eSJerry Snitselaar depends on AMD_IOMMU && IOMMU_DEBUGFS 32cbe94c6eSJerry Snitselaar help 33cbe94c6eSJerry Snitselaar !!!WARNING!!! !!!WARNING!!! !!!WARNING!!! !!!WARNING!!! 34cbe94c6eSJerry Snitselaar 35cbe94c6eSJerry Snitselaar DO NOT ENABLE THIS OPTION UNLESS YOU REALLY, -REALLY- KNOW WHAT YOU ARE DOING!!! 36cbe94c6eSJerry Snitselaar Exposes AMD IOMMU device internals in DebugFS. 37cbe94c6eSJerry Snitselaar 38cbe94c6eSJerry Snitselaar This option is -NOT- intended for production environments, and should 39cbe94c6eSJerry Snitselaar not generally be enabled. 40