[PATCH 0/2] riscv: unaligned: stop using kthread for vector speed probe
Nam Cao
namcao at linutronix.de
Tue Jun 16 20:38:23 PDT 2026
Hi,
This series is follow-up to the discussion at:
https://lore.kernel.org/linux-riscv/20260612-vec_unaligned_drop_init-v1-1-df969210ae34@oss.tenstorrent.com/
It removes the kthread usage for unaligned vector access speed probe, avoiding
a bug that the kthread may still be excuting a __init function that have
already been freed.
It also allows removing some vdso synchronization, simplify the code.
This kthread has been bothering me for a while now, and the recent bug report
pushed me to post this series.
Nam Cao (2):
riscv: unaligned: stop using kthread for
check_vector_unaligned_access()
Revert "riscv: hwprobe: Fix stale vDSO data for late-initialized keys
at boot"
arch/riscv/include/asm/hwprobe.h | 7 ---
arch/riscv/include/asm/vdso/arch_data.h | 6 --
arch/riscv/kernel/sys_hwprobe.c | 70 ++++------------------
arch/riscv/kernel/unaligned_access_speed.c | 19 +-----
arch/riscv/kernel/vdso/hwprobe.c | 2 +-
5 files changed, 15 insertions(+), 89 deletions(-)
--
2.47.3
More information about the linux-riscv
mailing list