From owner-svn-src-head@FreeBSD.ORG Sat Apr 7 05:51:44 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 789201065670; Sat, 7 Apr 2012 05:51:44 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 645498FC0A; Sat, 7 Apr 2012 05:51:44 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q375piqY045746; Sat, 7 Apr 2012 05:51:44 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q375piQF045744; Sat, 7 Apr 2012 05:51:44 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201204070551.q375piQF045744@svn.freebsd.org> From: Adrian Chadd Date: Sat, 7 Apr 2012 05:51:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r233990 - head/sys/dev/ath X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2012 05:51:44 -0000 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); } }