summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorOliver Upton <oliver.upton@linux.dev>2024-02-19 21:58:06 +0300
committerThomas Gleixner <tglx@linutronix.de>2024-02-21 23:11:20 +0300
commitec4308ecfc887128a468f03fb66b767559c57c23 (patch)
tree5578f84bf9385d71fe9dedeecded9338c2744ac3 /arch/x86/include/asm
parentfb33a46cd75e18773dd5a414744507d84ae90870 (diff)
downloadlinux-ec4308ecfc887128a468f03fb66b767559c57c23.tar.xz
irqchip/gic-v3-its: Do not assume vPE tables are preallocated
The GIC/ITS code is designed to ensure to pick up any preallocated LPI tables on the redistributors, as enabling LPIs is a one-way switch. There is no such restriction for vLPIs, and for GICv4.1 it is expected to allocate a new vPE table at boot. This works as intended when initializing an ITS, however when setting up a redistributor in cpu_init_lpis() the early return for preallocated RD tables skips straight past the GICv4 setup. This all comes to a head when trying to kexec() into a new kernel, as the new kernel silently fails to set up GICv4, leading to a complete loss of SGIs and LPIs for KVM VMs. Slap a band-aid on the problem by ensuring its_cpu_init_lpis() always initializes GICv4 on the way out, even if the other RD tables were preallocated. Fixes: 6479450f72c1 ("irqchip/gic-v4: Fix occasional VLPI drop") Reported-by: George Cherian <gcherian@marvell.com> Co-developed-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240219185809.286724-2-oliver.upton@linux.dev
Diffstat (limited to 'arch/x86/include/asm')
0 files changed, 0 insertions, 0 deletions