Controller updates RFA via DMA so driver needs synchronization.
Add missing BUS_DMASYNC_POSTWRITE and BUS_DMASYNC_PREREAD.
This commit is contained in:
parent
c472f73fed
commit
ac29b33354
@ -1899,7 +1899,7 @@ fxp_intr_body(struct fxp_softc *sc, struct ifnet *ifp, uint8_t statack,
|
||||
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, struct fxp_rx *rxp)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user