Commit bb36c44557a4fcbaa17c0f2776e12a05a691b432

Authored by Benjamin Herrenschmidt
1 parent d12b524f8b

powerpc/pci: Don't configure PCIe settings when PCI_PROBE_ONLY is set

We don't want to configure PCI Express Max Payload Size or
Max Read Request Size on systems that set that flag. The
firmware will have done it for us, and under hypervisors such
as pHyp we don't even see the parent switches and bridges and
thus can make no assumption on what values are safe to use.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/powerpc/kernel/pci-common.c
... ... @@ -1732,7 +1732,7 @@
1732 1732 hose->last_busno = bus->subordinate = pci_scan_child_bus(bus);
1733 1733  
1734 1734 /* Configure PCI Express settings */
1735   - if (bus) {
  1735 + if (bus && !pci_has_flag(PCI_PROBE_ONLY)) {
1736 1736 struct pci_bus *child;
1737 1737 list_for_each_entry(child, &bus->children, node) {
1738 1738 struct pci_dev *self = child->self;