From 4d7f883711f3eedc9874b26b9ddfdf0c91c50694 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 7 Apr 2012 05:51:43 +0000 Subject: [PATCH] Do a dma sync before the descriptors are chained together. I need to find a better place to do this.. --- sys/dev/ath/if_ath_tx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c index d2602a77b437..d27df0772595 100644 --- a/sys/dev/ath/if_ath_tx.c +++ b/sys/dev/ath/if_ath_tx.c @@ -322,6 +322,7 @@ ath_tx_chaindesclist(struct ath_softc *sc, struct ath_buf *bf) ds->ds_ctl0, ds->ds_ctl1, ds->ds_hw[0], ds->ds_hw[1]); bf->bf_lastds = ds; } + bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, BUS_DMASYNC_PREWRITE); } /* @@ -372,6 +373,8 @@ ath_tx_chaindesclist_subframe(struct ath_softc *sc, struct ath_buf *bf) __func__, i, ds->ds_link, ds->ds_data, ds->ds_ctl0, ds->ds_ctl1, ds->ds_hw[0], ds->ds_hw[1]); bf->bf_lastds = ds; + bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, + BUS_DMASYNC_PREWRITE); } }