]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: cpufeature: add validation for zfa, zfh and zfhmin
authorClément Léger <cleger@rivosinc.com>
Tue, 27 May 2025 10:00:00 +0000 (12:00 +0200)
committerPaul Walmsley <pjw@kernel.org>
Fri, 19 Sep 2025 01:51:09 +0000 (19:51 -0600)
commit2e2cf5581fccc562f7faf174ffb9866fed5cafbd
treeedcef8ba030e218fccafe157e532768811737a67
parent568a2fa10dd06bbd8160e3f8cce9483fabcb7121
riscv: cpufeature: add validation for zfa, zfh and zfhmin

These extensions depends on the F one. Add a validation callback
checking for the F extension to be present. Now that extensions are
correctly reported using the F/D presence, we can remove the
has_fpu() check in hwprobe_isa_ext0().

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20250527100001.33284-1-cleger@rivosinc.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/cpufeature.c
arch/riscv/kernel/sys_hwprobe.c