Commit 52142e75 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Paul Mackerras

[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: default avatarBenjamin Herrenschmidt <>
Signed-off-by: default avatarPaul Mackerras <>
parent f9b6c1de
......@@ -6,6 +6,10 @@
#define PPC_MEMSTART 0
#ifndef __ASSEMBLY__
* The basic type of a PTE - 64 bits for those CPUs with > 32 bit
Markdown is supported
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