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 10cbe94c6eSJerry Snitselaar select IOMMU_API 11cbe94c6eSJerry Snitselaar select IOMMU_IOVA 12*c9b258c6SSuravee Suthikulpanit select IOMMU_IO_PGTABLE 13e52d58d5SSuravee Suthikulpanit depends on X86_64 && PCI && ACPI && HAVE_CMPXCHG_DOUBLE 14cbe94c6eSJerry Snitselaar help 15cbe94c6eSJerry Snitselaar With this option you can enable support for AMD IOMMU hardware in 16cbe94c6eSJerry Snitselaar your system. An IOMMU is a hardware component which provides 17cbe94c6eSJerry Snitselaar remapping of DMA memory accesses from devices. With an AMD IOMMU you 18cbe94c6eSJerry Snitselaar can isolate the DMA memory of different devices and protect the 19cbe94c6eSJerry Snitselaar system from misbehaving device drivers or hardware. 20cbe94c6eSJerry Snitselaar 21cbe94c6eSJerry Snitselaar You can find out if your system has an AMD IOMMU if you look into 22cbe94c6eSJerry Snitselaar your BIOS for an option to enable it or if you have an IVRS ACPI 23cbe94c6eSJerry Snitselaar table. 24cbe94c6eSJerry Snitselaar 25cbe94c6eSJerry Snitselaarconfig AMD_IOMMU_V2 26cbe94c6eSJerry Snitselaar tristate "AMD IOMMU Version 2 driver" 27cbe94c6eSJerry Snitselaar depends on AMD_IOMMU 28cbe94c6eSJerry Snitselaar select MMU_NOTIFIER 29cbe94c6eSJerry Snitselaar help 30cbe94c6eSJerry Snitselaar This option enables support for the AMD IOMMUv2 features of the IOMMU 31cbe94c6eSJerry Snitselaar hardware. Select this option if you want to use devices that support 32cbe94c6eSJerry Snitselaar the PCI PRI and PASID interface. 33cbe94c6eSJerry Snitselaar 34cbe94c6eSJerry Snitselaarconfig AMD_IOMMU_DEBUGFS 35cbe94c6eSJerry Snitselaar bool "Enable AMD IOMMU internals in DebugFS" 36cbe94c6eSJerry Snitselaar depends on AMD_IOMMU && IOMMU_DEBUGFS 37cbe94c6eSJerry Snitselaar help 38cbe94c6eSJerry Snitselaar !!!WARNING!!! !!!WARNING!!! !!!WARNING!!! !!!WARNING!!! 39cbe94c6eSJerry Snitselaar 40cbe94c6eSJerry Snitselaar DO NOT ENABLE THIS OPTION UNLESS YOU REALLY, -REALLY- KNOW WHAT YOU ARE DOING!!! 41cbe94c6eSJerry Snitselaar Exposes AMD IOMMU device internals in DebugFS. 42cbe94c6eSJerry Snitselaar 43cbe94c6eSJerry Snitselaar This option is -NOT- intended for production environments, and should 44cbe94c6eSJerry Snitselaar not generally be enabled. 45