aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2016-10-04 13:26:37 -0400
committerBjorn Helgaas <bhelgaas@google.com>2016-10-04 13:26:37 -0400
commit181ffd19cc9898f795646bf9a897072a419a51ed (patch)
tree592e2f680a5e616ed467649930f681b3edf4585a
parentee6ee49fd09fa17c92aadf07961d0ff406fceab8 (diff)
x86/PCI: VMD: Move VMD driver to drivers/pci/host
Move the driver source and Kconfig to the PCI host bridge drivers directory and move the config option to a more appropriate sub-menu instead of occupying the top-level location. Update the Kconfig option with the X86_64 dependency that was implicitly included from the previous location, and add information about the module name when built as a loadable module. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Jon Derrick <jonathan.derrick@intel.com>
-rw-r--r--arch/x86/Kconfig13
-rw-r--r--arch/x86/pci/Makefile2
-rw-r--r--drivers/pci/host/Kconfig16
-rw-r--r--drivers/pci/host/Makefile1
-rw-r--r--drivers/pci/host/vmd.c (renamed from arch/x86/pci/vmd.c)0
5 files changed, 17 insertions, 15 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 5c6e7471b732..c32083808f27 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2744,19 +2744,6 @@ config PMC_ATOM
2744 def_bool y 2744 def_bool y
2745 depends on PCI 2745 depends on PCI
2746 2746
2747config VMD
2748 depends on PCI_MSI
2749 tristate "Volume Management Device Driver"
2750 default N
2751 ---help---
2752 Adds support for the Intel Volume Management Device (VMD). VMD is a
2753 secondary PCI host bridge that allows PCI Express root ports,
2754 and devices attached to them, to be removed from the default
2755 PCI domain and placed within the VMD domain. This provides
2756 more bus resources than are otherwise possible with a
2757 single domain. If you know your system provides one of these and
2758 has devices attached to it, say Y; if you are not sure, say N.
2759
2760source "net/Kconfig" 2747source "net/Kconfig"
2761 2748
2762source "drivers/Kconfig" 2749source "drivers/Kconfig"
diff --git a/arch/x86/pci/Makefile b/arch/x86/pci/Makefile
index 97062a635b77..5c6fc3577a49 100644
--- a/arch/x86/pci/Makefile
+++ b/arch/x86/pci/Makefile
@@ -23,8 +23,6 @@ obj-y += bus_numa.o
23obj-$(CONFIG_AMD_NB) += amd_bus.o 23obj-$(CONFIG_AMD_NB) += amd_bus.o
24obj-$(CONFIG_PCI_CNB20LE_QUIRK) += broadcom_bus.o 24obj-$(CONFIG_PCI_CNB20LE_QUIRK) += broadcom_bus.o
25 25
26obj-$(CONFIG_VMD) += vmd.o
27
28ifeq ($(CONFIG_PCI_DEBUG),y) 26ifeq ($(CONFIG_PCI_DEBUG),y)
29EXTRA_CFLAGS += -DDEBUG 27EXTRA_CFLAGS += -DDEBUG
30endif 28endif
diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
index 9b485d873b0d..93865eb2c4c8 100644
--- a/drivers/pci/host/Kconfig
+++ b/drivers/pci/host/Kconfig
@@ -274,4 +274,20 @@ config PCIE_ARTPEC6
274 Say Y here to enable PCIe controller support on Axis ARTPEC-6 274 Say Y here to enable PCIe controller support on Axis ARTPEC-6
275 SoCs. This PCIe controller uses the DesignWare core. 275 SoCs. This PCIe controller uses the DesignWare core.
276 276
277config VMD
278 depends on PCI_MSI && X86_64
279 tristate "Intel Volume Management Device Driver"
280 default N
281 ---help---
282 Adds support for the Intel Volume Management Device (VMD). VMD is a
283 secondary PCI host bridge that allows PCI Express root ports,
284 and devices attached to them, to be removed from the default
285 PCI domain and placed within the VMD domain. This provides
286 more bus resources than are otherwise possible with a
287 single domain. If you know your system provides one of these and
288 has devices attached to it, say Y; if you are not sure, say N.
289
290 To compile this driver as a module, choose M here: the
291 module will be called vmd.
292
277endmenu 293endmenu
diff --git a/drivers/pci/host/Makefile b/drivers/pci/host/Makefile
index 88434101e4c4..afea1c61e45a 100644
--- a/drivers/pci/host/Makefile
+++ b/drivers/pci/host/Makefile
@@ -31,3 +31,4 @@ obj-$(CONFIG_PCI_HOST_THUNDER_ECAM) += pci-thunder-ecam.o
31obj-$(CONFIG_PCI_HOST_THUNDER_PEM) += pci-thunder-pem.o 31obj-$(CONFIG_PCI_HOST_THUNDER_PEM) += pci-thunder-pem.o
32obj-$(CONFIG_PCIE_ARMADA_8K) += pcie-armada8k.o 32obj-$(CONFIG_PCIE_ARMADA_8K) += pcie-armada8k.o
33obj-$(CONFIG_PCIE_ARTPEC6) += pcie-artpec6.o 33obj-$(CONFIG_PCIE_ARTPEC6) += pcie-artpec6.o
34obj-$(CONFIG_VMD) += vmd.o
diff --git a/arch/x86/pci/vmd.c b/drivers/pci/host/vmd.c
index 57058520f219..57058520f219 100644
--- a/arch/x86/pci/vmd.c
+++ b/drivers/pci/host/vmd.c