Skip to content

riscv: unaligned: stop using kthread for vector speed probe

Nam Cao linux-riscv lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2riscv: unaligned: stop using kthread for check_vector_unaligned_access()arch/riscv/kernel/unaligned_access_speed.c+2 -173 replies
2/2Revert "riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot"arch/riscv/include/asm/hwprobe.h arch/riscv/include/asm/vdso/arch_data.h arch/riscv/kernel/sys_hwprobe.c +1 more+13 -721 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAnirudh SrinivasanJesse Taube
SeriesT-b
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.47.3