[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC PATCH v3 13/18] xen/arm: ITS: Add irq descriptors for LPIs



On Tue, 2015-07-07 at 16:52 +0100, Julien Grall wrote:
> On 07/07/15 16:50, Ian Campbell wrote:
> > I'd rather we refactored these checks into some sort of is_valid_irq()
> > helper which could check vs. nr_lines (which remains the
> > GICD_TYPER.ITLinesNumber based thing) and the number of LPIs separately.
> > 
> > Combining the two risks considering interrupt in the 1025..8191 range as
> > valid and open coding anything more complex than the existing single <
> > check in all the relevant places isn't going to scale.
> 
> I would be fine with that too. Although, I think we need to add a
> comment on top of gic_number_lines to clearly specify this is not
> included LPIs.

Strictly speaking an LPI being message signalled is not associated with
a line, which is why GICD_TYPER.ITLinesNumber also doesn't consider
them. But that's not necessarily all that obvious, so a comment would be
appropriate, yes.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.