]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: vector: Use vlenb from DT for thead
authorCharlie Jenkins <charlie@rivosinc.com>
Thu, 14 Nov 2024 02:21:11 +0000 (18:21 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sat, 18 Jan 2025 20:33:29 +0000 (12:33 -0800)
commit377be47f90e411c10440650864d72d2ecb639bd7
treedcfbba3bdbf69ae58dafb85881a71603597ba6bd
parentcddd63869f9214f2bc5c4b89a8ea1bd0ff4d89c5
riscv: vector: Use vlenb from DT for thead

If thead,vlenb is provided in the device tree, prefer that over reading
the vlenb csr.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Tested-by: Yangyu Chen <cyy@cyyself.name>
Link: https://lore.kernel.org/r/20241113-xtheadvector-v11-5-236c22791ef9@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig.vendor
arch/riscv/include/asm/cpufeature.h
arch/riscv/include/asm/vendor_extensions/thead.h
arch/riscv/kernel/cpufeature.c
arch/riscv/kernel/vector.c
arch/riscv/kernel/vendor_extensions/thead.c