summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-07-29 02:37:31 +0000
committerian <ian@FreeBSD.org>2014-07-29 02:37:31 +0000
commitfb0b7ece8c535ffb830749971d981c39c7de9bf1 (patch)
treeca9b196ef66ade1aac582a68693b7883f7702069
parent0674d104b5536feb43c358476a940e03923451ae (diff)
downloadFreeBSD-src-fb0b7ece8c535ffb830749971d981c39c7de9bf1.zip
FreeBSD-src-fb0b7ece8c535ffb830749971d981c39c7de9bf1.tar.gz
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
-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 9b82b19..4c308d9 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,
OpenPOWER on IntegriCloud