[PATCH 2/6] riscv: hwprobe: Report Zicbom and Zicboz only when available

Guodong Xu guodong.xu at oss.qualcomm.com
Sun Nov 8 02:45:55 PST 2026


On 2026-10-06 09:52, Radim Krčmář wrote:
>User-mode use of Zicbom and Zicboz requires senvcfg.CBCFE and
>senvcfg.CBZE, respectively, which we set only when all harts have the
>extension.  hwprobe reports the extensions from the per-hart ISA bitmaps
>alone, so it can advertise extensions that are always disabled in
>user-mode.
>
>Report correct environment to user-mode.
>
>Fixes: 1b57747e978f ("riscv: Enable cbo.zero only when all harts support Zicboz")
>Fixes: eb1003970940 ("RISC-V: hwprobe: Expose Zicbom extension and its block size")
>Signed-off-by: Radim Krčmář <radim.krcmar at oss.qualcomm.com>

Reviewed-by: Guodong Xu <guodong.xu at oss.qualcomm.com>

(Resending: the first copy of this mail bounced from the lists because
of a corrupted Cc header.)



More information about the linux-riscv mailing list