[PATCH v2 0/6] riscv: Make SBI v0.2 the default SBI version to work with OpenSBI v0.7

Bin Meng bmeng.cn at gmail.com
Thu Apr 16 17:09:27 CEST 2020


This series makes SBI v0.2 the default SBI version to work with
OpenSBI v0.7, that is scheduled to be released soon.

Hart State Management (HSM) SBI extension is supported from OpenSBI
v0.7. HSM extension allows S-mode software to boot all the harts a
defined order rather than legacy method of random booting of harts.
S-mode U-Boot doesn't need to support HSM extension, as it doesn't
need to boot all the harts. The operating system should be capable
enough to bring up all other non-booting harts using HSM extension.

This patch depends on the following Kbuild patch by Masahiro:
http://patchwork.ozlabs.org/project/uboot/patch/20200416043826.490120-4-masahiroy@kernel.org/

With the updated Kbuild, the following patch in v1 is dropped:
[PATCH 6/7] riscv: Remove CONFIG_IS_ENABLED(SMP) in global data

Changes in v2:
- add "!RISCV_SMODE" to the dependency
- drop patch: "riscv: Remove CONFIG_IS_ENABLED(SMP) in global data"

Bin Meng (6):
  riscv: qemu: Remove the simple-bus driver for the SoC node
  riscv: Merge unnecessary SMP ifdefs in start.S
  riscv: Introduce SPL_SMP Kconfig option for U-Boot SPL
  riscv: Add SMP Kconfig option dependency for U-Boot proper
  riscv: Add Kconfig option for SBI v0.2
  riscv: Make SBI v0.2 the default SBI version

 arch/riscv/Kconfig                   | 34 ++++++++++++++++++++++++++++++++--
 arch/riscv/cpu/generic/cpu.c         | 14 --------------
 arch/riscv/cpu/start.S               | 18 +++++++-----------
 arch/riscv/include/asm/global_data.h |  2 +-
 arch/riscv/lib/Makefile              |  2 +-
 arch/riscv/lib/spl.c                 |  2 +-
 common/spl/spl_opensbi.c             |  2 +-
 doc/board/emulation/qemu-riscv.rst   |  2 +-
 8 files changed, 44 insertions(+), 32 deletions(-)

-- 
2.7.4



More information about the U-Boot mailing list