Thread (43 messages) 43 messages, 6 authors, 2011-05-20

Re: [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

From: Eric Van Hensbergen <hidden>
Date: 2011-05-20 00:47:58
Also in: lkml

On Thu, May 19, 2011 at 7:36 PM, Benjamin Herrenschmidt
[off-list ref] wrote:
On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote:
quoted
-#ifdef CONFIG_NOT_COHERENT_CACHE
+#if defined(CONFIG_NOT_COHERENT_CACHE) || defined(CONFIG_BGP)
=A0#define ARCH_DMA_MINALIGN =A0 =A0L1_CACHE_BYTES
=A0#endif
Is DMA cache coherent on BG/P ? That's odd for a 4xx base :-)
My understanding of things (which could be totally wrong) is that the
DMA we care about on BG/P (namely the Torus and Collective networks)
is coherent at the L2.  Of course the change in question is talking
about L1_CACHE_BYTES, so my reading of this is that its a sleazy way
of getting aligned mallocs that make interactions with the tightly
coupled networks easier/more-efficient.  I'm open to alternative
suggestions.

      -eric
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help