summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-12-27 02:29:01 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-12-27 02:29:01 +0000
commit0d19a6b10c9b4f0231e2fb8134c0d7ca2267007c (patch)
treea14238d965f68cb0b5f46104772199e6df527bd7 /sys
parent53f5716023287b2814c9088811afb3636d255a5f (diff)
1.90 again. use the right flags when creating a dmamap for use during
interrupts.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/mpi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 698c44d298a..6e7d41b293e 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.91 2007/12/27 02:27:09 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.92 2007/12/27 02:29:00 dlg Exp $ */
/*
* Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org>
@@ -816,7 +816,8 @@ mpi_alloc_ccbs(struct mpi_softc *sc)
ccb = &sc->sc_ccbs[i];
if (bus_dmamap_create(sc->sc_dmat, MAXPHYS,
- sc->sc_max_sgl_len, MAXPHYS, 0, 0,
+ sc->sc_max_sgl_len, MAXPHYS, 0,
+ BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW,
&ccb->ccb_dmamap) != 0) {
printf("%s: unable to create dma map\n", DEVNAME(sc));
goto free_maps;