]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: hwprobe: Expose Zicbop extension and its block size
authorYao Zihong <zihong.plct@isrc.iscas.ac.cn>
Tue, 18 Nov 2025 16:23:24 +0000 (00:23 +0800)
committerPaul Walmsley <pjw@kernel.org>
Wed, 19 Nov 2025 16:19:29 +0000 (09:19 -0700)
commite0a504984a88a2f1c0131aca5115fd529fc9974a
tree1ad6ff21e85e75c6a836d4667cf944e3ed68aaac
parentad1bb4b8525e497c95d48a2d3fd2e81fba4b5ad7
riscv: hwprobe: Expose Zicbop extension and its block size

- Add `RISCV_HWPROBE_EXT_ZICBOP` to report the presence of the
  Zicbop extension.
- Add `RISCV_HWPROBE_KEY_ZICBOP_BLOCK_SIZE` to expose the block
  size (in bytes) when Zicbop is supported.
- Update hwprobe.rst to document the new extension bit and block
  size key, following the existing Zicbom/Zicboz style.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Yao Zihong <zihong.plct@isrc.iscas.ac.cn>
Link: https://patch.msgid.link/20251118162436.15485-2-zihong.plct@isrc.iscas.ac.cn
[pjw@kernel.org: updated to apply]
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