Skip to content

riscv: Add Zicbop & prefetchw support

[email protected] linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 38 repliesIn review

Changes in v2 from the cover letter

- Separate from the qspinlock series
- Optimize coding convention with last review advice
- Add DEFINE_INSN_S type in insn-def.h
- Add CBO_PREFETCH_I/R/W

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: Add Zicbop instruction definitions & cpufeaturearch/riscv/Kconfig arch/riscv/include/asm/hwcap.h arch/riscv/include/asm/insn-def.h +1 more+77 -024 replies
2/3riscv: Add ARCH_HAS_PRETCHW support with Ziboparch/riscv/include/asm/processor.h+16 -06 replies
3/3riscv: xchg: Prefetch the destination word for sc.warch/riscv/include/asm/cmpxchg.h+3 -18 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 0/3] riscv: Add Zicbop & prefetchw support

From: Guo Ren <[email protected]>

This patch series adds Zicbop support and then enables the Linux prefetchw feature. It's based on v6.7-rc7.

PATCH[1] - Add Zicbop support
PATCH[2] - Add prefetchw support
PATCH[3] - Enhance xchg_small

Changelog:
V2:
- Separate from the qspinlock series
- Optimize coding convention with last review advice
- Add DEFINE_INSN_S type in insn-def.h
- Add CBO_PREFETCH_I/R/W

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

Guo Ren (3):
riscv: Add Zicbop instruction definitions & cpufeature
riscv: Add ARCH_HAS_PRETCHW support with Zibop
riscv: xchg: Prefetch the destination word for sc.w

 arch/riscv/Kconfig                 | 15 ++++++++
 arch/riscv/include/asm/cmpxchg.h   |  4 +-
 arch/riscv/include/asm/hwcap.h     |  1 +
 arch/riscv/include/asm/insn-def.h  | 60 ++++++++++++++++++++++++++++++
 arch/riscv/include/asm/processor.h | 16 ++++++++
 arch/riscv/kernel/cpufeature.c     |  1 +
 6 files changed, 96 insertions(+), 1 deletion(-)
Signature · 1 line
2.40.1