summaryrefslogtreecommitdiffstats
path: root/sys/arm64
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-05-31 16:28:56 +0000
committerandrew <andrew@FreeBSD.org>2016-05-31 16:28:56 +0000
commitff690eb3c3a8504be572207b54b2f6e27a98f77a (patch)
tree81069fed31e26a05596030ace701ecfe24c39c8a /sys/arm64
parent49e1f823b8d60362e9ed8f8a8a3ac0df578bbef4 (diff)
downloadFreeBSD-src-ff690eb3c3a8504be572207b54b2f6e27a98f77a.zip
FreeBSD-src-ff690eb3c3a8504be572207b54b2f6e27a98f77a.tar.gz
Enable setting BF_COHERENT on DMA tags. This allows the kernel to start
using the cache handling functions. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/busdma_bounce.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/arm64/arm64/busdma_bounce.c b/sys/arm64/arm64/busdma_bounce.c
index 7166ebf..7039153 100644
--- a/sys/arm64/arm64/busdma_bounce.c
+++ b/sys/arm64/arm64/busdma_bounce.c
@@ -184,10 +184,8 @@ bounce_bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
newtag->map_count = 0;
newtag->segments = NULL;
-#ifdef notyet
if ((flags & BUS_DMA_COHERENT) != 0)
newtag->bounce_flags |= BF_COHERENT;
-#endif
if (parent != NULL) {
if ((newtag->common.filter != NULL ||
OpenPOWER on IntegriCloud