Re: [v4] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-05-25 Thread Michael Ellerman
On Wed, 2016-05-25 at 10:03 -0300, Guilherme G. Piccoli wrote: > On 05/25/2016 02:45 AM, Michael Ellerman wrote: > > > > Yeah please increase the bitmap size to 65536. It will only take 8KB of > > memory, > > which is negligible. > > Well, since I sent a v6 and you replied there too, I guess we

Re: [v4] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-05-25 Thread Guilherme G. Piccoli
On 05/25/2016 02:45 AM, Michael Ellerman wrote: Hi Guilherme, Sorry for the very late reply, this got lost in my email filters. No problem Michael, thanks for replying! On Mon, 2016-03-28 at 09:36 -0300, Guilherme G. Piccoli wrote: On 03/25/2016 06:33 AM, Michael Ellerman wrote: +static

Re: [v4] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-05-24 Thread Michael Ellerman
Hi Guilherme, Sorry for the very late reply, this got lost in my email filters. On Mon, 2016-03-28 at 09:36 -0300, Guilherme G. Piccoli wrote: > On 03/25/2016 06:33 AM, Michael Ellerman wrote: > > > +static int get_phb_number(struct device_node *dn) > > > +{ > > > + const __be64 *prop64; > > >

Re: [v4] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-03-28 Thread Guilherme G. Piccoli
On 03/25/2016 06:33 AM, Michael Ellerman wrote: Hi Guilherme, Some comments below ... Hi Michael, thanks for the comments. +/* For dynamic PHB numbering on get_phb_number(): max number of PHBs. */ +#defineMAX_PHBS8192 Did we just make that up? It seems like a lot, but then

Re: [v4] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-03-25 Thread Michael Ellerman
Hi Guilherme, Some comments below ... On Fri, 2016-18-03 at 21:49:06 UTC, "Guilherme G. Piccoli" wrote: > The domain/PHB field of PCI addresses has its value obtained from a > global variable, incremented each time a new domain (represented by > struct pci_controller) is added on the system. The