Fix a busdma bogon:
Some of the calls to bus_dmamap_sync() were syncing the DMA descriptor ring maps using the mbuf tag, when they should have been using the descriptor ring tag instead.
This commit is contained in:
parent
ea98d2c3e5
commit
6999a6bd2e
@ -1704,7 +1704,7 @@ rl_rxeofcplus(sc)
|
||||
|
||||
/* Invalidate the descriptor memory */
|
||||
|
||||
bus_dmamap_sync(sc->rl_ldata.rl_mtag,
|
||||
bus_dmamap_sync(sc->rl_ldata.rl_rx_list_tag,
|
||||
sc->rl_ldata.rl_rx_list_map,
|
||||
BUS_DMASYNC_POSTREAD);
|
||||
|
||||
@ -1936,7 +1936,7 @@ rl_txeofcplus(sc)
|
||||
|
||||
/* Invalidate the TX descriptor list */
|
||||
|
||||
bus_dmamap_sync(sc->rl_ldata.rl_mtag,
|
||||
bus_dmamap_sync(sc->rl_ldata.rl_tx_list_tag,
|
||||
sc->rl_ldata.rl_tx_list_map,
|
||||
BUS_DMASYNC_POSTREAD);
|
||||
|
||||
@ -2383,7 +2383,7 @@ rl_startcplus(ifp)
|
||||
|
||||
/* Flush the TX descriptors */
|
||||
|
||||
bus_dmamap_sync(sc->rl_ldata.rl_mtag,
|
||||
bus_dmamap_sync(sc->rl_ldata.rl_tx_list_tag,
|
||||
sc->rl_ldata.rl_tx_list_map,
|
||||
BUS_DMASYNC_PREWRITE|BUS_DMASYNC_PREREAD);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user