From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757882Ab0EKUZ4 (ORCPT ); Tue, 11 May 2010 16:25:56 -0400 Received: from nlpi129.sbcis.sbc.com ([207.115.36.143]:60213 "EHLO nlpi129.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753078Ab0EKUZy (ORCPT ); Tue, 11 May 2010 16:25:54 -0400 Date: Tue, 11 May 2010 15:21:53 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@router.home To: Mike Frysinger cc: Matt Mackall , Pekka Enberg , Dmitry Torokhov , Andrew Morton , Oskar Schirmer , Michael Hennerich , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, =?ISO-8859-15?Q?Daniel_Gl=F6ckner?= , Oliver Schneidewind , Johannes Weiner , Nick Piggin , David Rientjes Subject: Re: [PATCH v3] ad7877: keep dma rx buffers in seperate cache lines In-Reply-To: Message-ID: References: <1273487642-2169-1-git-send-email-os@emlix.com> <20100510142225.4bf215ef.akpm@linux-foundation.org> <20100511060547.GA9644@core.coreip.homeip.net> <20100511062110.GB9644@core.coreip.homeip.net> <20100511063309.GC9644@core.coreip.homeip.net> <1273608441.15067.1002.camel@calx> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 May 2010, Mike Frysinger wrote: > and like i said, that doesnt sound like a reasonable solution when > every single SPI driver (over 100 atm) out there is affected If you are on an embedded arch then you can of course set the default kmalloc alignment. The requirement for kmalloc is that it returns memory that can be used for DMA. If the arch can only DMA into cacheline aligned objects then the correct method is to force kmalloc alignment to cacheline size.