Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-21 Thread Arnd Bergmann
On Monday 20 April 2015 11:49:37 Feng Kan wrote: > > > > Obviously they appear on the PCI host bridge in order, because that > > is a how PCI works. My question was about what happens then. On a lot > > of SoCs, there is something like an AXI bus that uses posted > > transactions between PCI and

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-21 Thread Arnd Bergmann
On Monday 20 April 2015 11:49:37 Feng Kan wrote: Obviously they appear on the PCI host bridge in order, because that is a how PCI works. My question was about what happens then. On a lot of SoCs, there is something like an AXI bus that uses posted transactions between PCI and RAM, so you

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-20 Thread Feng Kan
On Sun, Apr 19, 2015 at 12:55 PM, Arnd Bergmann wrote: > On Sunday 19 April 2015 11:40:09 Duc Dang wrote: >> On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann wrote: >> > On Friday 17 April 2015 02:50:07 Duc Dang wrote: >> >> + >> >> + /* >> >> +* MSIINTn (n is 0..F) indicates if

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-20 Thread Feng Kan
On Sun, Apr 19, 2015 at 12:55 PM, Arnd Bergmann a...@arndb.de wrote: On Sunday 19 April 2015 11:40:09 Duc Dang wrote: On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann a...@arndb.de wrote: On Friday 17 April 2015 02:50:07 Duc Dang wrote: + + /* +* MSIINTn (n is 0..F) indicates

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-19 Thread Arnd Bergmann
On Sunday 19 April 2015 11:40:09 Duc Dang wrote: > On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann wrote: > > On Friday 17 April 2015 02:50:07 Duc Dang wrote: > >> + > >> + /* > >> +* MSIINTn (n is 0..F) indicates if there is a pending MSI > >> interrupt > >> +* If bit x of

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-19 Thread Duc Dang
On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann wrote: > On Friday 17 April 2015 02:50:07 Duc Dang wrote: >> + >> + /* >> +* MSIINTn (n is 0..F) indicates if there is a pending MSI interrupt >> +* If bit x of this register is set (x is 0..7), one or more >> interupts >> +

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-19 Thread Arnd Bergmann
On Sunday 19 April 2015 11:40:09 Duc Dang wrote: On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann a...@arndb.de wrote: On Friday 17 April 2015 02:50:07 Duc Dang wrote: + + /* +* MSIINTn (n is 0..F) indicates if there is a pending MSI interrupt +* If bit x of this

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-19 Thread Duc Dang
On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann a...@arndb.de wrote: On Friday 17 April 2015 02:50:07 Duc Dang wrote: + + /* +* MSIINTn (n is 0..F) indicates if there is a pending MSI interrupt +* If bit x of this register is set (x is 0..7), one or more interupts +

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-18 Thread Arnd Bergmann
On Friday 17 April 2015 02:50:07 Duc Dang wrote: > + > + /* > +* MSIINTn (n is 0..F) indicates if there is a pending MSI interrupt > +* If bit x of this register is set (x is 0..7), one or more interupts > +* corresponding to MSInIRx is set. > +*/ > +

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-18 Thread Arnd Bergmann
On Friday 17 April 2015 02:50:07 Duc Dang wrote: + + /* +* MSIINTn (n is 0..F) indicates if there is a pending MSI interrupt +* If bit x of this register is set (x is 0..7), one or more interupts +* corresponding to MSInIRx is set. +*/ +

[PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-17 Thread Duc Dang
X-Gene v1 SoC supports total 2048 MSI/MSIX vectors coalesced into 16 HW IRQ lines. Signed-off-by: Duc Dang Signed-off-by: Tanmay Inamdar --- drivers/pci/host/Kconfig | 6 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pci-xgene-msi.c | 410

[PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-17 Thread Duc Dang
X-Gene v1 SoC supports total 2048 MSI/MSIX vectors coalesced into 16 HW IRQ lines. Signed-off-by: Duc Dang dhd...@apm.com Signed-off-by: Tanmay Inamdar tinam...@apm.com --- drivers/pci/host/Kconfig | 6 + drivers/pci/host/Makefile| 1 + drivers/pci/host/pci-xgene-msi.c | 410