Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2012 05:51:44 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233990 - head/sys/dev/ath
Message-ID:  <201204070551.q375piQF045744@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204070551.q375piQF045744>