]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:10:17 +0000 (14:10 +0100)
commitb8759add751d0c70b51bfd20b91d407aac842544
treeeb678d30746984017e2df902ef470958fef4f1ad
parent4305480542c4ef08d3ded3ee12efab777e3c0ec5
riscv: cpufeature: add validation for zfa, zfh and zfhmin

[ Upstream commit 2e2cf5581fccc562f7faf174ffb9866fed5cafbd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/kernel/cpufeature.c
arch/riscv/kernel/sys_hwprobe.c