svn commit: r208081 - head/sys/dev/fxp
Pyun YongHyeon
yongari at FreeBSD.org
Fri May 14 16:55:14 UTC 2010
Author: yongari
Date: Fri May 14 16:55:13 2010
New Revision: 208081
URL: http://svn.freebsd.org/changeset/base/208081
Log:
Controller updates RFA via DMA so driver needs synchronization.
Add missing BUS_DMASYNC_POSTWRITE and BUS_DMASYNC_PREREAD.
Modified:
head/sys/dev/fxp/if_fxp.c
Modified: head/sys/dev/fxp/if_fxp.c
==============================================================================
--- head/sys/dev/fxp/if_fxp.c Fri May 14 15:47:51 2010 (r208080)
+++ head/sys/dev/fxp/if_fxp.c Fri May 14 16:55:13 2010 (r208081)
@@ -1899,7 +1899,7 @@ fxp_intr_body(struct fxp_softc *sc, stru
rfa = (struct fxp_rfa *)(m->m_ext.ext_buf +
RFA_ALIGNMENT_FUDGE);
bus_dmamap_sync(sc->fxp_rxmtag, rxp->rx_map,
- BUS_DMASYNC_POSTREAD);
+ BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
#ifdef DEVICE_POLLING /* loop at most count times if count >=0 */
if (count >= 0 && count-- == 0) {
@@ -2659,7 +2659,7 @@ fxp_add_rfabuf(struct fxp_softc *sc, str
le32enc(&p_rfa->link_addr, rxp->rx_addr);
p_rfa->rfa_control = 0;
bus_dmamap_sync(sc->fxp_rxmtag, p_rx->rx_map,
- BUS_DMASYNC_PREWRITE);
+ BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
} else {
rxp->rx_next = NULL;
sc->fxp_desc.rx_head = rxp;
More information about the svn-src-all
mailing list