[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTil7bciN2D_4cjROmONihRHQNpH3t_bJNSyz92UW@mail.gmail.com>
Date: Thu, 20 May 2010 07:50:05 +0300
From: Pekka Enberg <penberg@...helsinki.fi>
To: FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
Cc: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
davem@...emloft.net, dwmw2@...radead.org
Subject: Re: [PATCH -mm 0/6] ARCH_KMALLOC_MINALIGN fixes
On Thu, May 20, 2010 at 6:21 AM, FUJITA Tomonori
<fujita.tomonori@....ntt.co.jp> wrote:
> 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.
Acked-by: Pekka Enberg <penberg@...helsinki.fi>
for the whole series.
>
> =
> 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(-)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists