]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
powerpc: Offline CPU in stop_this_cpu()
authorNicholas Piggin <npiggin@gmail.com>
Wed, 23 Jun 2021 04:12:45 +0000 (14:12 +1000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:31:33 +0000 (09:31 +0200)
commit2323f5902cc74519d46be7776034525381ff0b2e
tree260d19f84641361a5644ddee2460f26167f2f03e
parentec5ee2a2c7021a11d226fa092da951af1529eb56
powerpc: Offline CPU in stop_this_cpu()

BugLink: https://bugs.launchpad.net/bugs/1938340
[ Upstream commit bab26238bbd44d5a4687c0a64fd2c7f2755ea937 ]

printk_safe_flush_on_panic() has special lock breaking code for the case
where we panic()ed with the console lock held. It relies on panic IPI
causing other CPUs to mark themselves offline.

Do as most other architectures do.

This effectively reverts commit de6e5d38417e ("powerpc: smp_send_stop do
not offline stopped CPUs"), unfortunately it may result in some false
positive warnings, but the alternative is more situations where we can
crash without getting messages out.

Fixes: de6e5d38417e ("powerpc: smp_send_stop do not offline stopped CPUs")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210623041245.865134-1-npiggin@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/powerpc/kernel/smp.c