xref: /OK3568_Linux_fs/kernel/drivers/iommu/amd/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun# AMD IOMMU support
3*4882a593Smuzhiyunconfig AMD_IOMMU
4*4882a593Smuzhiyun	bool "AMD IOMMU support"
5*4882a593Smuzhiyun	select SWIOTLB
6*4882a593Smuzhiyun	select PCI_MSI
7*4882a593Smuzhiyun	select PCI_ATS
8*4882a593Smuzhiyun	select PCI_PRI
9*4882a593Smuzhiyun	select PCI_PASID
10*4882a593Smuzhiyun	select IOMMU_API
11*4882a593Smuzhiyun	select IOMMU_IOVA
12*4882a593Smuzhiyun	select IOMMU_DMA
13*4882a593Smuzhiyun	depends on X86_64 && PCI && ACPI && HAVE_CMPXCHG_DOUBLE
14*4882a593Smuzhiyun	help
15*4882a593Smuzhiyun	  With this option you can enable support for AMD IOMMU hardware in
16*4882a593Smuzhiyun	  your system. An IOMMU is a hardware component which provides
17*4882a593Smuzhiyun	  remapping of DMA memory accesses from devices. With an AMD IOMMU you
18*4882a593Smuzhiyun	  can isolate the DMA memory of different devices and protect the
19*4882a593Smuzhiyun	  system from misbehaving device drivers or hardware.
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun	  You can find out if your system has an AMD IOMMU if you look into
22*4882a593Smuzhiyun	  your BIOS for an option to enable it or if you have an IVRS ACPI
23*4882a593Smuzhiyun	  table.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunconfig AMD_IOMMU_V2
26*4882a593Smuzhiyun	tristate "AMD IOMMU Version 2 driver"
27*4882a593Smuzhiyun	depends on AMD_IOMMU
28*4882a593Smuzhiyun	select MMU_NOTIFIER
29*4882a593Smuzhiyun	help
30*4882a593Smuzhiyun	  This option enables support for the AMD IOMMUv2 features of the IOMMU
31*4882a593Smuzhiyun	  hardware. Select this option if you want to use devices that support
32*4882a593Smuzhiyun	  the PCI PRI and PASID interface.
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunconfig AMD_IOMMU_DEBUGFS
35*4882a593Smuzhiyun	bool "Enable AMD IOMMU internals in DebugFS"
36*4882a593Smuzhiyun	depends on AMD_IOMMU && IOMMU_DEBUGFS
37*4882a593Smuzhiyun	help
38*4882a593Smuzhiyun	  !!!WARNING!!!  !!!WARNING!!!  !!!WARNING!!!  !!!WARNING!!!
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun	  DO NOT ENABLE THIS OPTION UNLESS YOU REALLY, -REALLY- KNOW WHAT YOU ARE DOING!!!
41*4882a593Smuzhiyun	  Exposes AMD IOMMU device internals in DebugFS.
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun	  This option is -NOT- intended for production environments, and should
44*4882a593Smuzhiyun	  not generally be enabled.
45