diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2011-06-05 11:22:18 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-06-21 04:49:29 -0400 |
commit | 29b68415e335ba9e0eb6057f9405aa4d9c23efe4 (patch) | |
tree | 76d1a8990ab1e5db5f6860262cb52c186d477925 /drivers/iommu/Kconfig | |
parent | b10f127e1a4d8cac5414c6e2b152c205b66c9f16 (diff) |
x86: amd_iommu: move to drivers/iommu/
This should ease finding similarities with different platforms,
with the intention of solving problems once in a generic framework
which everyone can use.
Compile-tested on x86_64.
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/Kconfig')
-rw-r--r-- | drivers/iommu/Kconfig | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 21a80bfbdb52..9246c5bf25af 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig | |||
@@ -17,3 +17,32 @@ config MSM_IOMMU | |||
17 | config IOMMU_PGTABLES_L2 | 17 | config IOMMU_PGTABLES_L2 |
18 | def_bool y | 18 | def_bool y |
19 | depends on MSM_IOMMU && MMU && SMP && CPU_DCACHE_DISABLE=n | 19 | depends on MSM_IOMMU && MMU && SMP && CPU_DCACHE_DISABLE=n |
20 | |||
21 | # AMD IOMMU support | ||
22 | config AMD_IOMMU | ||
23 | bool "AMD IOMMU support" | ||
24 | select SWIOTLB | ||
25 | select PCI_MSI | ||
26 | select PCI_IOV | ||
27 | select IOMMU_API | ||
28 | depends on X86_64 && PCI && ACPI | ||
29 | ---help--- | ||
30 | With this option you can enable support for AMD IOMMU hardware in | ||
31 | your system. An IOMMU is a hardware component which provides | ||
32 | remapping of DMA memory accesses from devices. With an AMD IOMMU you | ||
33 | can isolate the the DMA memory of different devices and protect the | ||
34 | system from misbehaving device drivers or hardware. | ||
35 | |||
36 | You can find out if your system has an AMD IOMMU if you look into | ||
37 | your BIOS for an option to enable it or if you have an IVRS ACPI | ||
38 | table. | ||
39 | |||
40 | config AMD_IOMMU_STATS | ||
41 | bool "Export AMD IOMMU statistics to debugfs" | ||
42 | depends on AMD_IOMMU | ||
43 | select DEBUG_FS | ||
44 | ---help--- | ||
45 | This option enables code in the AMD IOMMU driver to collect various | ||
46 | statistics about whats happening in the driver and exports that | ||
47 | information to userspace via debugfs. | ||
48 | If unsure, say N. | ||