]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: Mask all interrupts during kexec/kdump
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 20 Nov 2025 06:42:05 +0000 (14:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Dec 2025 17:37:21 +0000 (18:37 +0100)
commit4d9fb5428568f5a35a44c4fbdf288c2a268f3dde
tree194d4103f0b3d45c8a70434f33fcaf896352af8f
parent898c0794e799743b503f6a98bff4ff7051b3c065
LoongArch: Mask all interrupts during kexec/kdump

[ Upstream commit 863a320dc6fd7c855f47da4bb82a8de2d9102ea2 ]

If the default state of the interrupt controllers in the first kernel
don't mask any interrupts, it may cause the second kernel to potentially
receive interrupts (which were previously allocated by the first kernel)
immediately after a CPU becomes online during its boot process. These
interrupts cannot be properly routed, leading to bad IRQ issues.

This patch calls machine_kexec_mask_interrupts() to mask all interrupts
during the kexec/kdump process.

Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/loongarch/kernel/machine_kexec.c