riscv: allow case-insensitive ISA string parsing
authorYangyu Chen <cyy@cyyself.name>
Mon, 1 May 2023 16:17:38 +0000 (00:17 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 6 Jun 2023 22:19:30 +0000 (15:19 -0700)
commit255b34d799ddaaef5e8672b96c47a3b94fe85da9
treeac66d9bce362846718cd1a625c56967bab03e474
parentac9a78681b921877518763ba0e89202254349d1b
riscv: allow case-insensitive ISA string parsing

According to RISC-V Hart Capabilities Table (RHCT) description in UEFI
Forum ECR, the format of the ISA string is defined in the RISC-V
unprivileged specification which is case-insensitive. However, the
current ISA string parser in the kernel does not support ISA strings
with uppercase letters.

This patch modifies the ISA string parser in the kernel to support
case-insensitive ISA string parsing.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Yangyu Chen <cyy@cyyself.name>
Link: https://lore.kernel.org/r/tencent_B30EED51C7235CA1988890E5C658BE35C107@qq.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpu.c
arch/riscv/kernel/cpufeature.c