2008-07-02 20:50:19 +00:00
|
|
|
obj-y := i386.o init.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_PCI_BIOS) += pcbios.o
|
2008-07-02 20:50:27 +00:00
|
|
|
obj-$(CONFIG_PCI_MMCONFIG) += mmconfig_$(BITS).o direct.o mmconfig-shared.o
|
2008-07-02 20:50:19 +00:00
|
|
|
obj-$(CONFIG_PCI_DIRECT) += direct.o
|
|
|
|
obj-$(CONFIG_PCI_OLPC) += olpc.o
|
2010-03-18 20:31:34 +00:00
|
|
|
obj-$(CONFIG_PCI_XEN) += xen.o
|
2008-07-02 20:50:19 +00:00
|
|
|
|
2008-07-11 10:13:59 +00:00
|
|
|
obj-y += fixup.o
|
2010-11-09 20:08:05 +00:00
|
|
|
obj-$(CONFIG_X86_INTEL_CE) += ce4100.o
|
2008-07-11 10:13:59 +00:00
|
|
|
obj-$(CONFIG_ACPI) += acpi.o
|
|
|
|
obj-y += legacy.o irq.o
|
2008-07-02 20:50:19 +00:00
|
|
|
|
2012-04-04 17:40:21 +00:00
|
|
|
obj-$(CONFIG_STA2X11) += sta2x11-fixup.o
|
|
|
|
|
2012-12-07 21:24:32 +00:00
|
|
|
obj-$(CONFIG_X86_NUMACHIP) += numachip.o
|
2008-07-02 20:50:19 +00:00
|
|
|
|
2013-10-17 22:35:27 +00:00
|
|
|
obj-$(CONFIG_X86_INTEL_MID) += intel_mid_pci.o
|
2010-02-24 20:39:37 +00:00
|
|
|
|
2008-07-11 10:13:59 +00:00
|
|
|
obj-y += common.o early.o
|
2012-01-12 15:01:40 +00:00
|
|
|
obj-y += bus_numa.o
|
2009-10-14 16:27:42 +00:00
|
|
|
|
2012-01-12 15:01:40 +00:00
|
|
|
obj-$(CONFIG_AMD_NB) += amd_bus.o
|
2010-04-01 18:43:30 +00:00
|
|
|
obj-$(CONFIG_PCI_CNB20LE_QUIRK) += broadcom_bus.o
|
|
|
|
|
x86/PCI: Add driver for Intel Volume Management Device (VMD)
The Intel Volume Management Device (VMD) is a Root Complex Integrated
Endpoint that acts as a host bridge to a secondary PCIe domain. BIOS can
reassign one or more Root Ports to appear within a VMD domain instead of
the primary domain. The immediate benefit is that additional PCIe domains
allow more than 256 buses in a system by letting bus numbers be reused
across different domains.
VMD domains do not define ACPI _SEG, so to avoid domain clashing with host
bridges defining this segment, VMD domains start at 0x10000, which is
greater than the highest possible 16-bit ACPI defined _SEG.
This driver enumerates and enables the domain using the root bus
configuration interface provided by the PCI subsystem. The driver provides
configuration space accessor functions (pci_ops), bus and memory resources,
an MSI IRQ domain with irq_chip implementation, and DMA operations
necessary to use devices through the VMD endpoint's interface.
VMD routes I/O as follows:
1) Configuration Space: BAR 0 ("CFGBAR") of VMD provides the base
address and size for configuration space register access to VMD-owned
root ports. It works similarly to MMCONFIG for extended configuration
space. Bus numbering is independent and does not conflict with the
primary domain.
2) MMIO Space: BARs 2 and 4 ("MEMBAR1" and "MEMBAR2") of VMD provide the
base address, size, and type for MMIO register access. These addresses
are not translated by VMD hardware; they are simply reservations to be
distributed to root ports' memory base/limit registers and subdivided
among devices downstream.
3) DMA: To interact appropriately with an IOMMU, the source ID DMA read
and write requests are translated to the bus-device-function of the VMD
endpoint. Otherwise, DMA operates normally without VMD-specific address
translation.
4) Interrupts: Part of VMD's BAR 4 is reserved for VMD's MSI-X Table and
PBA. MSIs from VMD domain devices and ports are remapped to appear as
if they were issued using one of VMD's MSI-X table entries. Each MSI
and MSI-X address of VMD-owned devices and ports has a special format
where the address refers to specific entries in the VMD's MSI-X table.
As with DMA, the interrupt source ID is translated to VMD's
bus-device-function.
The driver provides its own MSI and MSI-X configuration functions
specific to how MSI messages are used within the VMD domain, and
provides an irq_chip for independent IRQ allocation to relay interrupts
from VMD's interrupt handler to the appropriate device driver's handler.
5) Errors: PCIe error message are intercepted by the root ports normally
(e.g., AER), except with VMD, system errors (i.e., firmware first) are
disabled by default. AER and hotplug interrupts are translated in the
same way as endpoint interrupts.
6) VMD does not support INTx interrupts or IO ports. Devices or drivers
requiring these features should either not be placed below VMD-owned
root ports, or VMD should be disabled by BIOS for such endpoints.
[bhelgaas: add VMD BAR #defines, factor out vmd_cfg_addr(), rework VMD
resource setup, whitespace, changelog]
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de> (IRQ-related parts)
2016-01-12 20:18:10 +00:00
|
|
|
obj-$(CONFIG_VMD) += vmd.o
|
|
|
|
|
2009-10-14 16:27:42 +00:00
|
|
|
ifeq ($(CONFIG_PCI_DEBUG),y)
|
|
|
|
EXTRA_CFLAGS += -DDEBUG
|
|
|
|
endif
|