diff options
author | Yufen Wang <wangyufen@huawei.com> | 2018-11-02 13:51:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-12 21:45:57 +0300 |
commit | c871547ec28fe1268423f2f13c3441434ab65eac (patch) | |
tree | dc9ae75984ff79f98e8c9ca6d1e79e7da62b4f0b /arch/arm/mach-orion5x/ts78xx-fpga.h | |
parent | 1f52e001dde3b367f177cf3acf8406c51303b1fd (diff) | |
download | linux-c871547ec28fe1268423f2f13c3441434ab65eac.tar.xz |
ARM: 8808/1: kexec:offline panic_smp_self_stop CPU
[ Upstream commit 82c08c3e7f171aa7f579b231d0abbc1d62e91974 ]
In case panic() and panic() called at the same time on different CPUS.
For example:
CPU 0:
panic()
__crash_kexec
machine_crash_shutdown
crash_smp_send_stop
machine_kexec
BUG_ON(num_online_cpus() > 1);
CPU 1:
panic()
local_irq_disable
panic_smp_self_stop
If CPU 1 calls panic_smp_self_stop() before crash_smp_send_stop(), kdump
fails. CPU1 can't receive the ipi irq, CPU1 will be always online.
To fix this problem, this patch split out the panic_smp_self_stop()
and add set_cpu_online(smp_processor_id(), false).
Signed-off-by: Yufen Wang <wangyufen@huawei.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/mach-orion5x/ts78xx-fpga.h')
0 files changed, 0 insertions, 0 deletions