Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756051Ab0F2OIO (ORCPT ); Tue, 29 Jun 2010 10:08:14 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:64330 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754509Ab0F2OIN convert rfc822-to-8bit (ORCPT ); Tue, 29 Jun 2010 10:08:13 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=woqZVIKOnh7V5mfujtp+t9t8Pt8hwXl/OZaDSs0FJW5W9/6btyL+IOBZSis5Aswq9C Tld1sVyz+spkMNpy2z8gDuUJst7iaNi2Vv+ZPT8QgxBReuMmbF+U6NAIIN1ER8fdKO9b oSuBRVQqBvpW8/R0mZx30kOddlaZukfKPPobM= MIME-Version: 1.0 In-Reply-To: References: <20100629154801C.fujita.tomonori@lab.ntt.co.jp> Date: Tue, 29 Jun 2010 10:08:10 -0400 Message-ID: Subject: Re: [PATCH] parisc: set ARCH_KMALLOC_MINALIGN From: Matt Turner To: FUJITA Tomonori Cc: linux-parisc@vger.kernel.org, kyle@mcmartin.ca, deller@gmx.de, jejb@parisc-linux.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1955 Lines: 58 On Tue, Jun 29, 2010 at 10:07 AM, Matt Turner wrote: > On Tue, Jun 29, 2010 at 2:50 AM, FUJITA Tomonori > wrote: >> This is a resend: >> >> http://marc.info/?t=127432584100006&r=1&w=2 >> >> I thought that it was merged but seems that it was lost somewhere? >> >> = >> From: FUJITA Tomonori >> Subject: [PATCH] parisc: set ARCH_KMALLOC_MINALIGN >> >> Architectures that handle DMA-non-coherent memory need to set >> ARCH_KMALLOC_MINALIGN to make sure that kmalloc'ed buffer is DMA-safe: >> the buffer doesn't share a cache with the others. >> >> Signed-off-by: FUJITA Tomonori >> Cc: Kyle McMartin >> Cc: Helge Deller >> Cc: James E.J. Bottomley >> Cc: stable@kernel.org >> --- >> ?arch/parisc/include/asm/cache.h | ? ?2 ++ >> ?1 files changed, 2 insertions(+), 0 deletions(-) >> >> diff --git a/arch/parisc/include/asm/cache.h b/arch/parisc/include/asm/cache.h >> index 45effe6..5d87f27 100644 >> --- a/arch/parisc/include/asm/cache.h >> +++ b/arch/parisc/include/asm/cache.h >> @@ -22,6 +22,8 @@ >> ?#define L1_CACHE_SHIFT 5 >> ?#endif >> >> +#define ARCH_KMALLOC_MINALIGN ?L1_CACHE_BYTES >> + >> ?#ifndef __ASSEMBLY__ >> >> ?#define L1_CACHE_ALIGN(x) ? ? ? (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)) > > Looks like you can send a patch to kill L1_CACHE_ALIGN too. :) Doh! I see you already did. >> -- >> 1.6.5 >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-parisc" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at ?http://vger.kernel.org/majordomo-info.html >> > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/