linux_dsm_epyc7002/arch/x86/pci
Bjorn Helgaas afcf21c2be x86/PCI: Add x86_pci_root_bus_node() to look up NUMA node from PCI bus
The AMD early_fill_mp_bus_info() already allocates a struct pci_root_info
for each PCI host bridge it finds, and that structure contains the NUMA
node number.  We don't need to keep the same information in the
mp_bus_to_node[] table.

This adds x86_pci_root_bus_node(), which returns the NUMA node number, or
NUMA_NO_NODE if the node is unknown.

Note that unlike get_mp_bus_to_node(), x86_pci_root_bus_node() only works
for root buses.  For example, if amd_bus.c finds a host bridge on node 1 to
[bus 00-0f], get_mp_bus_to_node() returns 1 for any bus between 00 and 0f,
but x86_pci_root_bus_node() returns 1 for bus 00 and NUMA_NO_NODE for buses
01-0f.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-02-03 10:38:35 -07:00
..
acpi.c ACPI / driver core: Store an ACPI device pointer in struct acpi_dev_node 2013-11-14 23:14:43 +01:00
amd_bus.c x86: delete __cpuinit usage from all x86 files 2013-07-14 19:36:56 -04:00
broadcom_bus.c x86/PCI: dynamically allocate pci_root_info for native host bridge drivers 2012-04-30 14:52:43 -06:00
bus_numa.c x86/PCI: Add x86_pci_root_bus_node() to look up NUMA node from PCI bus 2014-02-03 10:38:35 -07:00
bus_numa.h x86/PCI: put busn resource in pci_root_info for native host bridge drivers 2012-06-13 15:42:24 -06:00
ce4100.c x86/ce4100: Fix PCI configuration register access for devices without interrupts 2012-10-30 10:16:47 +01:00
common.c x86/PCI: Drop return value of pcibios_scan_root() 2014-02-03 10:38:29 -07:00
direct.c x86: constify PCI raw ops structures 2011-10-14 09:05:28 -07:00
early.c x86/PCI: remove early PCI pr_debug statements 2009-11-24 15:25:19 -08:00
fixup.c x86/PCI: Use pcibios_scan_root() instead of pci_scan_bus_with_sysdata() 2014-02-03 10:38:11 -07:00
i386.c x86 / PCI: prevent re-allocation of already existing bridge and ROM resources 2013-07-23 03:55:56 +02:00
init.c x86, olpc: Use pci subarch init for OLPC 2010-02-25 19:26:23 -08:00
intel_mid_pci.c x86, intel-mid: Add Merrifield platform support 2014-01-15 14:38:58 -08:00
irq.c x86/PCI: Drop return value of pcibios_scan_root() 2014-02-03 10:38:29 -07:00
legacy.c x86/PCI: Use pcibios_scan_root() instead of pci_scan_bus_on_node() 2014-02-03 10:38:18 -07:00
Makefile intel_mid: Renamed *mrst* to *intel_mid* 2013-10-17 16:40:36 -07:00
mmconfig_32.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
mmconfig_64.c X86: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
mmconfig-shared.c SFI / ACPI: Fix warnings reported during builds with W=1 2013-12-07 01:24:33 +01:00
numachip.c x86/PCI: Add NumaChip remote PCI support 2012-12-07 14:24:32 -07:00
numaq_32.c x86/PCI: Use pcibios_scan_root() instead of pci_scan_bus_with_sysdata() 2014-02-03 10:38:11 -07:00
olpc.c x86: constify PCI raw ops structures 2011-10-14 09:05:28 -07:00
pcbios.c X86: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
sta2x11-fixup.c x86, platform: Initial support for sta2x11 I/O hub 2012-04-12 11:10:30 -07:00
visws.c x86/PCI: Use pcibios_scan_root() instead of pci_scan_bus_with_sysdata() 2014-02-03 10:38:11 -07:00
xen.c PCI: Drop "irq" param from *_restore_msi_irqs() 2013-12-13 08:44:30 -07:00