Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci unload payload dma map upon command completion
details: https://anonhg.NetBSD.org/src/rev/fa7560c14343
branches: trunk
changeset: 319591:fa7560c14343
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Jun 03 19:50:20 2018 +0000
description:
unload payload dma map upon command completion
diffstat:
sys/dev/pci/ld_virtio.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 3c999e738f03 -r fa7560c14343 sys/dev/pci/ld_virtio.c
--- a/sys/dev/pci/ld_virtio.c Sun Jun 03 19:47:35 2018 +0000
+++ b/sys/dev/pci/ld_virtio.c Sun Jun 03 19:50:20 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_virtio.c,v 1.18 2018/06/03 19:47:35 jakllsch Exp $ */
+/* $NetBSD: ld_virtio.c,v 1.19 2018/06/03 19:50:20 jakllsch Exp $ */
/*
* Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_virtio.c,v 1.18 2018/06/03 19:47:35 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_virtio.c,v 1.19 2018/06/03 19:50:20 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -447,6 +447,7 @@
0, bp->b_bcount,
(bp->b_flags & B_READ)?BUS_DMASYNC_POSTREAD
:BUS_DMASYNC_POSTWRITE);
+ bus_dmamap_unload(virtio_dmat(vsc), vr->vr_payload);
bus_dmamap_sync(virtio_dmat(vsc), vr->vr_cmdsts,
sizeof(struct virtio_blk_req_hdr), sizeof(uint8_t),
BUS_DMASYNC_POSTREAD);
Home |
Main Index |
Thread Index |
Old Index