irqchip/gic-v3: Configure all interrupts as non-secure Group-1
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 6 May 2016 18:41:56 +0000 (19:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 19:16:58 +0000 (12:16 -0700)
commitf0bbf31d63b86845500f8e2a6fcbe6e35f630636
treed90693d754357cba4f6a5f1fcffe0f5dfa8b9aed
parent066b085d819dd8a1decba6119a7a068e9e5add86
irqchip/gic-v3: Configure all interrupts as non-secure Group-1

commit 7c9b973061b03af62734f613f6abec46c0dd4a88 upstream.

The GICv3 driver wrongly assumes that it runs on the non-secure
side of a secure-enabled system, while it could be on a system
with a single security state, or a GICv3 with GICD_CTLR.DS set.

Either way, it is important to configure this properly, or
interrupts will simply not be delivered on this HW.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-gic-v3.c