]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: hwprobe: Add SiFive vendor extension support and probe for xsfqmaccdod and...
authorCyan Yang <cyan.yang@sifive.com>
Fri, 18 Apr 2025 05:32:31 +0000 (13:32 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 8 May 2025 18:01:43 +0000 (11:01 -0700)
commit1a6274f035346e76835d46096136dd3e6cca9575
tree1f15724debf3e09b403a98f636050d5e0aa412a3
parente8fd215ed0eb814486d50b4835007cbc50b2c2b7
riscv: hwprobe: Add SiFive vendor extension support and probe for xsfqmaccdod and xsfqmaccqoq

Add a new hwprobe key "RISCV_HWPROBE_KEY_VENDOR_EXT_SIFIVE_0" which allows
userspace to probe for the new vendor extensions from SiFive. Also, add
new hwprobe for SiFive "xsfvqmaccdod" and "xsfvqmaccqoq" vendor
extensions.

Signed-off-by: Cyan Yang <cyan.yang@sifive.com>
Link: https://lore.kernel.org/r/20250418053239.4351-5-cyan.yang@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/hwprobe.h
arch/riscv/include/asm/vendor_extensions/sifive_hwprobe.h [new file with mode: 0644]
arch/riscv/include/uapi/asm/vendor/sifive.h [new file with mode: 0644]
arch/riscv/kernel/sys_hwprobe.c
arch/riscv/kernel/vendor_extensions/Makefile
arch/riscv/kernel/vendor_extensions/sifive_hwprobe.c [new file with mode: 0644]