Zbb + fast-unaligned string optimization
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | RISC-V: use bit-values instead of numbers to identify patched cpu-featuresarch/ arch/ | +8 | 1 reply | |
| 2/4 | RISC-V: add alternative-field for bits to not match againstarch/ arch/ arch/ +4 more | +48 | 2 replies | |
| 3/4 | RISC-V: add cpufeature probing for fast-unaligned accessarch/ arch/ | +25 | 0 replies | |
| 4/4 | RISC-V: add strcmp variant using zbb and fast-unaligned accessarch/ | +169 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Zbb + fast-unaligned string optimization
From: Heiko Stuebner <[email protected]>
This is a follow-up to my Zbb-based string optimization series, that then adds another strcmp variant for systems with Zbb that also can do unaligned accesses fast in hardware.
For this it uses Palmer's series for hw-feature probing that would read this property from firmware (devicetree), as the performance of unaligned accesses is an implementation detail of the relevant cpu core.
Right now we're still in the middle of discussing how more complex cpufeature-combinations should be handled in general, so this is more of a concept on one possible way to do it.
Dependencies:
- my Zbb string series
https://lore.kernel.org/r/[email protected]
- Palmer's hw-probing series
https://lore.kernel.org/r/[email protected]
Heiko Stuebner (4):
RISC-V: use bit-values instead of numbers to identify patched
cpu-features
RISC-V: add alternative-field for bits to not match against
RISC-V: add cpufeature probing for fast-unaligned access
RISC-V: add strcmp variant using zbb and fast-unaligned access
arch/riscv/include/asm/alternative-macros.h | 64 ++++---- arch/riscv/include/asm/alternative.h | 1 + arch/riscv/include/asm/errata_list.h | 27 ++-- arch/riscv/kernel/cpufeature.c | 33 +++- arch/riscv/lib/strcmp.S | 170 +++++++++++++++++++- arch/riscv/lib/strlen.S | 2 +- arch/riscv/lib/strncmp.S | 2 +- 7 files changed, 245 insertions(+), 54 deletions(-)
Signature · 7 lines
2.35.1 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv