summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2014-10-08 20:03:19 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2014-10-08 20:03:19 +0000
commit4fca234da86241cf7a7617fceabf992548ad5f3d (patch)
tree93e4cc22aeb547a0ccb5fe8c67dfa2607efcf3e2 /sys/dev
parent2136313755d262d4d6a9b0dfae5c73fa6e1a22a7 (diff)
publish_avail_idx does not read the used ring, no need to call
bus_dmamap_sync for it.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/virtio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/virtio.c b/sys/dev/pci/virtio.c
index b6c74cf251f..d8321b8caa5 100644
--- a/sys/dev/pci/virtio.c
+++ b/sys/dev/pci/virtio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: virtio.c,v 1.10 2014/10/08 19:59:53 sf Exp $ */
+/* $OpenBSD: virtio.c,v 1.11 2014/10/08 20:03:18 sf Exp $ */
/* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */
/*
@@ -656,13 +656,11 @@ static void
publish_avail_idx(struct virtio_softc *sc, struct virtqueue *vq)
{
vq_sync_aring(sc, vq, BUS_DMASYNC_PREWRITE);
- vq_sync_uring(sc, vq, BUS_DMASYNC_PREREAD);
virtio_membar_producer();
vq->vq_avail->idx = vq->vq_avail_idx;
vq_sync_aring(sc, vq, BUS_DMASYNC_POSTWRITE);
vq->vq_queued = 1;
- vq_sync_uring(sc, vq, BUS_DMASYNC_POSTREAD);
}
/*