]> git.baikalelectronics.ru Git - uboot.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)
commitad718fcc1137f7fd882ea225bb406b564f905f4f
tree9e694fec29328230987612d8930de871bc12d254
parenteacc193b654a98c3477f104e0788fd4be6154bd4
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