diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2012-08-16 05:38:14 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2012-08-16 05:38:14 +0000 |
commit | 6e741428c56924dc244f79431e4481fe937a7b3e (patch) | |
tree | fb85af5e45ddd3f679f680831b6512685ae2ec9e | |
parent | 79971bbebba6ae79df4bb2e9eddf7ed1d6adf0a8 (diff) |
fix up the dma sync for the command frame in mfi_done.
-rw-r--r-- | sys/dev/ic/mfi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 1ff9ce2c4ec..3ee4261a62f 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.130 2012/08/14 10:44:36 dlg Exp $ */ +/* $OpenBSD: mfi.c,v 1.131 2012/08/16 05:38:13 dlg Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -2062,7 +2062,8 @@ mfi_done(struct mfi_ccb *ccb) struct mfi_softc *sc = ccb->ccb_sc; bus_dmamap_sync(sc->sc_dmat, MFIMEM_MAP(sc->sc_frames), - ccb->ccb_pframe_offset, sc->sc_frames_size, BUS_DMASYNC_PREREAD); + ccb->ccb_pframe_offset, sc->sc_frames_size, + BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE); ccb->ccb_done(ccb); } |