Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

riscv: hwprobe: export Zilsd and Zclsd ISA extensions

Export Zilsd and Zclsd ISA extensions through hwprobe.

Signed-off-by: Pincheng Wang <pincheng.plct@isrc.iscas.ac.cn>
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Link: https://patch.msgid.link/20250826162939.1494021-4-pincheng.plct@isrc.iscas.ac.cn
[pjw@kernel.org: fixed whitespace; updated to apply]
Signed-off-by: Paul Walmsley <pjw@kernel.org>

authored by

Pincheng Wang and committed by
Paul Walmsley
6118ebed 3f0cbfb8

+13
+8
Documentation/arch/riscv/hwprobe.rst
··· 281 281 * :c:macro:`RISCV_HWPROBE_EXT_ZICBOP`: The Zicbop extension is supported, as 282 282 ratified in commit 3dd606f ("Create cmobase-v1.0.pdf") of riscv-CMOs. 283 283 284 + * :c:macro:`RISCV_HWPROBE_EXT_ZILSD`: The Zilsd extension is supported as 285 + defined in the RISC-V ISA manual starting from commit f88abf1 ("Integrating 286 + load/store pair for RV32 with the main manual") of the riscv-isa-manual. 287 + 288 + * :c:macro:`RISCV_HWPROBE_EXT_ZCLSD`: The Zclsd extension is supported as 289 + defined in the RISC-V ISA manual starting from commit f88abf1 ("Integrating 290 + load/store pair for RV32 with the main manual") of the riscv-isa-manual. 291 + 284 292 * :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: Deprecated. Returns similar values to 285 293 :c:macro:`RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF`, but the key was 286 294 mistakenly classified as a bitmask rather than a value.
+3
arch/riscv/include/uapi/asm/hwprobe.h
··· 84 84 #define RISCV_HWPROBE_EXT_ZABHA (1ULL << 58) 85 85 #define RISCV_HWPROBE_EXT_ZALASR (1ULL << 59) 86 86 #define RISCV_HWPROBE_EXT_ZICBOP (1ULL << 60) 87 + #define RISCV_HWPROBE_EXT_ZILSD (1ULL << 61) 88 + #define RISCV_HWPROBE_EXT_ZCLSD (1ULL << 62) 89 + 87 90 #define RISCV_HWPROBE_KEY_CPUPERF_0 5 88 91 #define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0) 89 92 #define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0)
+2
arch/riscv/kernel/sys_hwprobe.c
··· 121 121 EXT_KEY(ZBS); 122 122 EXT_KEY(ZCA); 123 123 EXT_KEY(ZCB); 124 + EXT_KEY(ZCLSD); 124 125 EXT_KEY(ZCMOP); 125 126 EXT_KEY(ZICBOM); 126 127 EXT_KEY(ZICBOP); ··· 131 130 EXT_KEY(ZIHINTNTL); 132 131 EXT_KEY(ZIHINTPAUSE); 133 132 EXT_KEY(ZIHPM); 133 + EXT_KEY(ZILSD); 134 134 EXT_KEY(ZIMOP); 135 135 EXT_KEY(ZKND); 136 136 EXT_KEY(ZKNE);