]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: Introduce AVAILABLE_HARTS
authorRick Chen <rick@andestech.com>
Wed, 21 Sep 2022 06:34:54 +0000 (14:34 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 26 Sep 2022 06:29:13 +0000 (14:29 +0800)
commit2715b6a6a55c57a49b83f8e08c8bc450840b22e4
treeddd81b0d82d1c0e8abf0b80853fdde07407bd5e6
parenta932bbcd83ca57be8e735f713122fdf71c586698
riscv: Introduce AVAILABLE_HARTS

In SMP all harts will register themself in available_hart
during start up. Then main hart will send IPI to other harts
according to this variables. But this mechanism may not
guarantee that all other harts can jump to next stage.

When main hart is sending IPI to other hart according to
available_harts, but other harts maybe still not finish the
registration. Then the SMP booting will miss some harts finally.
So let it become an option and it will be enabled by default.

Please refer to the discussion:
https://www.mail-archive.com/u-boot@lists.denx.de/msg449997.html

Signed-off-by: Rick Chen <rick@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/Kconfig
arch/riscv/cpu/cpu.c
arch/riscv/cpu/start.S
arch/riscv/include/asm/global_data.h
arch/riscv/lib/asm-offsets.c
arch/riscv/lib/smp.c