]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: hwprobe: add support for RISCV_HWPROBE_KEY_IMA_EXT_1
authorPaul Walmsley <pjw@kernel.org>
Mon, 26 Jan 2026 04:09:55 +0000 (21:09 -0700)
committerPaul Walmsley <pjw@kernel.org>
Thu, 29 Jan 2026 09:38:40 +0000 (02:38 -0700)
commit462a94fb8ae8ba0d4d3901c7283b4af052ab8804
tree7b5a479f32e1d8e3ad20f369517f91d3980fe838
parent2af7c9cf021c5dabe880b68e5cc22c618060d954
riscv: hwprobe: add support for RISCV_HWPROBE_KEY_IMA_EXT_1

We've run out of bits to describe RISC-V ISA extensions in our initial
hwprobe key, RISCV_HWPROBE_KEY_IMA_EXT_0.  So, let's add
RISCV_HWPROBE_KEY_IMA_EXT_1, along with the framework to set the
appropriate hwprobe tuple, and add testing for it.

Based on a suggestion from Andrew Jones <andrew.jones@oss.qualcomm.com>,
also fix the documentation for RISCV_HWPROBE_KEY_IMA_EXT_0.

Reviewed-by: Andrew Jones <andrew.jones@oss.qualcomm.com>
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Documentation/arch/riscv/hwprobe.rst
arch/riscv/include/asm/hwprobe.h
arch/riscv/include/uapi/asm/hwprobe.h
arch/riscv/kernel/sys_hwprobe.c
tools/testing/selftests/riscv/hwprobe/which-cpus.c