]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: Detect unaligned vector accesses supported
authorJesse Taube <jesse@rivosinc.com>
Thu, 17 Oct 2024 19:00:21 +0000 (12:00 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 18 Oct 2024 19:38:33 +0000 (12:38 -0700)
commitd1703dc7bc8ec7adb91f5ceaf1556ff1ed212858
tree8d6cfe05cb0dc3aba319c9aea977598eaa7174bd
parentc05a62c92516d7679c819f8a5177cf84c8668954
RISC-V: Detect unaligned vector accesses supported

Run an unaligned vector access to test if the system supports
vector unaligned access. Add the result to a new key in hwprobe.
This is useful for usermode to know if vector misaligned accesses are
supported and if they are faster or slower than equivalent byte accesses.

Signed-off-by: Jesse Taube <jesse@rivosinc.com>
Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Link: https://lore.kernel.org/r/20241017-jesse_unaligned_vector-v10-4-5b33500160f8@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/include/asm/cpufeature.h
arch/riscv/include/asm/entry-common.h
arch/riscv/include/asm/hwprobe.h
arch/riscv/include/asm/vector.h
arch/riscv/include/uapi/asm/hwprobe.h
arch/riscv/kernel/Makefile
arch/riscv/kernel/sys_hwprobe.c
arch/riscv/kernel/traps_misaligned.c
arch/riscv/kernel/unaligned_access_speed.c
arch/riscv/kernel/vector.c