summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2019-11-28 08:54:30 -0600
committerBjorn Helgaas <bhelgaas@google.com>2019-11-28 08:54:30 -0600
commit093b9062adc14f1a0ad53629a53c9d06eed3c65e (patch)
treeb3fcb67f1c851cc8b50a91e81b7b9a5c31329df1
parentabd05c97f9711a4baa8cd43832893b8df45d459e (diff)
parentad5086108b9f0361929aa9a79cf959ab5681d249 (diff)
downloadlinux-093b9062adc14f1a0ad53629a53c9d06eed3c65e.tar.bz2
Merge branch 'pci/enumeration'
- Warn if a host bridge has no NUMA info (Yunsheng Lin) * pci/enumeration: PCI: Warn if no host bridge NUMA node info
-rw-r--r--drivers/pci/probe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 3d5271a7a849..40259c38d66a 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -897,6 +897,9 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge)
else
pr_info("PCI host bridge to bus %s\n", name);
+ if (nr_node_ids > 1 && pcibus_to_node(bus) == NUMA_NO_NODE)
+ dev_warn(&bus->dev, "Unknown NUMA node; performance will be reduced\n");
+
/* Add initial resources to the bus */
resource_list_for_each_entry_safe(window, n, &resources) {
list_move_tail(&window->node, &bridge->windows);