aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2014-07-29 02:37:31 +0000
committerIan Lepore <ian@FreeBSD.org>2014-07-29 02:37:31 +0000
commit0e58c32732b0fdcaa425cf086d6290a95b6afcb8 (patch)
treeca9b196ef66ade1aac582a68693b7883f7702069
parent409b23f7a742b693e6b8ec3c1c9710bf395c29dd (diff)
downloadsrc-0e58c32732b0fdcaa425cf086d6290a95b6afcb8.tar.gz
src-0e58c32732b0fdcaa425cf086d6290a95b6afcb8.zip
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
Notes
Notes: svn path=/head/; revision=269215
-rw-r--r--sys/arm/arm/busdma_machdep-v6.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/arm/arm/busdma_machdep-v6.c b/sys/arm/arm/busdma_machdep-v6.c
index 9b82b196e89b..4c308d953f46 100644
--- a/sys/arm/arm/busdma_machdep-v6.c
+++ b/sys/arm/arm/busdma_machdep-v6.c
@@ -743,14 +743,6 @@ bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags,
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,