irqchip/gic-v3: Detect LPI invalidation MMIO registers
authorMarc Zyngier <maz@kernel.org>
Tue, 5 Apr 2022 18:38:56 +0000 (19:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 4 May 2022 14:38:55 +0000 (15:38 +0100)
commita837ed362e7070d48b6064138d3b61eb75eb9fd9
tree995bd665f42f12fd745b7f9aa6af0c43832122ac
parent34453c2e9f799d02f5f379519495208bbd96a935
irqchip/gic-v3: Detect LPI invalidation MMIO registers

Since GICv4.1, an implementation can offer the same MMIO-based
implementation as DirectLPI, only with an ITS. Given that this
can be hugely beneficial for workloads that are very LPI masking
heavy (although these workloads are admitedly a bit odd).

Interestingly, this is independent of RVPEI, which only *implies*
the functionnality.

So let's detect whether the implementation has GICR_CTLR.IR set,
and propagate this as DirectLPI to the ITS driver.

While we're at it, repaint the GICv3 banner so that we advertise
the various capabilities at boot time to be slightly less invasive.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220405183857.205960-3-maz@kernel.org
drivers/irqchip/irq-gic-v3.c