]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: Fix riscv_online_cpu_vec
authorAndrew Jones <ajones@ventanamicro.com>
Tue, 4 Mar 2025 12:00:17 +0000 (13:00 +0100)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 19 Mar 2025 14:23:29 +0000 (14:23 +0000)
commit5af72a818612332a11171b16f27a62ec0a0f91d7
tree16ce9fb656607e43651175af7d1e59edc87a0442
parenta00e022be5315c5a1f47521a1cc6d3b71c8e9c44
riscv: Fix riscv_online_cpu_vec

We shouldn't probe when we already know vector is unsupported and
we should probe when we see we don't yet know whether it's supported.
Furthermore, we should ensure we've set the access type to
unsupported when we don't have vector at all.

Fixes: e7c9d66e313b ("RISC-V: Report vector unaligned access speed hwprobe")
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250304120014.143628-12-ajones@ventanamicro.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/kernel/unaligned_access_speed.c