From patchwork Thu Apr 16 15:09:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 237835 List-Id: U-Boot discussion From: bmeng.cn at gmail.com (Bin Meng) Date: Thu, 16 Apr 2020 08:09:27 -0700 Subject: [PATCH v2 0/6] riscv: Make SBI v0.2 the default SBI version to work with OpenSBI v0.7 Message-ID: <1587049773-1464-1-git-send-email-bmeng.cn@gmail.com> 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(-)