diff options
author | jfv <jfv@FreeBSD.org> | 2007-11-28 23:04:11 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2007-11-28 23:04:11 +0000 |
commit | d5814ba15f6d28f2d93f30bc228b06f82ebfcc3c (patch) | |
tree | 11d737f2598dbb97316d12f4e5132e97ace392ab /sys | |
parent | 769c37d0bacccdef8e683fda1bfc004638cf9164 (diff) | |
download | FreeBSD-src-d5814ba15f6d28f2d93f30bc228b06f82ebfcc3c.zip FreeBSD-src-d5814ba15f6d28f2d93f30bc228b06f82ebfcc3c.tar.gz |
Add COHERENT to descriptor mem allocation for the
benefit of ARM (request from Olivier Houchard), its
a noop on most architectures and goodness on those
that use it.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/em/if_em.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 2dedfdb..83acabf 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -3113,7 +3113,7 @@ em_dma_malloc(struct adapter *adapter, bus_size_t size, } error = bus_dmamem_alloc(dma->dma_tag, (void**) &dma->dma_vaddr, - BUS_DMA_NOWAIT, &dma->dma_map); + BUS_DMA_NOWAIT | BUS_DMA_COHERENT, &dma->dma_map); if (error) { device_printf(adapter->dev, "%s: bus_dmamem_alloc(%ju) failed: %d\n", |