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:15:49 +0000 (12:15 -0700)
commit9b68f12b57e5241f26c2924637aaae740cc1b276
treee75e6bfe69988ea44cea62a38cf08627bd5acb65
parent3607d54e5aa9e72390ca9963b01e964d6425e148
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