mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-09-08 18:21:29 +01:00
Linux has raised the default number of 64bit CPUs to 256 in commit
0fa749771993 ("riscv: Raise default NR_CPUS for 64BIT to 256").
OpenSBI should use a matching value for SBI_HARTMASK_MAX_BITS.
Introduce configuration variable CONFIG_HARTMASK_MAX_BITS with
range 32-512 and default 256.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260706160544.697409-1-heinrich.schuchardt@canonical.com
Signed-off-by: Anup Patel <anup@brainfault.org>
99 lines
2.0 KiB
Plaintext
99 lines
2.0 KiB
Plaintext
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
menu "Generic SBI Support"
|
|
|
|
config HARTMASK_MAX_BITS
|
|
int "Maximum number of hart mask bits (32-512)"
|
|
range 32 512
|
|
default 256
|
|
help
|
|
The hartmask is indexed using physical hart IDs so this setting
|
|
also represents the maximum number of hart IDs generic OpenSBI
|
|
can handle.
|
|
|
|
config DEFAULT_HART_STACK_SIZE
|
|
int "Default per-HART stack size (bytes)"
|
|
range 8192 1048576
|
|
default 8192
|
|
|
|
config CONSOLE_EARLY_BUFFER_SIZE
|
|
int "Early console buffer size (bytes)"
|
|
default 256
|
|
|
|
config ZKR_POLL_BUDGET
|
|
int "Zkr seed polling budget (iterations)"
|
|
default 1000
|
|
help
|
|
Maximum number of iterations to poll CSR_SEED when initializing
|
|
the stack guard variable. The Zkr specification doesn't define
|
|
a time limit on transitioning to ES16 between polls, which
|
|
makes it impossible to tell whether entropy is being
|
|
accumulated slowly or the entropy source is not functioning.
|
|
This also limits the wait time on systems with an event-driven
|
|
entropy source. A successful read doesn't consume a try.
|
|
|
|
config SBI_ECALL_TIME
|
|
bool "Timer extension"
|
|
default y
|
|
|
|
config SBI_ECALL_RFENCE
|
|
bool "RFENCE extension"
|
|
default y
|
|
|
|
config SBI_ECALL_IPI
|
|
bool "IPI extension"
|
|
default y
|
|
|
|
config SBI_ECALL_HSM
|
|
bool "Hart State Management extension"
|
|
default y
|
|
|
|
config SBI_ECALL_SRST
|
|
bool "System Reset extension"
|
|
default y
|
|
|
|
config SBI_ECALL_SUSP
|
|
bool "System Suspend extension"
|
|
default y
|
|
|
|
config SBI_ECALL_PMU
|
|
bool "Performance Monitoring Unit extension"
|
|
default y
|
|
|
|
config SBI_ECALL_DBCN
|
|
bool "Debug Console extension"
|
|
default y
|
|
|
|
config SBI_ECALL_CPPC
|
|
bool "CPPC extension"
|
|
default y
|
|
|
|
config SBI_ECALL_FWFT
|
|
bool "Firmware Feature extension"
|
|
default y
|
|
|
|
config SBI_ECALL_LEGACY
|
|
bool "SBI v0.1 legacy extensions"
|
|
default y
|
|
|
|
config SBI_ECALL_VENDOR
|
|
bool "Platform-defined vendor extensions"
|
|
default y
|
|
|
|
config SBI_ECALL_DBTR
|
|
bool "Debug Trigger Extension"
|
|
default y
|
|
|
|
config SBIUNIT
|
|
bool "Enable SBIUNIT tests"
|
|
default n
|
|
|
|
config SBI_ECALL_SSE
|
|
bool "SSE extension"
|
|
default y
|
|
|
|
config SBI_ECALL_MPXY
|
|
bool "MPXY extension"
|
|
default y
|
|
endmenu
|