Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/arm/busdma_machdep-v6.c
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | |||||
#ifdef INVARIANTS | #ifdef INVARIANTS | ||||
/* | /* | ||||
* Force UMA zone to allocate service structures like | * Force UMA zone to allocate service structures like | ||||
* slabs using own allocator. uma_debug code performs | * slabs using own allocator. uma_debug code performs | ||||
* atomic ops on uma_slab_t fields and safety of this | * atomic ops on uma_slab_t fields and safety of this | ||||
* operation is not guaranteed for write-back caches | * operation is not guaranteed for write-back caches | ||||
*/ | */ | ||||
uma_flags = UMA_ZONE_OFFPAGE; | uma_flags = UMA_ZONE_NOTOUCH; | ||||
#endif | #endif | ||||
/* | /* | ||||
* Create a cache of buffers in uncacheable memory, to implement the | * Create a cache of buffers in uncacheable memory, to implement the | ||||
* BUS_DMA_COHERENT (and potentially BUS_DMA_NOCACHE) flag. | * BUS_DMA_COHERENT (and potentially BUS_DMA_NOCACHE) flag. | ||||
*/ | */ | ||||
coherent_allocator = busdma_bufalloc_create("coherent", | coherent_allocator = busdma_bufalloc_create("coherent", | ||||
BUSDMA_DCACHE_ALIGN,/* minimum_alignment */ | BUSDMA_DCACHE_ALIGN,/* minimum_alignment */ | ||||
busdma_bufalloc_alloc_uncacheable, | busdma_bufalloc_alloc_uncacheable, | ||||
▲ Show 20 Lines • Show All 1,529 Lines • Show Last 20 Lines |