lkml.org 
[lkml]   [2010]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH -mm 0/6] ARCH_KMALLOC_MINALIGN fixes
Date
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(-)


\
 
 \ /
  Last update: 2010-05-20 05:23    [W:0.089 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site