]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc64: Enable aggressive setting of PCIe MPS settings
authorchris hyser <chris.hyser@oracle.com>
Thu, 19 May 2016 20:05:47 +0000 (13:05 -0700)
committerAllen Pais <allen.pais@oracle.com>
Thu, 15 Sep 2016 06:34:29 +0000 (12:04 +0530)
This patch connects SPARC PCIe into the generic PCIe framework enabling
MPS and MRRS to be set aggressively subject to the standard command line
flags. To enable put "pci=pcie_bus_perf" on command line.

Orabug: 21149334

Signed-off-by: Chris Hyser <chris.hyser@oracle.com>
(cherry picked from commit 5e5b08ede2c5b6cbf39e20f91097ca2435ea286e)
(cherry picked from commit 8b9a1855f68978d437605b0267ba448399303511)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/pci.c

index 6ba977da17847b3b191f8f698eb5e7daeca2de97..553ea40b2913a67bd7ef6f7ab19c4d005814c0fb 100644 (file)
@@ -661,6 +661,7 @@ struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm,
        LIST_HEAD(resources);
        struct device_node *node = pbm->op->dev.of_node;
        struct pci_bus *bus;
+       struct pci_bus *child;
 
        printk("PCI: Scanning PBM %s\n", node->full_name);
 
@@ -690,6 +691,10 @@ struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm,
        pci_claim_bus_resources(bus);
        pci_register_legacy_regions(pbm);
        pci_bus_add_devices(bus);
+
+       list_for_each_entry(child, &bus->children, node)
+               pcie_bus_configure_settings(child);
+
        return bus;
 }