Message ID | 20200928010609.5375-4-jonathan.derrick@intel.com |
---|---|
State | New |
Headers | show |
Series | PCI: Minimizing resource assignment algorithm | expand |
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index fdc1a206f73e..4debc547c813 100644 --- a/drivers/pci/controller/vmd.c +++ b/drivers/pci/controller/vmd.c @@ -777,7 +777,7 @@ static int vmd_enable_domain(struct vmd_dev *vmd, unsigned long features) dev_set_msi_domain(&vmd->bus->dev, vmd->irq_domain); pci_scan_child_bus(vmd->bus); - pci_assign_unassigned_bus_resources(vmd->bus); + pci_bus_assign_resources_fallback_sizing(vmd->bus); /* * VMD root buses are virtual and don't return true on pci_is_pcie()
The VMD subdevice domain would prefer all devices be assigned resources and working rather than a few or none assigned, but with valid hotplug bridge resources. The resource assignment fallback algorithm works best for these requirements. Signed-off-by: Jon Derrick <jonathan.derrick@intel.com> --- drivers/pci/controller/vmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)