]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix kmalloc alignment on non-coherent DMA platforms
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 19 Nov 2007 08:25:06 +0000 (19:25 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 20 Nov 2007 00:37:43 +0000 (11:37 +1100)
commita7b8bff600d053db7f632772361c19824a5ab22f
tree63ce9329dad3cefae84fec67535500f1f23d52e3
parent2c5a008d952d4a56a59ddc511ac76a309f3a9294
[POWERPC] Fix kmalloc alignment on non-coherent DMA platforms

On platforms doing non-coherent DMA (4xx, 8xx, ...), it's important
that the kmalloc minimum alignment is set to the cache line size, to
avoid sharing cache lines between different objects, so that DMA to
one of the objects doesn't corrupt the other.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/page_32.h