Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-29 Thread Arnd Bergmann
On Sunday 28 September 2014 16:16:21 Suravee Suthikulpanit wrote: > > > > I'm not opposed to it, but I have the same question as for setting up > > the domain: how does pci_scan_root_bus() learn what to assign to > > bus->msi? It currently only gets a "void *sysdata" so there's no > > obvious

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-29 Thread Arnd Bergmann
On Sunday 28 September 2014 16:16:21 Suravee Suthikulpanit wrote: I'm not opposed to it, but I have the same question as for setting up the domain: how does pci_scan_root_bus() learn what to assign to bus-msi? It currently only gets a void *sysdata so there's no obvious place to put it

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-28 Thread Suravee Suthikulpanit
On 09/23/2014 08:41 PM, Bjorn Helgaas wrote: On Tue, Sep 23, 2014 at 7:18 PM, Liviu Dudau wrote: On Tue, Sep 23, 2014 at 08:01:12PM +0100, Liviu Dudau wrote: If the firmware has not assigned all the bus resources and we are not just probing the PCIe busses, it makes sense to assign the

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-28 Thread Suravee Suthikulpanit
On 09/23/2014 08:41 PM, Bjorn Helgaas wrote: On Tue, Sep 23, 2014 at 7:18 PM, Liviu Dudau li...@dudau.co.uk wrote: On Tue, Sep 23, 2014 at 08:01:12PM +0100, Liviu Dudau wrote: If the firmware has not assigned all the bus resources and we are not just probing the PCIe busses, it makes sense to

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Liviu Dudau
On Tue, Sep 23, 2014 at 07:41:35PM -0600, Bjorn Helgaas wrote: > On Tue, Sep 23, 2014 at 7:18 PM, Liviu Dudau wrote: > > On Tue, Sep 23, 2014 at 08:01:12PM +0100, Liviu Dudau wrote: > >> If the firmware has not assigned all the bus resources and > >> we are not just probing the PCIe busses, it

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Bjorn Helgaas
On Tue, Sep 23, 2014 at 7:18 PM, Liviu Dudau wrote: > On Tue, Sep 23, 2014 at 08:01:12PM +0100, Liviu Dudau wrote: >> If the firmware has not assigned all the bus resources and >> we are not just probing the PCIe busses, it makes sense to >> assign the unassigned resources in pci_scan_root_bus().

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Liviu Dudau
On Tue, Sep 23, 2014 at 08:01:12PM +0100, Liviu Dudau wrote: > If the firmware has not assigned all the bus resources and > we are not just probing the PCIe busses, it makes sense to > assign the unassigned resources in pci_scan_root_bus(). > > Cc: Bjorn Helgaas > Cc: Arnd Bergmann > Cc: Jason

[PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Liviu Dudau
If the firmware has not assigned all the bus resources and we are not just probing the PCIe busses, it makes sense to assign the unassigned resources in pci_scan_root_bus(). Cc: Bjorn Helgaas Cc: Arnd Bergmann Cc: Jason Gunthorpe Cc: Rob Herring Signed-off-by: Liviu Dudau ---

[PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Liviu Dudau
If the firmware has not assigned all the bus resources and we are not just probing the PCIe busses, it makes sense to assign the unassigned resources in pci_scan_root_bus(). Cc: Bjorn Helgaas bhelg...@google.com Cc: Arnd Bergmann a...@arndb.de Cc: Jason Gunthorpe jguntho...@obsidianresearch.com

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Liviu Dudau
On Tue, Sep 23, 2014 at 08:01:12PM +0100, Liviu Dudau wrote: If the firmware has not assigned all the bus resources and we are not just probing the PCIe busses, it makes sense to assign the unassigned resources in pci_scan_root_bus(). Cc: Bjorn Helgaas bhelg...@google.com Cc: Arnd Bergmann

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Bjorn Helgaas
On Tue, Sep 23, 2014 at 7:18 PM, Liviu Dudau li...@dudau.co.uk wrote: On Tue, Sep 23, 2014 at 08:01:12PM +0100, Liviu Dudau wrote: If the firmware has not assigned all the bus resources and we are not just probing the PCIe busses, it makes sense to assign the unassigned resources in

Re: [PATCH v12 10/12] PCI: Assign unassigned bus resources in pci_scan_root_bus()

2014-09-23 Thread Liviu Dudau
On Tue, Sep 23, 2014 at 07:41:35PM -0600, Bjorn Helgaas wrote: On Tue, Sep 23, 2014 at 7:18 PM, Liviu Dudau li...@dudau.co.uk wrote: On Tue, Sep 23, 2014 at 08:01:12PM +0100, Liviu Dudau wrote: If the firmware has not assigned all the bus resources and we are not just probing the PCIe