[PATCH v1 0/2] riscv: hwprobe: add Zicbop support
Andrew Jones
ajones at ventanamicro.com
Wed Sep 24 12:14:32 PDT 2025
On Thu, Sep 11, 2025 at 08:12:07PM +0800, Yao Zihong wrote:
> Add UAPI and kernel plumbing to expose the Zicbop extension presence
> and its block size through sys_hwprobe(). The interface mirrors
> Zicbom/Zicboz.
Yes, the changes to add Zicbop support should closely resemble those
of Zicbom/Zicboz. So I suggest you grep / git-blame, etc. one or both of
those extensions in order to read how they were done.
With a quick look at this series I can see several changes are missing,
such as
- an update to the documentation, Documentation/arch/riscv/hwprobe.rst
- a bump to RISCV_HWPROBE_MAX_KEY (as the comment below the change
this patch makes says to do)
- test(s) added to tools/testing/selftests/riscv/hwprobe/cbo.c
Thanks,
drew
> This allows userspace to safely discover and optimize
> for Zicbop when available.
>
> Yao Zihong (2):
> uapi: riscv: hwprobe: add Zicbop extension bit and block-size key
> riscv: hwprobe: report Zicbop presence and block size
>
> arch/riscv/include/uapi/asm/hwprobe.h | 2 ++
> arch/riscv/kernel/sys_hwprobe.c | 6 ++++++
> 2 files changed, 8 insertions(+)
>
> --
> 2.47.2
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
More information about the linux-riscv
mailing list