Commit 1aaf118352b85bb359ce28070bcc478f659a7031

Authored by Joerg Roedel
1 parent fc2100eb4d

select IOMMU_API when DMAR and/or AMD_IOMMU is selected

These two IOMMUs can implement the current version of this API. So
select the API if one or both of these IOMMU drivers is selected.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

Showing 3 changed files with 7 additions and 0 deletions Side-by-side Diff

... ... @@ -687,4 +687,7 @@
687 687  
688 688 config IOMMU_HELPER
689 689 def_bool (IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB || IA64_GENERIC || SWIOTLB)
  690 +
  691 +config IOMMU_API
  692 + def_bool (DMAR)
... ... @@ -599,6 +599,9 @@
599 599 config IOMMU_HELPER
600 600 def_bool (CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU)
601 601  
  602 +config IOMMU_API
  603 + def_bool (AMD_IOMMU || DMAR)
  604 +
602 605 config MAXSMP
603 606 bool "Configure Maximum number of SMP Processors and NUMA Nodes"
604 607 depends on X86_64 && SMP && DEBUG_KERNEL && EXPERIMENTAL
drivers/base/Makefile
... ... @@ -11,6 +11,7 @@
11 11 obj-$(CONFIG_NUMA) += node.o
12 12 obj-$(CONFIG_MEMORY_HOTPLUG_SPARSE) += memory.o
13 13 obj-$(CONFIG_SMP) += topology.o
  14 +obj-$(CONFIG_IOMMU_API) += iommu.o
14 15 ifeq ($(CONFIG_SYSFS),y)
15 16 obj-$(CONFIG_MODULES) += module.o
16 17 endif