]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Only default to spinwait on SBI-0.1 and M-mode
authorPalmer Dabbelt <palmer@rivosinc.com>
Thu, 21 Apr 2022 17:03:55 +0000 (10:03 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Jun 2022 01:59:26 +0000 (18:59 -0700)
commit008d72bc7029149a2c07b326b6e74768ebc08d50
treeaea5d4142803655364666549dfe95a3db91c604a
parent0217340464823ff020669eacb5b8d19a3da6285f
RISC-V: Only default to spinwait on SBI-0.1 and M-mode

The spinwait boot method has been superseded by the SBI HSM extension
for some time now, but it still enabled by default.  This causes some
issues on large hart count systems, which will hang if a physical hart
exists that is larger than NR_CPUS.

Users on modern SBI implementation don't need spinwait, and while it's
probably possible to deal with some of the spinwait issues let's just
restrict the default to systems that are likely to actually use it.

Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20220421170354.10555-1-palmer@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig