[PATCH 6/6] riscv: hwprobe: Report SiFive vector extensions only when available

Andy Chiu tchiu at tenstorrent.com
Fri Oct 16 14:55:09 PDT 2026


On Tue, Oct 06, 2026 at 09:53:03AM +0200, Radim Krcmár wrote:
> User-mode use of the SiFive vector extensions requires non-Off
> sstatus.VS, which we set only when has_vector() (CONFIG_RISCV_ISA_V and
> Zve32x on all harts).  Xsfvfnrclipxfqf and Xsfvfwmaccqqq also execute
> floating-point instructions, which additionally require non-Off
> sstatus.FS and hence has_fpu().  hwprobe reports the extensions from the
> per-hart vendor ISA bitmaps alone, so it can advertise extensions that
> are always disabled in user-mode.
> 
> Report correct environment to user-mode.
> 
> Fixes: 1a6274f03534 ("riscv: hwprobe: Add SiFive vendor extension support and probe for xsfqmaccdod and xsfqmaccqoq")
> Fixes: 1d91224394c9 ("riscv: hwprobe: Add SiFive xsfvfnrclipxfqf vendor extension")
> Fixes: d9669e33c8fa ("riscv: hwprobe: Add SiFive xsfvfwmaccqqq vendor extension")
> Signed-off-by: Radim Krcmár <radim.krcmar at oss.qualcomm.com>

Reviewed-by: Andy Chiu <tchiu at tenstorrent.com>




More information about the linux-riscv mailing list