Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-07-29 Thread Bjorn Helgaas
On Wed, Jun 10, 2015 at 12:58:15AM +0800, Jiang Liu wrote: > On 2015/6/10 0:12, Lorenzo Pieralisi wrote: > > On Mon, Jun 08, 2015 at 05:20:46PM +0100, Jiang Liu wrote: > >> +struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, > >> + struct

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-07-29 Thread Bjorn Helgaas
On Tue, Jun 09, 2015 at 12:20:46AM +0800, Jiang Liu wrote: > Introduce common interface acpi_pci_root_create() and related data > structures to create PCI root bus for ACPI PCI host bridges. It will > be used to kill duplicated arch specific code for IA64 and x86. It may > also help ARM64 in

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-07-29 Thread Bjorn Helgaas
On Wed, Jun 10, 2015 at 12:58:15AM +0800, Jiang Liu wrote: On 2015/6/10 0:12, Lorenzo Pieralisi wrote: On Mon, Jun 08, 2015 at 05:20:46PM +0100, Jiang Liu wrote: +struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, + struct acpi_pci_root_ops *ops,

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-07-29 Thread Bjorn Helgaas
On Tue, Jun 09, 2015 at 12:20:46AM +0800, Jiang Liu wrote: Introduce common interface acpi_pci_root_create() and related data structures to create PCI root bus for ACPI PCI host bridges. It will be used to kill duplicated arch specific code for IA64 and x86. It may also help ARM64 in future.

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-11 Thread Lorenzo Pieralisi
Hi Gerry, On Wed, Jun 10, 2015 at 06:19:13PM +0100, Jiang Liu wrote: > On 2015/6/11 0:48, Lorenzo Pieralisi wrote: > > On Tue, Jun 09, 2015 at 05:58:15PM +0100, Jiang Liu wrote: > >> On 2015/6/10 0:12, Lorenzo Pieralisi wrote: > > > > [...] > > > +struct pci_bus

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-11 Thread Lorenzo Pieralisi
Hi Gerry, On Wed, Jun 10, 2015 at 06:19:13PM +0100, Jiang Liu wrote: On 2015/6/11 0:48, Lorenzo Pieralisi wrote: On Tue, Jun 09, 2015 at 05:58:15PM +0100, Jiang Liu wrote: On 2015/6/10 0:12, Lorenzo Pieralisi wrote: [...] +struct pci_bus *acpi_pci_root_create(struct acpi_pci_root

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-10 Thread Jiang Liu
On 2015/6/11 0:48, Lorenzo Pieralisi wrote: > On Tue, Jun 09, 2015 at 05:58:15PM +0100, Jiang Liu wrote: >> On 2015/6/10 0:12, Lorenzo Pieralisi wrote: > > [...] > +struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, + struct acpi_pci_root_ops

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-10 Thread Lorenzo Pieralisi
On Tue, Jun 09, 2015 at 05:58:15PM +0100, Jiang Liu wrote: > On 2015/6/10 0:12, Lorenzo Pieralisi wrote: [...] > >> +struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, > >> + struct acpi_pci_root_ops *ops, > >> + struct

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-10 Thread Lorenzo Pieralisi
On Tue, Jun 09, 2015 at 05:58:15PM +0100, Jiang Liu wrote: On 2015/6/10 0:12, Lorenzo Pieralisi wrote: [...] +struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, + struct acpi_pci_root_ops *ops, + struct

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-10 Thread Jiang Liu
On 2015/6/11 0:48, Lorenzo Pieralisi wrote: On Tue, Jun 09, 2015 at 05:58:15PM +0100, Jiang Liu wrote: On 2015/6/10 0:12, Lorenzo Pieralisi wrote: [...] +struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, + struct acpi_pci_root_ops *ops, +

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-09 Thread Jiang Liu
On 2015/6/10 0:12, Lorenzo Pieralisi wrote: > On Mon, Jun 08, 2015 at 05:20:46PM +0100, Jiang Liu wrote: > > [...] > >> +static int acpi_pci_probe_root_resources(struct acpi_pci_root_info *info) >> +{ >> +int ret; >> +struct list_head *list = >resources; >> +struct acpi_device

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-09 Thread Lorenzo Pieralisi
On Mon, Jun 08, 2015 at 05:20:46PM +0100, Jiang Liu wrote: [...] > +static int acpi_pci_probe_root_resources(struct acpi_pci_root_info *info) > +{ > + int ret; > + struct list_head *list = >resources; > + struct acpi_device *device = info->bridge; > + struct resource_entry

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-09 Thread Lorenzo Pieralisi
On Mon, Jun 08, 2015 at 05:20:46PM +0100, Jiang Liu wrote: [...] +static int acpi_pci_probe_root_resources(struct acpi_pci_root_info *info) +{ + int ret; + struct list_head *list = info-resources; + struct acpi_device *device = info-bridge; + struct resource_entry *entry,

Re: [Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-09 Thread Jiang Liu
On 2015/6/10 0:12, Lorenzo Pieralisi wrote: On Mon, Jun 08, 2015 at 05:20:46PM +0100, Jiang Liu wrote: [...] +static int acpi_pci_probe_root_resources(struct acpi_pci_root_info *info) +{ +int ret; +struct list_head *list = info-resources; +struct acpi_device *device =

[Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-08 Thread Jiang Liu
Introduce common interface acpi_pci_root_create() and related data structures to create PCI root bus for ACPI PCI host bridges. It will be used to kill duplicated arch specific code for IA64 and x86. It may also help ARM64 in future. Tested-by: Tony Luck Signed-off-by: Jiang Liu ---

[Patch v5 4/6] PCI/ACPI: Consolidate common PCI host bridge code into ACPI core

2015-06-08 Thread Jiang Liu
Introduce common interface acpi_pci_root_create() and related data structures to create PCI root bus for ACPI PCI host bridges. It will be used to kill duplicated arch specific code for IA64 and x86. It may also help ARM64 in future. Tested-by: Tony Luck tony.l...@intel.com Signed-off-by: Jiang