]> www.infradead.org Git - users/willy/xarray.git/commit
riscv: vector: add a comment when calling riscv_setup_vsize()
authorAndy Chiu <andy.chiu@sifive.com>
Thu, 9 May 2024 16:26:51 +0000 (00:26 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 30 May 2024 21:33:04 +0000 (14:33 -0700)
commit77afe3e514b89a12143c89d263cfe2365672cfc3
tree0133d859e52116d6ea0c578beecc1957a606e2db
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
riscv: vector: add a comment when calling riscv_setup_vsize()

The function would fail when it detects the calling hart's vlen doesn't
match the first one's. The boot hart is the first hart calling this
function during riscv_fill_hwcap, so it is impossible to fail here. Add
a comment about this behavior.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240510-zve-detection-v5-1-0711bdd26c12@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpufeature.c