[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250924-b6258c49a33a07d027bdc04b@orel>
Date: Wed, 24 Sep 2025 14:14:32 -0500
From: Andrew Jones <ajones@...tanamicro.com>
To: Yao Zihong <zihong.plct@...c.iscas.ac.cn>
Cc: linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
zihongyao@...look.com, zhangyin2018@...as.ac.cn,
Paul Walmsley <paul.walmsley@...ive.com>, Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>, Alexandre Ghiti <alex@...ti.fr>
Subject: Re: [PATCH v1 0/2] riscv: hwprobe: add Zicbop support
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@...ts.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
Powered by blists - more mailing lists