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

2019-09-27 Thread David Gibson
On Fri, Sep 27, 2019 at 09:53:59AM +0200, Greg Kurz wrote: 65;5603;1c> On Fri, 27 Sep 2019 15:50:04 +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

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

2019-09-27 Thread Greg Kurz
On Fri, 27 Sep 2019 15:50:04 +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

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

2019-09-26 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