]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0cdbf2e56387906c4e047e10d38f1cce26c5995c
tree995bd665f42f12fd745b7f9aa6af0c43832122ac
parent949505d62a2193ba8565fd8f39f976f6deac38b3
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