Skip to content

riscv: Unaligned access speed probing fixes and skipping

Andrew Jones linux-doc linux-riscv lkml 3 versions – Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 20 repliesApplied 8/8
  2. v28 patches 1 replySuperseded
  3. v19 patches 38 repliesSuperseded

Changes in v3 from the cover letter

- Fix compile when RISCV_PROBE_UNALIGNED_ACCESS is not selected

Patches in v3 All 8 applied

#Subject and filesSizeRepliesApplied
1/8riscv: Annotate unaligned access init functionsarch/riscv/include/asm/cpufeature.h arch/riscv/kernel/traps_misaligned.c arch/riscv/kernel/unaligned_access_speed.c+13 -130 repliesApplied
2/8riscv: Fix riscv_online_cpu_vecarch/riscv/kernel/unaligned_access_speed.c+4 -20 repliesApplied
3/8riscv: Fix check_unaligned_access_all_cpusarch/riscv/kernel/traps_misaligned.c arch/riscv/kernel/unaligned_access_speed.c+7 -100 repliesApplied
4/8riscv: Change check_unaligned_access_speed_all_cpus to voidarch/riscv/kernel/unaligned_access_speed.c+5 -100 repliesApplied
5/8riscv: Fix set up of cpu hotplug callbacksarch/riscv/kernel/unaligned_access_speed.c+13 -140 repliesApplied
6/8riscv: Fix set up of vector cpu hotplug callbackarch/riscv/kernel/unaligned_access_speed.c+16 -150 repliesApplied
7/8riscv: Add parameter for skipping access speed testsarch/riscv/kernel/unaligned_access_speed.c+121 -6618 repliesApplied
8/8Documentation/kernel-parameters: Add riscv unaligned speed parametersDocumentation/admin-guide/kernel-parameters.txt+16 -00 repliesApplied

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchAlexandre GhitiClément Léger
1/8R-b
2/8R-b
3/8R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b
7/8
8/8

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

Read the v3 thread

Cover letter [PATCH v3 0/8] riscv: Unaligned access speed probing fixes and skipping

The first six patches of this series are fixes and cleanups of the unaligned access speed probing code. The next patch introduces a kernel command line option that allows the probing to be skipped. This command line option is a different approach than Jesse's [1].
[1] takes a cpu-list for a particular speed, supporting heterogeneous platforms. With this approach, the kernel command line should only be used for homogeneous platforms. [1] also only allowed 'fast' and 'slow' to be selected. This parameter also supports 'unsupported', which could be useful for testing code paths gated on that. The final patch adds the documentation.

(I'd be happy to split the fixes from the new skip support if we want to discuss the skip support independently, but I want to base on the fixes and I'm not sure if patchwork supports Based-on: $MESSAGE_ID/$LORE_URL or not at the moment, so I'm just posting together for now in order to be able to check for my patchwork green lights!)

[1] https://lore.kernel.org/linux-riscv/[email protected]/

Thanks,
drew

---
v3:
- Fix compile when RISCV_PROBE_UNALIGNED_ACCESS is not selected

v2:
- Change to command line option from table

Andrew Jones (8):
riscv: Annotate unaligned access init functions
riscv: Fix riscv_online_cpu_vec
riscv: Fix check_unaligned_access_all_cpus
riscv: Change check_unaligned_access_speed_all_cpus to void
riscv: Fix set up of cpu hotplug callbacks
riscv: Fix set up of vector cpu hotplug callback
riscv: Add parameter for skipping access speed tests Documentation/kernel-parameters: Add riscv unaligned speed parameters

 .../admin-guide/kernel-parameters.txt         |  16 ++
 arch/riscv/include/asm/cpufeature.h           |   4 +-
 arch/riscv/kernel/traps_misaligned.c          |  14 +-
 arch/riscv/kernel/unaligned_access_speed.c    | 237 +++++++++++-------
 4 files changed, 168 insertions(+), 103 deletions(-)
Signature · 1 line
2.48.1