]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: hwprobe: Add MIPS vendor extension probing
authorAleksa Paunovic <aleksa.paunovic@htecgroup.com>
Thu, 24 Jul 2025 15:23:28 +0000 (17:23 +0200)
committerPaul Walmsley <pjw@kernel.org>
Fri, 19 Sep 2025 16:33:56 +0000 (10:33 -0600)
commitbb4b0f8a1bcbf8f4e3a0841aaefb3fd580d12fc9
tree4b55f26830de517ed095b30a18cf4fff841f310d
parent1d4ce63e338fc62f47f22d61cf4b1624caa8cf1c
riscv: hwprobe: Add MIPS vendor extension probing

Add a new hwprobe key "RISCV_HWPROBE_KEY_VENDOR_EXT_MIPS_0" which allows
userspace to probe for the new xmipsexectl vendor extension.

Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250724-p8700-pause-v5-4-a6cbbe1c3412@htecgroup.com
[pjw@kernel.org: fixed some checkpatch issues]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/hwprobe.h
arch/riscv/include/asm/vendor_extensions/mips_hwprobe.h [new file with mode: 0644]
arch/riscv/include/uapi/asm/hwprobe.h
arch/riscv/include/uapi/asm/vendor/mips.h [new file with mode: 0644]
arch/riscv/kernel/sys_hwprobe.c
arch/riscv/kernel/vendor_extensions/Makefile
arch/riscv/kernel/vendor_extensions/mips_hwprobe.c [new file with mode: 0644]