]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: DMA coherent allocator: align remapped addresses
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 Jul 2010 07:57:02 +0000 (08:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 27 Jul 2010 09:43:48 +0000 (10:43 +0100)
commitae59fafff2246d27d2e9bcefffcd41a11eb48f93
treeb23c8c9ad3693e39e42b2fb389aab037b14ed9a0
parente1a4570846bc66cbe461973b47dd359c275e6fec
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: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c
arch/arm/mm/vmregion.c
arch/arm/mm/vmregion.h