[PATCH 0/2] riscv: unaligned: stop using kthread for vector speed probe

Anirudh Srinivasan asrinivasan at oss.tenstorrent.com
Wed Jun 17 07:21:57 PDT 2026


Hi,

On Tue, Jun 16, 2026 at 10:38 PM Nam Cao <namcao at linutronix.de> wrote:
>
> 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(-)

Tested on Tenstorrent Blackhole with Sifive x280 cores. Slowing down
the unaligned vector access speed probe doesn't cause boot to fail
now.

Tested-by: Anirudh Srinivasan <asrinivasan at oss.tenstorrent.com>

> --
> 2.47.3
>



More information about the linux-riscv mailing list