diff options
author | marius <marius@FreeBSD.org> | 2011-03-11 22:25:34 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2011-03-11 22:25:34 +0000 |
commit | fc754ef0530c579a3fdd5179e9e5bb71190c3cbb (patch) | |
tree | 95d6122ac185a4a9d03a9b7be258316804d48bdf /sys/dev/xl/if_xl.c | |
parent | ed863a7cc44057864438a24e12b90233285bf31c (diff) | |
download | FreeBSD-src-fc754ef0530c579a3fdd5179e9e5bb71190c3cbb.zip FreeBSD-src-fc754ef0530c579a3fdd5179e9e5bb71190c3cbb.tar.gz |
Allocate the DMA memory shared between the host and the controller as
coherent.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/xl/if_xl.c')
-rw-r--r-- | sys/dev/xl/if_xl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/xl/if_xl.c b/sys/dev/xl/if_xl.c index ad54d79..43005e6 100644 --- a/sys/dev/xl/if_xl.c +++ b/sys/dev/xl/if_xl.c @@ -1317,8 +1317,8 @@ xl_attach(device_t dev) } error = bus_dmamem_alloc(sc->xl_ldata.xl_rx_tag, - (void **)&sc->xl_ldata.xl_rx_list, BUS_DMA_NOWAIT | BUS_DMA_ZERO, - &sc->xl_ldata.xl_rx_dmamap); + (void **)&sc->xl_ldata.xl_rx_list, BUS_DMA_NOWAIT | + BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->xl_ldata.xl_rx_dmamap); if (error) { device_printf(dev, "no memory for rx list buffers!\n"); bus_dma_tag_destroy(sc->xl_ldata.xl_rx_tag); @@ -1349,8 +1349,8 @@ xl_attach(device_t dev) } error = bus_dmamem_alloc(sc->xl_ldata.xl_tx_tag, - (void **)&sc->xl_ldata.xl_tx_list, BUS_DMA_NOWAIT | BUS_DMA_ZERO, - &sc->xl_ldata.xl_tx_dmamap); + (void **)&sc->xl_ldata.xl_tx_list, BUS_DMA_NOWAIT | + BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->xl_ldata.xl_tx_dmamap); if (error) { device_printf(dev, "no memory for list buffers!\n"); bus_dma_tag_destroy(sc->xl_ldata.xl_tx_tag); |