]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic, gic-v3: Prevent GSI to SGI translations
authorAndre Przywara <andre.przywara@arm.com>
Mon, 4 Apr 2022 11:08:42 +0000 (12:08 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 5 Apr 2022 15:33:47 +0000 (16:33 +0100)
commit6b6bd8def39432d31546f2406a7c282f302d0d74
tree3f164e2af4b375087930e95c78c60c0f401bc4ed
parent67a7cb4a4a3ba751f7b6b791d36f91ced534ab9e
irqchip/gic, gic-v3: Prevent GSI to SGI translations

At the moment the GIC IRQ domain translation routine happily converts
ACPI table GSI numbers below 16 to GIC SGIs (Software Generated
Interrupts aka IPIs). On the Devicetree side we explicitly forbid this
translation, actually the function will never return HWIRQs below 16 when
using a DT based domain translation.

We expect SGIs to be handled in the first part of the function, and any
further occurrence should be treated as a firmware bug, so add a check
and print to report this explicitly and avoid lengthy debug sessions.

Fixes: 6e0d1e064d4b ("irqchip/gic-v3: Configure SGIs as standard interrupts")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220404110842.2882446-1-andre.przywara@arm.com
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-gic.c