<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 05/19/2011 07:36 PM, Benjamin Herrenschmidt wrote:
<blockquote cite="mid:1305851769.7481.90.camel@pasglop" type="cite">
  <pre wrap="">On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">For BGP, it is convenient for 'kmalloc' to come back with 32-byte
aligned units for torus DMA

Signed-off-by: Eric Van Hensbergen <a class="moz-txt-link-rfc2396E" href="mailto:ericvh@gmail.com"><ericvh@gmail.com></a>
---
 arch/powerpc/include/asm/page_32.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/include/asm/page_32.h b/arch/powerpc/include/asm/page_32.h
index 68d73b2..fb0a7ae 100644
--- a/arch/powerpc/include/asm/page_32.h
+++ b/arch/powerpc/include/asm/page_32.h
@@ -9,7 +9,7 @@
 
 #define VM_DATA_DEFAULT_FLAGS  VM_DATA_DEFAULT_FLAGS32
 
-#ifdef CONFIG_NOT_COHERENT_CACHE
+#if defined(CONFIG_NOT_COHERENT_CACHE) || defined(CONFIG_BGP)
 #define ARCH_DMA_MINALIGN      L1_CACHE_BYTES
 #endif
    </pre>
  </blockquote>
  <pre wrap="">
Is DMA cache coherent on BG/P ? That's odd for a 4xx base :-)
  </pre>
</blockquote>
<br>
Actually DMA sends invalidate requests to the snoop unit(L2 level).<br>
BGP SoC is a bit different from other 4xx base. <br>
<br>
Some details can be found in<br>
<span class="f"><cite><a class="moz-txt-link-abbreviated" href="http://www.scc.acad.bg/documentation/team.pdf">www.scc.acad.bg/documentation/team.pdf</a></cite></span>
<br>
<br>
- kaz<br>
<br>
<blockquote cite="mid:1305851769.7481.90.camel@pasglop" type="cite">
  <pre wrap="">
Cheers,
Ben.



_______________________________________________
bg-linux mailing list
<a class="moz-txt-link-abbreviated" href="mailto:bg-linux@lists.anl-external.org">bg-linux@lists.anl-external.org</a>
<a class="moz-txt-link-freetext" href="https://lists.anl-external.org/mailman/listinfo/bg-linux">https://lists.anl-external.org/mailman/listinfo/bg-linux</a>
<a class="moz-txt-link-freetext" href="http://bg-linux.anl-external.org/wiki">http://bg-linux.anl-external.org/wiki</a>
  </pre>
</blockquote>
<br>
</body>
</html>