RISC-V: add f & d extension validation checks
authorConor Dooley <conor.dooley@microchip.com>
Wed, 12 Mar 2025 13:11:46 +0000 (13:11 +0000)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 25 Mar 2025 14:19:24 +0000 (14:19 +0000)
commit12e7fbb6a84e6c90a61330d152319e870bc01c46
tree4324c2ee8646340da0d05971c93248fd552e3028
parent38077ec8fc11fa62e85a3a7630cfa9f2b8fd9f65
RISC-V: add f & d extension validation checks

Using Clement's new validation callbacks, support checking that
dependencies have been satisfied for the floating point extensions.

The check for "d" might be slightly confusingly shorter than that of "f",
despite "d" depending on "f". This is because the requirement that a
hart supporting double precision must also support single precision,
should be validated by dt-bindings etc, not the kernel but lack of
support for single precision only is a limitation of the kernel.

Tested-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Clément Léger <cleger@rivosinc.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250312-reptile-platinum-62ee0f444a32@spud
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/kernel/cpufeature.c