Skip to content

riscv: Make SBI v0.2 the default SBI version to work with OpenSBI v0.7

Bin Meng u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v17 patches 0 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6riscv: qemu: Remove the simple-bus driver for the SoC nodearch/riscv/cpu/generic/cpu.c doc/board/emulation/qemu-riscv.rst+1 -150 replies
2/6riscv: Merge unnecessary SMP ifdefs in start.Sarch/riscv/cpu/start.S+0 -40 replies
3/6riscv: Introduce SPL_SMP Kconfig option for U-Boot SPLarch/riscv/Kconfig arch/riscv/cpu/start.S arch/riscv/include/asm/global_data.h +3 more+23 -120 replies
4/6riscv: Add SMP Kconfig option dependency for U-Boot properarch/riscv/Kconfig+1 -01 reply
5/6riscv: Add Kconfig option for SBI v0.2arch/riscv/Kconfig+19 -10 replies
6/6riscv: Make SBI v0.2 the default SBI versionarch/riscv/Kconfig+1 -10 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchAtish Patra
1/6
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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 at 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(-)
Signature · 1 line
2.7.4