]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - arch/arm64/include/asm/arch_gicv3.h
irqchip/gic-v3: Reset BPR during initialization
authorDaniel Thompson <daniel.thompson@linaro.org>
Fri, 19 Aug 2016 16:13:09 +0000 (17:13 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 12 Sep 2016 18:46:19 +0000 (19:46 +0100)
commit91ef84428a86b75a52e15c6fe4f56b446ba75f93
tree46066d44e3ddccef1b4d0056955eb59ffc67cf54
parent04c8b0f82c7d5a9a1c296eef914ae3bb820bcb85
irqchip/gic-v3: Reset BPR during initialization

Currently, when running on FVP, CPU 0 boots up with its BPR changed from
the reset value. This renders it impossible to (preemptively) prioritize
interrupts on CPU 0.

This is harmless on normal systems since Linux typically does not
support preemptive interrupts. It does however cause problems in
systems with additional changes (such as patches for NMI simulation).

Many thanks to Andrew Thoelke for suggesting the BPR as having the
potential to harm preemption.

Suggested-by: Andrew Thoelke <andrew.thoelke@arm.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/arch_gicv3.h
arch/arm64/include/asm/arch_gicv3.h
drivers/irqchip/irq-gic-v3.c