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