Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-11-06 Thread Lorenzo Pieralisi
On Thu, Nov 06, 2014 at 12:05:36AM +, Bjorn Helgaas wrote: > On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: > > The number of windows allocated for the host bridge depends on the > > bus resource. Instead of first allocating the windows and then > > limit the bus resource,

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-11-06 Thread Lorenzo Pieralisi
On Thu, Nov 06, 2014 at 12:05:36AM +, Bjorn Helgaas wrote: On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-11-05 Thread Bjorn Helgaas
On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: > The number of windows allocated for the host bridge depends on the > bus resource. Instead of first allocating the windows and then > limit the bus resource, this patch reshuffles the code so that if any > limitation is applied

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-11-05 Thread Bjorn Helgaas
On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this patch reshuffles the code so that if any limitation is applied to

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-27 Thread Will Deacon
On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: > The number of windows allocated for the host bridge depends on the > bus resource. Instead of first allocating the windows and then > limit the bus resource, this patch reshuffles the code so that if any > limitation is applied

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-27 Thread Will Deacon
On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this patch reshuffles the code so that if any limitation is applied to

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-24 Thread Arnd Bergmann
On Friday 24 October 2014 10:04:09 Liviu Dudau wrote: > On Thu, Oct 23, 2014 at 11:27:07PM +0100, Bjorn Helgaas wrote: > > On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: > > > The number of windows allocated for the host bridge depends on the > > > bus resource. Instead of

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-24 Thread Liviu Dudau
On Thu, Oct 23, 2014 at 11:27:07PM +0100, Bjorn Helgaas wrote: > On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: > > The number of windows allocated for the host bridge depends on the > > bus resource. Instead of first allocating the windows and then > > limit the bus resource,

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-24 Thread Lorenzo Pieralisi
On Thu, Oct 23, 2014 at 11:27:07PM +0100, Bjorn Helgaas wrote: > On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: > > The number of windows allocated for the host bridge depends on the > > bus resource. Instead of first allocating the windows and then > > limit the bus resource,

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-24 Thread Lorenzo Pieralisi
On Thu, Oct 23, 2014 at 11:27:07PM +0100, Bjorn Helgaas wrote: On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-24 Thread Liviu Dudau
On Thu, Oct 23, 2014 at 11:27:07PM +0100, Bjorn Helgaas wrote: On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-24 Thread Arnd Bergmann
On Friday 24 October 2014 10:04:09 Liviu Dudau wrote: On Thu, Oct 23, 2014 at 11:27:07PM +0100, Bjorn Helgaas wrote: On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-23 Thread Bjorn Helgaas
On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: > The number of windows allocated for the host bridge depends on the > bus resource. Instead of first allocating the windows and then > limit the bus resource, this patch reshuffles the code so that if any > limitation is applied

[PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-23 Thread Lorenzo Pieralisi
The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this patch reshuffles the code so that if any limitation is applied to the bus resource it is taken into account in the windows allocation. Cc:

[PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-23 Thread Lorenzo Pieralisi
The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this patch reshuffles the code so that if any limitation is applied to the bus resource it is taken into account in the windows allocation. Cc:

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-23 Thread Bjorn Helgaas
On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource, this patch reshuffles the code so that if any limitation is applied to