diff options
author | marius <marius@FreeBSD.org> | 2011-03-11 22:23:46 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2011-03-11 22:23:46 +0000 |
commit | ed863a7cc44057864438a24e12b90233285bf31c (patch) | |
tree | aaacc8cd5298711d6e66a9a3b30084804b2cd00e /sys/dev/stge | |
parent | 972bbbdd271d63db087ce739fc4cf18d1a4845d4 (diff) | |
download | FreeBSD-src-ed863a7cc44057864438a24e12b90233285bf31c.zip FreeBSD-src-ed863a7cc44057864438a24e12b90233285bf31c.tar.gz |
Allocate the DMA memory shared between the host and the controller as
coherent.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/stge')
-rw-r--r-- | sys/dev/stge/if_stge.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/stge/if_stge.c b/sys/dev/stge/if_stge.c index 34051b0..9a9ef03 100644 --- a/sys/dev/stge/if_stge.c +++ b/sys/dev/stge/if_stge.c @@ -960,8 +960,8 @@ stge_dma_alloc(struct stge_softc *sc) /* allocate DMA'able memory and load the DMA map for Tx ring. */ error = bus_dmamem_alloc(sc->sc_cdata.stge_tx_ring_tag, - (void **)&sc->sc_rdata.stge_tx_ring, BUS_DMA_NOWAIT | BUS_DMA_ZERO, - &sc->sc_cdata.stge_tx_ring_map); + (void **)&sc->sc_rdata.stge_tx_ring, BUS_DMA_NOWAIT | + BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->sc_cdata.stge_tx_ring_map); if (error != 0) { device_printf(sc->sc_dev, "failed to allocate DMA'able memory for Tx ring\n"); @@ -981,8 +981,8 @@ stge_dma_alloc(struct stge_softc *sc) /* allocate DMA'able memory and load the DMA map for Rx ring. */ error = bus_dmamem_alloc(sc->sc_cdata.stge_rx_ring_tag, - (void **)&sc->sc_rdata.stge_rx_ring, BUS_DMA_NOWAIT | BUS_DMA_ZERO, - &sc->sc_cdata.stge_rx_ring_map); + (void **)&sc->sc_rdata.stge_rx_ring, BUS_DMA_NOWAIT | + BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->sc_cdata.stge_rx_ring_map); if (error != 0) { device_printf(sc->sc_dev, "failed to allocate DMA'able memory for Rx ring\n"); |