Author: ian
Date: Tue Jul 29 02:37:31 2014
New Revision: 269215
URL: http://svnweb.freebsd.org/changeset/base/269215
Log:
We never need bounce pages for memory we allocate. We cleverly allocate
memory the matches all the constraints of the dma tag so that bouncing
will never be required.
Reviewed by: cognet
Modified:
head/sys/arm/arm/busdma_machdep-v6.c
Modified: head/sys/arm/arm/busdma_machdep-v6.c
==============================================================================
--- head/sys/arm/arm/busdma_machdep-v6.c Tue Jul 29 02:37:24 2014
(r269214)
+++ head/sys/arm/arm/busdma_machdep-v6.c Tue Jul 29 02:37:31 2014
(r269215)
@@ -743,14 +743,6 @@ bus_dmamem_alloc(bus_dma_tag_t dmat, voi
map->flags = DMAMAP_DMAMEM_ALLOC;
map->sync_count = 0;
- /* We may need bounce pages, even for allocated memory */
- error = allocate_bz_and_pages(dmat, map);
- if (error != 0) {
- free(map, M_DEVBUF);
- *mapp = NULL;
- return (error);
- }
-
if (dmat->segments == NULL) {
dmat->segments = (bus_dma_segment_t *)malloc(
sizeof(bus_dma_segment_t) * dmat->nsegments, M_DEVBUF,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"