Skip to content
Commit 5bc23d32 authored by Russell King's avatar Russell King
Browse files

ARM: DMA coherent allocator: align remapped addresses



The DMA coherent remap area is used to provide an uncached mapping
of memory for coherency with DMA engines.  Currently, we look for
any free hole which our allocation will fit in with page alignment.

However, this can lead to fragmentation of the area, and allows small
allocations to cross L1 entry boundaries.  This is undesirable as we
want to move towards allocating sections of memory.

Align allocations according to the size, limiting the alignment between
the page and section sizes.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d7461963
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment