]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-v2: Reset APRn registers at boot time
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Mar 2018 14:53:19 +0000 (14:53 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 14 Mar 2018 11:11:28 +0000 (11:11 +0000)
commit59e50706936fbcd8d4e881bf08eaa92709406269
treef461f1b4845c994d037110bad7dd44d27f6dcc0c
parent0e3d3c1d23af7ba1581656470e7646da28a8d1d4
irqchip/gic-v2: Reset APRn registers at boot time

Booting a crash kernel while in an interrupt handler is likely
to leave the Active Priority Registers with some state that
is not relevant to the new kernel, and is likely to lead
to erratic behaviours such as interrupts not firing as their
priority is already active.

As a sanity measure, wipe the APRs clean on startup.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic.c