riscv: stack: Add config of thread stack size
authorGuo Ren <guoren@linux.alibaba.com>
Wed, 14 Jun 2023 01:30:18 +0000 (21:30 -0400)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 22 Jun 2023 17:38:37 +0000 (10:38 -0700)
commita7555f6b62e7f5b3a3b783cc6d4c4dafcb8527c8
treefff39ffa8d5794d57a8d43c64268705b71acd017
parentdd69d07a5a6c5a9ada85321ab0695e7978fc6f3e
riscv: stack: Add config of thread stack size

The commit 0cac21b02ba5 ("riscv: use 16KB kernel stack on 64-bit")
increases the thread size mandatory, but some scenarios, such as D1 with
a small memory footprint, would suffer from that. After independent irq
stack support, let's give users a choice to determine their custom stack
size.

Link: https://lore.kernel.org/linux-riscv/5f6e6c39-b846-4392-b468-02202404de28@www.fastmail.com/
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20230614013018.2168426-4-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/include/asm/thread_info.h