mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
msm: pcie: add support to update MPS for all child PCI devices
Update Max Payload size (MPS) for all child PCI devices of RC. Child PCI devices will have their MPS scaled to at most RC MPS. Configuring all child PCI devices with the largest MPS possible will help improve overall PCIe link bandwidth performance. Change-Id: I871b49a5ec07d020a445a59f622ceec6061dfc26 Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
parent
5b9483c75b
commit
b96fd565f8
1 changed files with 4 additions and 1 deletions
|
|
@ -4848,7 +4848,7 @@ int msm_pcie_enumerate(u32 rc_idx)
|
|||
struct pci_dev *pcidev = NULL;
|
||||
struct pci_host_bridge *bridge;
|
||||
bool found = false;
|
||||
struct pci_bus *bus;
|
||||
struct pci_bus *bus, *child;
|
||||
resource_size_t iobase = 0;
|
||||
u32 ids, vendor_id, device_id;
|
||||
LIST_HEAD(res);
|
||||
|
|
@ -4930,6 +4930,9 @@ int msm_pcie_enumerate(u32 rc_idx)
|
|||
bus = bridge->bus;
|
||||
|
||||
pci_assign_unassigned_bus_resources(bus);
|
||||
list_for_each_entry(child, &bus->children, node)
|
||||
pcie_bus_configure_settings(child);
|
||||
|
||||
pci_bus_add_devices(bus);
|
||||
|
||||
dev->enumerated = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue