[PATCH 3/3] include: sbi: Lift the maximum harts to 1024

Xiang W wxjstz at 126.com
Tue Aug 5 18:38:14 PDT 2025


在 2025-08-06三的 09:04 +0800,wu.fei9 at sanechips.com.cn写道:
> It is expected to have riscv server boards with many cores very soon.
> 
> Signed-off-by: Wu Fei <wu.fei9 at sanechips.com.cn>
> ---
>  include/sbi/sbi_hartmask.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/sbi/sbi_hartmask.h b/include/sbi/sbi_hartmask.h
> index 200ab6e..2f94f39 100644
> --- a/include/sbi/sbi_hartmask.h
> +++ b/include/sbi/sbi_hartmask.h
> @@ -20,7 +20,7 @@
>   * also represents the maximum number of HART ids generic OpenSBI
>   * can handle.
>   */
> -#define SBI_HARTMASK_MAX_BITS          128
> +#define SBI_HARTMASK_MAX_BITS          1024
128 is suitable for most cases. Adding this macro will increase 
the memory consumption of most platforms. It is recommended to 
add a custom option in Kconfig

Regards,
Xiang W
> 
>  /** Representation of hartmask */
>  struct sbi_hartmask {
> --
> 2.43.0




More information about the opensbi mailing list