[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100512103658.GB2635@emlix.com>
Date: Wed, 12 May 2010 12:36:58 +0200
From: Johannes Weiner <jw@...ix.com>
To: Mike Frysinger <vapier.adi@...il.com>
Cc: FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>, npiggin@...e.de,
marc@...silica.com, dmitry.torokhov@...il.com, cl@...ux.com,
penberg@...helsinki.fi, mpm@...enic.com, akpm@...ux-foundation.org,
os@...ix.com, Michael.Hennerich@...log.com,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
dg@...ix.com, osw@...ix.com, rientjes@...gle.com,
dbrownell@...rs.sourceforge.net, grant.likely@...retlab.ca,
chris@...kel.net, Piet.Delaney@...silica.com
Subject: Re: [LKML] Re: [PATCH v3] ad7877: keep dma rx buffers in seperate
cache lines
On Wed, May 12, 2010 at 12:35:45AM -0400, Mike Frysinger wrote:
> On Tue, May 11, 2010 at 23:23, FUJITA Tomonori wrote:
> > Seems that kmalloc is not cacheline aligned on some architectures but
> > they works. Probably, we might be just lucky because in general they
> > allocate larger buffers than 64 for DMA via kmalloc and the buffers
> > are aligned on the size?
>
> i think the magic combo is:
> - DMA buffer is written to (receive)
Check.
> - some driver state is in the same cacheline as the DMA buffer
> - that driver state is used after the flush but before the DMA finishes
The kmalloc caches are system-wide. Any other kmalloc(samesize) user
could interfer when touching its object between dma_map_single() on
the neighbor object and the end of the transfer.
> - only on arches that need software cache coherency
>
> so i could see this not being an obvious issue for many people
> -mike
--
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