Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/virtio viocon(4): Fix bus_dmamap_sync after tx: POST...



details:   https://anonhg.NetBSD.org/src/rev/f72fbdae17d9
branches:  trunk
changeset: 368936:f72fbdae17d9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Aug 13 17:31:21 2022 +0000

description:
viocon(4): Fix bus_dmamap_sync after tx: POSTWRITE, not POSTREAD.

diffstat:

 sys/dev/virtio/viocon.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0dbdcfd1ada9 -r f72fbdae17d9 sys/dev/virtio/viocon.c
--- a/sys/dev/virtio/viocon.c   Sat Aug 13 17:06:55 2022 +0000
+++ b/sys/dev/virtio/viocon.c   Sat Aug 13 17:31:21 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: viocon.c,v 1.3 2022/08/13 17:02:53 riastradh Exp $     */
+/*     $NetBSD: viocon.c,v 1.4 2022/08/13 17:31:21 riastradh Exp $     */
 /*     $OpenBSD: viocon.c,v 1.8 2021/11/05 11:38:29 mpi Exp $  */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viocon.c,v 1.3 2022/08/13 17:02:53 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viocon.c,v 1.4 2022/08/13 17:31:21 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -332,7 +332,7 @@
        while (virtio_dequeue(vsc, vq, &slot, &len) == 0) {
                bus_dmamap_sync(virtio_dmat(vsc), vp->vp_dmamap,
                    vp->vp_tx_buf - vp->vp_rx_buf + slot * BUFSIZE, BUFSIZE,
-                   BUS_DMASYNC_POSTREAD);
+                   BUS_DMASYNC_POSTWRITE);
                virtio_dequeue_commit(vsc, vq, slot);
                ndone++;
        }



Home | Main Index | Thread Index | Old Index