linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -mm 0/6] ARCH_KMALLOC_MINALIGN fixes
@ 2010-05-20  3:21 FUJITA Tomonori
  2010-05-20  3:21 ` [PATCH -mm 1/6] blackfin: set ARCH_KMALLOC_MINALIGN FUJITA Tomonori
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: FUJITA Tomonori @ 2010-05-20  3:21 UTC (permalink / raw)
  To: linux-kernel, akpm; +Cc: davem, dwmw2

As DMA-API-HOWTO says, kmalloc'ed buffer must be DMA-safe. Drivers and
subsystems depend on it.

So architectures that handle DMA-non-coherent memory need to set
ARCH_KMALLOC_MINALIGN: the kmalloc'ed buffer doesn't share a cache
with the others. Otherwise, we hit memory corruption due to DMA.

I had a quick look at all the architectures. Seems that some
architectures that need to set ARCH_KMALLOC_MINALIGN don't do.

=
 arch/blackfin/include/asm/cache.h |    2 ++
 arch/frv/include/asm/cache.h      |    2 ++
 arch/m68k/include/asm/cache.h     |    2 ++
 arch/mn10300/include/asm/cache.h  |    2 ++
 arch/parisc/include/asm/cache.h   |    2 ++
 arch/xtensa/include/asm/cache.h   |    1 +
 6 files changed, 11 insertions(+), 0 deletions(-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-05-20 12:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-20  3:21 [PATCH -mm 0/6] ARCH_KMALLOC_MINALIGN fixes FUJITA Tomonori
2010-05-20  3:21 ` [PATCH -mm 1/6] blackfin: set ARCH_KMALLOC_MINALIGN FUJITA Tomonori
2010-05-20  5:58   ` Mike Frysinger
2010-05-20  3:21 ` [PATCH -mm 2/6] frv: " FUJITA Tomonori
2010-05-20  3:21 ` [PATCH -mm 3/6] m68k: " FUJITA Tomonori
2010-05-20  3:21 ` [PATCH -mm 4/6] mn10300: " FUJITA Tomonori
2010-05-20  3:21 ` [PATCH -mm 5/6] parisc: " FUJITA Tomonori
2010-05-20 12:18   ` Kyle McMartin
2010-05-20  3:21 ` [PATCH -mm 6/6] xtensa: " FUJITA Tomonori
2010-05-20  4:50 ` [PATCH -mm 0/6] ARCH_KMALLOC_MINALIGN fixes Pekka Enberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).