From 6999a6bd2e3cd756a628a3316037b79d327e818d Mon Sep 17 00:00:00 2001 From: wpaul Date: Fri, 18 Jul 2003 22:11:47 +0000 Subject: [PATCH] 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. --- sys/pci/if_rl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index a4707a70813d..436cf64a302a 100644 --- a/sys/pci/if_rl.c +++ b/sys/pci/if_rl.c @@ -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);