]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-v3: Reset APgRn 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:29 +0000 (11:11 +0000)
commitccfe35b73281aae419f88348adc8eb0238f5ec94
treeecc4745282e90a4eab388ab137307ff22bc4fe94
parent59e50706936fbcd8d4e881bf08eaa92709406269
irqchip/gic-v3: Reset APgRn 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. We make
sure to wipe both group 0 and 1 registers in order to avoid
any surprise.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/arch_gicv3.h
drivers/irqchip/irq-gic-v3.c