irqchip/gic-v3-its: Fix double ICC_EOIR write for LPI in EOImode==1
authorAshok Kumar <ashoks@broadcom.com>
Thu, 11 Feb 2016 13:38:53 +0000 (05:38 -0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 11 Feb 2016 16:01:28 +0000 (16:01 +0000)
commit004fa08d7aba2a13974446bf212a48c0b3b0d9fd
treee21fbd51bfeef86c3b57f85844220f00728bc244
parent1a1ebd5fb1e203ee8cc73508cc7a38ac4b804596
irqchip/gic-v3-its: Fix double ICC_EOIR write for LPI in EOImode==1

When the GIC is using EOImode==1, the EOI is done immediately,
leaving the deactivation to be performed when the EOI was
previously done.

Unfortunately, the ITS is not aware of the EOImode at all, and
blindly EOIs the interrupt again. On most systems, this is ignored
(despite being a programming error), but some others do raise a
SError exception as there is no priority drop to perform for this
interrupt.

The fix is to stop trying to be clever, and always call into the
underlying GIC to perform the right access, irrespective of the
more we're in.

[Marc: Reworked commit message]

Fixes: 0b996fd35957a ("irqchip/GICv3: Convert to EOImode == 1")
Cc: stable@vger.kernel.org
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Ashok Kumar <ashoks@broadcom.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its.c
This page took 0.02581 seconds and 5 git commands to generate.