]> 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)
commite1ba10ff300cef1c4c9d4094b891df0689dd1fab
treef461f1b4845c994d037110bad7dd44d27f6dcc0c
parent815429392eab65713b2b80b024cb082422b7d03e
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