Author: adrian
Date: Sat Apr  7 05:51:43 2012
New Revision: 233990
URL: http://svn.freebsd.org/changeset/base/233990

Log:
  Do a dma sync before the descriptors are chained together.
  
  I need to find a better place to do this..

Modified:
  head/sys/dev/ath/if_ath_tx.c

Modified: head/sys/dev/ath/if_ath_tx.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx.c        Sat Apr  7 05:48:26 2012        
(r233989)
+++ head/sys/dev/ath/if_ath_tx.c        Sat Apr  7 05:51:43 2012        
(r233990)
@@ -322,6 +322,7 @@ ath_tx_chaindesclist(struct ath_softc *s
                        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
                        __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);
        }
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to