riscv: hwprobe: Add support for probing V in RISCV_HWPROBE_KEY_IMA_EXT_0
authorAndy Chiu <andy.chiu@sifive.com>
Mon, 5 Jun 2023 11:07:00 +0000 (11:07 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 8 Jun 2023 14:16:36 +0000 (07:16 -0700)
commit162e4df137c1fea6557fda3e4cdf5dc6ca6d5510
tree60dc9640b7e474a63a533ba6dc17f3f18db680ea
parentdc6667a4e7e36f283bcd0264a0be55adae4d6f86
riscv: hwprobe: Add support for probing V in RISCV_HWPROBE_KEY_IMA_EXT_0

Probing kernel support for Vector extension is available now. This only
add detection for V only. Extenions like Zvfh, Zk are not in this scope.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Evan Green <evan@rivosinc.com>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20230605110724.21391-4-andy.chiu@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Documentation/riscv/hwprobe.rst
arch/riscv/include/uapi/asm/hwprobe.h
arch/riscv/kernel/sys_riscv.c