[PATCH v1 00/13] riscv: report more ISA extensions through hwprobe

From: Clément Léger
Date: Wed Oct 11 2023 - 07:19:25 EST


In order to be able to gather more information about the supported ISA
extensions from userspace using the hwprobe syscall, add more ISA extensions
report. This series adds the following ISA extensions support:

- Zfh[min]
- Zvfh[min]
- Zihintntl
- Zvbb
- Zvbc
- Zvkb
- Zvkg
- Zvkned
- Zvknh[ab]
- Zvksed
- Zvksh
- Zvkn
- Zvknc
- Zvkng
- Zvks
- Zvksc
- Zvksg
- Zvkt

Clément Léger (13):
riscv: fatorize hwprobe ISA extension reporting
riscv: add ISA extension probing for Zv* extensions
riscv: hwprobe: export Zv* ISA extensions
dt-bindings: riscv: add Zv* ratified crypto ISA extensions description
riscv: add ISA extension probing for Zfh/Zfhmin
riscv: hwprobe: export Zfh/Zfhmin ISA extensions
dt-bindings: riscv: add Zfh/Zfhmin ISA extensions description
riscv: add ISA extension probing for Zihintntl
riscv: hwprobe: export Zhintntl ISA extension
dt-bindings: riscv: add Zihintntl ISA extension description
riscv: add ISA extension probing for Zvfh[min]
riscv: hwprobe: export Zvfh[min] ISA extensions
dt-bindings: riscv: add Zvfh[min] ISA extension description

.../devicetree/bindings/riscv/extensions.yaml | 127 ++++++++++++++++++
Documentation/riscv/hwprobe.rst | 65 +++++++++
arch/riscv/include/asm/hwcap.h | 21 +++
arch/riscv/include/uapi/asm/hwprobe.h | 21 +++
arch/riscv/kernel/cpufeature.c | 21 +++
arch/riscv/kernel/sys_riscv.c | 53 ++++++--
6 files changed, 294 insertions(+), 14 deletions(-)

--
2.42.0