Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch/riscv/riscv



Module Name:    src
Committed By:   skrll
Date:           Fri Sep 26 07:22:20 UTC 2025

Modified Files:
        src/sys/arch/riscv/riscv: bus_dma.c

Log Message:
risc-v: Adjust barriers issued in bus_dmamap_sync for the coherent case.

PR/59653

This change adjusts the memory barriers issued by bus_dmamap_sync for
the coherent case. In the non-coherent case the CPU cache operations
are expected to provide any, and all required barriers.

These barriers are emitted after bouncing for PREWRITE and before
bouncing for POSTREAD.

Net change:

op                      old                     new
---------------------   ----------------------  --------------
PREREAD                 none                    fence rw,ow
PREWRITE                fence iorw,iorw         fence rw,ow
PREREAD|PREWRITE        fence iorw,iorw         fence w,ow
POSTREAD                fence iorw,iorw         fence ir,r
POSTWRITE               none                    none
POSTREAD|POSTWRITE      fence iorw,iorw         fence ir,r


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/riscv/riscv/bus_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index