riscv: Unaligned access speed probing fixes and skipping
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
- v3 Latest8 patches 20 repliesApplied 8/8
- v28 patches 1 replySuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | riscv: Annotate unaligned access init functionsarch/ arch/ arch/ | +13 | 0 replies | Applied |
| 2/8 | riscv: Fix riscv_online_cpu_vecarch/ | +4 | 0 replies | Applied |
| 3/8 | riscv: Fix check_unaligned_access_all_cpusarch/ arch/ | +7 | 0 replies | Applied |
| 4/8 | riscv: Change check_unaligned_access_speed_all_cpus to voidarch/ | +5 | 0 replies | Applied |
| 5/8 | riscv: Fix set up of cpu hotplug callbacksarch/ | +13 | 0 replies | Applied |
| 6/8 | riscv: Fix set up of vector cpu hotplug callbackarch/ | +16 | 0 replies | Applied |
| 7/8 | riscv: Add parameter for skipping access speed testsarch/ | +121 | 18 replies | Applied |
| 8/8 | Documentation/kernel-parameters: Add riscv unaligned speed parametersDocumentation/ | +16 | 0 replies | Applied |
Reviews trailers per patch
6 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Alexandre Ghiti | Clément Léger |
|---|---|---|
| 1/8 | R-b | |
| 2/8 | R-b | |
| 3/8 | R-b | |
| 4/8 | R-b | R-b |
| 5/8 | R-b | R-b |
| 6/8 | R-b | |
| 7/8 | ||
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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