public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] riscv: Add Zicbop & prefetchw support
@ 2025-04-21 14:24 Alexandre Ghiti
  2025-04-21 14:24 ` [PATCH v3 1/4] riscv: Introduce Zicbop instructions Alexandre Ghiti
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Alexandre Ghiti @ 2025-04-21 14:24 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Alexandre Ghiti, linux-riscv,
	linux-kernel
  Cc: Alexandre Ghiti

I found this lost series developed by Guo so here is a respin with the
comments on v2 applied.

This patch series adds Zicbop support and then enables the Linux
prefetch features.

Changelog:
V3:
 - Fix typo (Drew)
 - Split first patch (Drew)
 - Ensure that the bits [0:4] of the prefetch insns are zeroed
 - Move PREFETCHW_ASM out of ifdef (Guo)
 - Remove CBO_ prefix for prefetching insn
 - Add prefetch (Drew)

V2: https://lore.kernel.org/linux-riscv/20231231082955.16516-1-guoren@kernel.org/
 - 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/20230910082911.3378782-4-guoren@kernel.org/

Alexandre Ghiti (2):
  riscv: Introduce Zicbop instructions
  riscv: Add support for Zicbop

Guo Ren (2):
  riscv: Add ARCH_HAS_PREFETCH[W] support with Zicbop
  riscv: xchg: Prefetch the destination word for sc.w

 arch/riscv/Kconfig                  | 15 +++++++
 arch/riscv/include/asm/barrier.h    |  5 ---
 arch/riscv/include/asm/cacheflush.h |  1 +
 arch/riscv/include/asm/cmpxchg.h    |  4 +-
 arch/riscv/include/asm/hwcap.h      |  1 +
 arch/riscv/include/asm/insn-def.h   | 66 +++++++++++++++++++++++++++++
 arch/riscv/include/asm/processor.h  | 25 ++++++++++-
 arch/riscv/kernel/cpufeature.c      | 21 +++++++++
 arch/riscv/mm/cacheflush.c          | 14 ++++--
 9 files changed, 142 insertions(+), 10 deletions(-)

-- 
2.39.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-02 22:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-21 14:24 [PATCH v3 0/4] riscv: Add Zicbop & prefetchw support Alexandre Ghiti
2025-04-21 14:24 ` [PATCH v3 1/4] riscv: Introduce Zicbop instructions Alexandre Ghiti
2025-04-21 14:24 ` [PATCH v3 2/4] riscv: Add support for Zicbop Alexandre Ghiti
2025-04-21 14:24 ` [PATCH v3 3/4] riscv: Add ARCH_HAS_PREFETCH[W] support with Zicbop Alexandre Ghiti
2025-04-21 14:24 ` [PATCH v3 4/4] riscv: xchg: Prefetch the destination word for sc.w Alexandre Ghiti
2025-04-23 16:33 ` [PATCH v3 0/4] riscv: Add Zicbop & prefetchw support Andrea Parri
2025-06-02 22:12 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox