mbox series

[0/2] tools: Add barrier implementations for riscv

Message ID 20240729-optimize_ring_buffer_read_riscv-v1-0-6bbc0f2434ee@rivosinc.com (mailing list archive)
Headers show
Series tools: Add barrier implementations for riscv | expand

Message

Charlie Jenkins July 29, 2024, 8:50 p.m. UTC
Add support for riscv specific barrier implementations to the tools
tree, so that fence instructions can be emitted for synchronization.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
---
Charlie Jenkins (2):
      tools: Add riscv barrier implementation
      tools: Optimize ring buffer for riscv

 tools/arch/riscv/include/asm/barrier.h | 39 ++++++++++++++++++++++++++++++++++
 tools/arch/riscv/include/asm/fence.h   | 13 ++++++++++++
 tools/include/asm/barrier.h            |  2 ++
 tools/include/linux/ring_buffer.h      |  2 +-
 4 files changed, 55 insertions(+), 1 deletion(-)
---
base-commit: 0c3836482481200ead7b416ca80c68a29cfdaabd
change-id: 20240725-optimize_ring_buffer_read_riscv-228491c4eb6e

Comments

Andrea Parri July 30, 2024, 9:18 a.m. UTC | #1
On Mon, Jul 29, 2024 at 01:50:34PM -0700, Charlie Jenkins wrote:
> Add support for riscv specific barrier implementations to the tools
> tree, so that fence instructions can be emitted for synchronization.
> 
> Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
> ---
> Charlie Jenkins (2):
>       tools: Add riscv barrier implementation
>       tools: Optimize ring buffer for riscv

LGTM.  For the series,

Reviewed-by: Andrea Parri <parri.andrea@gmail.com>

  Andrea