]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: rockchip: fix kernel hang during smp initialization
authorAlexander Kochetkov <al.kochet@gmail.com>
Thu, 3 Jul 2025 14:04:53 +0000 (17:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:16 +0000 (16:28 +0200)
commitd7d6d076ee9532c4668f14696a35688d35dd16f4
treead60d9130dadba4092121ce6aca98a3adb8f5118
parent6a8b0c7e93dfe6f343578ec7e51ee61c5e6bcc21
ARM: rockchip: fix kernel hang during smp initialization

[ Upstream commit 7cdb433bb44cdc87dc5260cdf15bf03cc1cd1814 ]

In order to bring up secondary CPUs main CPU write trampoline
code to SRAM. The trampoline code is written while secondary
CPUs are powered on (at least that true for RK3188 CPU).
Sometimes that leads to kernel hang. Probably because secondary
CPU execute trampoline code while kernel doesn't expect.

The patch moves SRAM initialization step to the point where all
secondary CPUs are powered down.

That fixes rarely hangs on RK3188:
[    0.091568] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.091996] rockchip_smp_prepare_cpus: ncores 4

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Link: https://lore.kernel.org/r/20250703140453.1273027-1-al.kochet@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-rockchip/platsmp.c