Re: [PATCH 09/20] spapr: Clarify and fix handling of nr_irqs

2019-09-26 Thread Cédric Le Goater
On 26/09/2019 03:03, David Gibson wrote: > On Wed, Sep 25, 2019 at 09:05:34AM +0200, Cédric Le Goater wrote: >> On 25/09/2019 08:45, David Gibson wrote: >>> Both the XICS and XIVE interrupt backends have a "nr-irqs" property, but >>> it means slightly different things. For XICS (or, strictly, the

Re: [PATCH 09/20] spapr: Clarify and fix handling of nr_irqs

2019-09-25 Thread David Gibson
On Wed, Sep 25, 2019 at 09:05:34AM +0200, Cédric Le Goater wrote: > On 25/09/2019 08:45, David Gibson wrote: > > Both the XICS and XIVE interrupt backends have a "nr-irqs" property, but > > it means slightly different things. For XICS (or, strictly, the ICS) it > > indicates the number of "real" e

Re: [PATCH 09/20] spapr: Clarify and fix handling of nr_irqs

2019-09-25 Thread Greg Kurz
On Wed, 25 Sep 2019 16:45:23 +1000 David Gibson wrote: > Both the XICS and XIVE interrupt backends have a "nr-irqs" property, but > it means slightly different things. For XICS (or, strictly, the ICS) it > indicates the number of "real" external IRQs. Those start at XICS_IRQ_BASE > (0x1000) and

Re: [PATCH 09/20] spapr: Clarify and fix handling of nr_irqs

2019-09-25 Thread Cédric Le Goater
On 25/09/2019 08:45, David Gibson wrote: > Both the XICS and XIVE interrupt backends have a "nr-irqs" property, but > it means slightly different things. For XICS (or, strictly, the ICS) it > indicates the number of "real" external IRQs. Those start at XICS_IRQ_BASE > (0x1000) and don't include t

[PATCH 09/20] spapr: Clarify and fix handling of nr_irqs

2019-09-24 Thread David Gibson
Both the XICS and XIVE interrupt backends have a "nr-irqs" property, but it means slightly different things. For XICS (or, strictly, the ICS) it indicates the number of "real" external IRQs. Those start at XICS_IRQ_BASE (0x1000) and don't include the special IPI vector. For XIVE, however, it inc