Skip to content

Zbb + fast-unaligned string optimization

Heiko Stuebner linux-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4RISC-V: use bit-values instead of numbers to identify patched cpu-featuresarch/riscv/include/asm/errata_list.h arch/riscv/kernel/cpufeature.c+8 -101 reply
2/4RISC-V: add alternative-field for bits to not match againstarch/riscv/include/asm/alternative-macros.h arch/riscv/include/asm/alternative.h arch/riscv/include/asm/errata_list.h +4 more+48 -442 replies
3/4RISC-V: add cpufeature probing for fast-unaligned accessarch/riscv/include/asm/errata_list.h arch/riscv/kernel/cpufeature.c+25 -40 replies
4/4RISC-V: add strcmp variant using zbb and fast-unaligned accessarch/riscv/lib/strcmp.S+169 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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