From 4fca234da86241cf7a7617fceabf992548ad5f3d Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Wed, 8 Oct 2014 20:03:19 +0000 Subject: publish_avail_idx does not read the used ring, no need to call bus_dmamap_sync for it. --- sys/dev/pci/virtio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev') 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); } /* -- cgit v1.2.3