]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: Clear pending IPIs on initialization
authorSean Anderson <seanga2@gmail.com>
Mon, 21 Sep 2020 11:51:38 +0000 (07:51 -0400)
committerAndes <uboot@andestech.com>
Wed, 30 Sep 2020 00:54:52 +0000 (08:54 +0800)
commit768502e2a7f283a715dd1f62e304393a88422545
tree9e694fec29328230987612d8930de871bc12d254
parentf760c9a1fd485beae7612e39576e5fbf77c5d96b
riscv: Clear pending IPIs on initialization

Even though we no longer call smp_function if an IPI was not sent by
U-Boot, we still need to clear any IPIs which were pending from the
execution environment. Otherwise, secondary harts will busy-wait in
secondary_hart_loop, instead of relaxing.

Along with the previous commit ("riscv: Use a valid bit to ignore
already-pending IPIs"), this fixes SMP booting on the Kendryte K210.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/cpu/cpu.c