summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-01-18 05:49:52 +0000
committerdlg <dlg@openbsd.org>2013-01-18 05:49:52 +0000
commit73500549cebb97ee7a6b61951201f889c2efd5ec (patch)
tree0118639c845eddb639e03f2ec7b2472c9134b2b7
parentConstrain the amount of kernel memory used by NTFS. Keep a small cache of (diff)
downloadwireguard-openbsd-73500549cebb97ee7a6b61951201f889c2efd5ec.tar.xz
wireguard-openbsd-73500549cebb97ee7a6b61951201f889c2efd5ec.zip
data transfers suit STREAMING dma maps.
-rw-r--r--sys/dev/ic/mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index f728348c295..ebcec580603 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.182 2013/01/17 03:05:11 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.183 2013/01/18 05:49:52 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -1524,7 +1524,7 @@ mpi_load_xs(struct mpi_ccb *ccb)
}
error = bus_dmamap_load(sc->sc_dmat, dmap,
- xs->data, xs->datalen, NULL,
+ xs->data, xs->datalen, NULL, BUS_DMA_STREAMING |
(xs->flags & SCSI_NOSLEEP) ? BUS_DMA_NOWAIT : BUS_DMA_WAITOK);
if (error) {
printf("%s: error %d loading dmamap\n", DEVNAME(sc), error);