svn commit: r219993 - stable/8/sys/dev/xl
Marius Strobl
marius at FreeBSD.org
Fri Mar 25 12:48:56 UTC 2011
Author: marius
Date: Fri Mar 25 12:48:56 2011
New Revision: 219993
URL: http://svn.freebsd.org/changeset/base/219993
Log:
MFC: r219545
Allocate the DMA memory shared between the host and the controller as
coherent.
Modified:
stable/8/sys/dev/xl/if_xl.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/dev/xl/if_xl.c
==============================================================================
--- stable/8/sys/dev/xl/if_xl.c Fri Mar 25 12:48:06 2011 (r219992)
+++ stable/8/sys/dev/xl/if_xl.c Fri Mar 25 12:48:56 2011 (r219993)
@@ -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);
More information about the svn-src-stable-8
mailing list