PERFORCE change 108129 for review
Olivier Houchard
cognet at FreeBSD.org
Thu Oct 19 16:10:42 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=108129
Change 108129 by cognet at cognet on 2006/10/19 23:10:33
Use BUS_DMA_COHERENT to get the descriptor memory uncached.
Affected files ...
.. //depot/projects/arm/src/sys/dev/ath/if_ath.c#19 edit
Differences ...
==== //depot/projects/arm/src/sys/dev/ath/if_ath.c#19 (text+ko) ====
@@ -2508,7 +2508,8 @@
}
error = bus_dmamem_alloc(dd->dd_dmat, (void**) &dd->dd_desc,
- BUS_DMA_NOWAIT, &dd->dd_dmamap);
+ BUS_DMA_NOWAIT | BUS_DMAMEM_COHERENT,
+ &dd->dd_dmamap);
if (error != 0) {
if_printf(ifp, "unable to alloc memory for %u %s descriptors, "
"error %u\n", nbuf * ndesc, dd->dd_name, error);
More information about the p4-projects
mailing list