Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-04 Thread Rafael J. Wysocki
On Friday, January 04, 2013 05:36:55 PM Bjorn Helgaas wrote: > On Fri, Jan 4, 2013 at 5:19 PM, Yinghai Lu wrote: > > On Fri, Jan 4, 2013 at 4:14 PM, Rafael J. Wysocki wrote: > >> On Friday, January 04, 2013 04:03:01 PM Yinghai Lu wrote: > >>> On Fri, Jan 4, 2013 at 3:38 AM, Rafael J. Wysocki wro

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-04 Thread Bjorn Helgaas
On Fri, Jan 4, 2013 at 5:19 PM, Yinghai Lu wrote: > On Fri, Jan 4, 2013 at 4:14 PM, Rafael J. Wysocki wrote: >> On Friday, January 04, 2013 04:03:01 PM Yinghai Lu wrote: >>> On Fri, Jan 4, 2013 at 3:38 AM, Rafael J. Wysocki wrote: >>> >> --- a/arch/x86/include/asm/pci.h >>> >> +++ b/arch/x86/inc

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-04 Thread Yinghai Lu
On Fri, Jan 4, 2013 at 4:14 PM, Rafael J. Wysocki wrote: > On Friday, January 04, 2013 04:03:01 PM Yinghai Lu wrote: >> On Fri, Jan 4, 2013 at 3:38 AM, Rafael J. Wysocki wrote: >> >> --- a/arch/x86/include/asm/pci.h >> >> +++ b/arch/x86/include/asm/pci.h >> >> @@ -14,6 +14,7 @@ >> >> struct pci_

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-04 Thread Rafael J. Wysocki
On Friday, January 04, 2013 04:03:01 PM Yinghai Lu wrote: > On Fri, Jan 4, 2013 at 3:38 AM, Rafael J. Wysocki wrote: > >> --- a/arch/x86/include/asm/pci.h > >> +++ b/arch/x86/include/asm/pci.h > >> @@ -14,6 +14,7 @@ > >> struct pci_sysdata { > >> int domain; /* PCI domai

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-04 Thread Yinghai Lu
On Fri, Jan 4, 2013 at 3:38 AM, Rafael J. Wysocki wrote: >> --- a/arch/x86/include/asm/pci.h >> +++ b/arch/x86/include/asm/pci.h >> @@ -14,6 +14,7 @@ >> struct pci_sysdata { >> int domain; /* PCI domain */ >> int node; /* NUMA node */ >> +

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-04 Thread Rafael J. Wysocki
On Thursday, January 03, 2013 06:00:38 PM Bjorn Helgaas wrote: > On Thu, Jan 03, 2013 at 11:56:55PM +0100, Rafael J. Wysocki wrote: > > > OK, I now have sent no less than three working version of the patch that > > fixes > > the current code which _is_ insane. You haven't even responded to the l

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-03 Thread Bjorn Helgaas
On Thu, Jan 03, 2013 at 11:56:55PM +0100, Rafael J. Wysocki wrote: > OK, I now have sent no less than three working version of the patch that fixes > the current code which _is_ insane. You haven't even responded to the last > one, but for the first two the reason why you didn't like them was som

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-03 Thread Rafael J. Wysocki
On Thursday, January 03, 2013 03:13:31 PM Bjorn Helgaas wrote: > On Thu, Jan 3, 2013 at 2:23 PM, Rafael J. Wysocki wrote: > > On Thursday, January 03, 2013 01:11:30 PM Rafael J. Wysocki wrote: > >> On Thursday, January 03, 2013 01:40:52 AM Rafael J. Wysocki wrote: > >> > On Wednesday, January 02,

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-03 Thread Bjorn Helgaas
On Thu, Jan 3, 2013 at 2:23 PM, Rafael J. Wysocki wrote: > On Thursday, January 03, 2013 01:11:30 PM Rafael J. Wysocki wrote: >> On Thursday, January 03, 2013 01:40:52 AM Rafael J. Wysocki wrote: >> > On Wednesday, January 02, 2013 04:07:32 PM Bjorn Helgaas wrote: >> > > On Thu, Dec 27, 2012 at 10

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-03 Thread Rafael J. Wysocki
On Thursday, January 03, 2013 01:11:30 PM Rafael J. Wysocki wrote: > On Thursday, January 03, 2013 01:40:52 AM Rafael J. Wysocki wrote: > > On Wednesday, January 02, 2013 04:07:32 PM Bjorn Helgaas wrote: > > > On Thu, Dec 27, 2012 at 10:32:13PM +0100, Rafael J. Wysocki wrote: > > > > To that end, s

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-03 Thread Rafael J. Wysocki
On Wednesday, January 02, 2013 04:07:32 PM Bjorn Helgaas wrote: > On Thu, Dec 27, 2012 at 10:32:13PM +0100, Rafael J. Wysocki wrote: > > To that end, split pci_create_root_bus() into two functions, > > pci_alloc_root() and pci_add_root(), that will allocate memory for > > the new PCI bus and bridge

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-03 Thread Rafael J. Wysocki
On Thursday, January 03, 2013 01:40:52 AM Rafael J. Wysocki wrote: > On Wednesday, January 02, 2013 04:07:32 PM Bjorn Helgaas wrote: > > On Thu, Dec 27, 2012 at 10:32:13PM +0100, Rafael J. Wysocki wrote: > > > To that end, split pci_create_root_bus() into two functions, > > > pci_alloc_root() and p

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-02 Thread Rafael J. Wysocki
On Wednesday, January 02, 2013 04:07:32 PM Bjorn Helgaas wrote: > On Thu, Dec 27, 2012 at 10:32:13PM +0100, Rafael J. Wysocki wrote: > > To that end, split pci_create_root_bus() into two functions, > > pci_alloc_root() and pci_add_root(), that will allocate memory for > > the new PCI bus and bridge

Re: [Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2013-01-02 Thread Bjorn Helgaas
On Thu, Dec 27, 2012 at 10:32:13PM +0100, Rafael J. Wysocki wrote: > To that end, split pci_create_root_bus() into two functions, > pci_alloc_root() and pci_add_root(), that will allocate memory for > the new PCI bus and bridge representations and register them with > the driver core, respectively,

[Alternative 2][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2012-12-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The ACPI handles of PCI root bridges need to be known to acpi_bind_one(), so that it can create the appropriate "firmware_node" and "physical_node" files for them, but currently the way it gets to know those handles is not exactly straightforward (to put it lightly). This