diff mbox series

[v2,4/6] riscv: Add SMP Kconfig option dependency for U-Boot proper

Message ID 1587049773-1464-5-git-send-email-bmeng.cn@gmail.com
State Accepted
Commit 6fa022e8fc7fd180c05934e71d4b9351b549f5b7
Headers show
Series riscv: Make SBI v0.2 the default SBI version to work with OpenSBI v0.7 | expand

Commit Message

Bin Meng April 16, 2020, 3:09 p.m. UTC
U-Boot proper running in S-mode only need SMP support when using
SBI v0.1. With SBI v0.2 HSM extension, it does not need implement
multicore boot in U-Boot proper.

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>

---

Changes in v2:
- add "!RISCV_SMODE" to the dependency

 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Atish Patra April 21, 2020, 12:25 a.m. UTC | #1
On Thu, Apr 16, 2020 at 8:18 AM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> U-Boot proper running in S-mode only need SMP support when using
> SBI v0.1. With SBI v0.2 HSM extension, it does not need implement
> multicore boot in U-Boot proper.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>
> ---
>
> Changes in v2:
> - add "!RISCV_SMODE" to the dependency
>
>  arch/riscv/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 5ef6849..a252cdb 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -193,6 +193,7 @@ config SYS_MALLOC_F_LEN
>
>  config SMP
>         bool "Symmetric Multi-Processing"
> +       depends on SBI_V01 || !RISCV_SMODE
>         help
>           This enables support for systems with more than one CPU. If
>           you say N here, U-Boot will run on single and multiprocessor
> --
> 2.7.4
>


Reviewed-by: Atish Patra <atish.patra at wdc.com>
diff mbox series

Patch

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 5ef6849..a252cdb 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -193,6 +193,7 @@  config SYS_MALLOC_F_LEN
 
 config SMP
 	bool "Symmetric Multi-Processing"
+	depends on SBI_V01 || !RISCV_SMODE
 	help
 	  This enables support for systems with more than one CPU. If
 	  you say N here, U-Boot will run on single and multiprocessor