public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Risc-V cache operations
@ 2024-08-23  9:41 Mayuresh Chitale
  2024-08-23  9:41 ` [PATCH v2 1/2] riscv: Add support for defining instructions Mayuresh Chitale
  2024-08-23  9:41 ` [PATCH v2 2/2] riscv: cache: Add CBO instructions Mayuresh Chitale
  0 siblings, 2 replies; 5+ messages in thread
From: Mayuresh Chitale @ 2024-08-23  9:41 UTC (permalink / raw)
  To: u-boot
  Cc: Mayuresh Chitale, Rick Chen, Leo, Tom Rini, Heinrich Schuchardt,
	Michal Simek, Kongyang Liu, Randolph, Yu Chien Peter Lin,
	Ben Dooks, Samuel Holland, Dan Carpenter

This patchset adds support for using the CBO instructions to perform the
dcache flush/inval operations for the qemu-riscv board when those are
enabled. The CBO instructions are defined in the Risc-V CMO specification
which can be found at the link below:
https://github.com/riscv/riscv-CMOs/blob/master/specifications/cmobase-v1.0.pdf

Changes in v2:
 - Use cache functions in generic cache code instead of board specific code
 - Print the zicbom init status in case of a failure

Mayuresh Chitale (2):
  riscv: Add support for defining instructions
  riscv: cache: Add CBO instructions

 arch/riscv/Kconfig                |  4 ++
 arch/riscv/include/asm/insn-def.h | 42 ++++++++++++++
 arch/riscv/lib/cache.c            | 96 +++++++++++++++++++++++++++++++
 3 files changed, 142 insertions(+)
 create mode 100644 arch/riscv/include/asm/insn-def.h

-- 
2.34.1


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

end of thread, other threads:[~2024-10-28 10:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23  9:41 [PATCH v2 0/2] Risc-V cache operations Mayuresh Chitale
2024-08-23  9:41 ` [PATCH v2 1/2] riscv: Add support for defining instructions Mayuresh Chitale
2024-10-28 10:24   ` Leo Liang
2024-08-23  9:41 ` [PATCH v2 2/2] riscv: cache: Add CBO instructions Mayuresh Chitale
2024-10-28 10:45   ` Leo Liang

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