I can look at ACR morning...although I can say with a fair amount of certainty that I have not changed it from the POR value.<br><br>I will try enabling No Snoop for CSB in the descriptor (bit 3, yes?)...this seems a bit counterintuitive to me.<br>
<br>What is the hope regarding these two?  Some combination I am not seeing?<br><br>
<br><div class="gmail_quote">On Thu, Mar 5, 2009 at 11:40 PM, Liu Dave-R63238 <span dir="ltr">&lt;<a href="mailto:DaveLiu@freescale.com" target="_blank">DaveLiu@freescale.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">what is the value of ACR register?</font></span></div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div dir="ltr" align="left" lang="en-us">
  <hr>
  <font size="2" face="Tahoma"><b>From:</b> Ben Menchaca 
  [mailto:<a href="mailto:ben.menchaca@gmail.com" target="_blank">ben.menchaca@gmail.com</a>] <br><b>Sent:</b> Friday, March 06, 2009 1:38 
  PM<br><b>To:</b> Liu Dave-R63238<br><b>Cc:</b> 
  <a href="mailto:linuxppc-dev@ozlabs.org" target="_blank">linuxppc-dev@ozlabs.org</a><br><b>Subject:</b> Re: 83xx: Marking or Allocating 
  Pages as Cache-Inhibited<br></font><br></div><div><div></div><div>
  <div></div><font style="font-size: 10pt; font-family: Tahoma;"><font style="font-size: 10pt; font-family: Tahoma;"><font style="font-size: 10pt; font-family: Tahoma;"><font style="font-size: 10pt; font-family: Tahoma;"><font style="font-size: 10pt; font-family: Tahoma;">1.  BAT2 in linux is set to 
  WIMG=0010, and covers all 64M<br>2.  PEX_DEVICE_CONTROL in PCI-E Config 
  Space (0x54): 0x1020<br>3.  PEX_xDMA_CTRL is set to 
  <span></span>0x00000401 at the initiation of the DMA.<br>4.  OWAR0 is set 
  to 0xFFFFF005, so NSNP is 0.<br>5.  The DMA descriptor (randomly chosen 
  when I hit a trigger...just ignore the size...) contains 0002AFF3 at offset 0, 
  so nosnoops are cleared.</font></font></font></font></font><font style="font-size: 10pt; font-family: Tahoma;"><font style="font-size: 10pt; font-family: Tahoma;"><font style="font-size: 10pt; font-family: Tahoma;"><font style="font-size: 10pt; font-family: Tahoma;">  <br>

<br>Core is 400MHz, 
  and CSB is 133MHz.</font></font></font></font><br><font color="#888888"><br>- 
  Ben<br></font><br>
  <div class="gmail_quote">On Thu, Mar 5, 2009 at 11:27 PM, Liu Dave-R63238 <span dir="ltr">&lt;<a href="mailto:DaveLiu@freescale.com" target="_blank">DaveLiu@freescale.com</a>&gt;</span> 
  wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">and 
    what settings  is DMA description bit 3?<br>
    <div><br>&gt; -----Original Message-----<br>&gt; From: 
    linuxppc-dev-bounces+daveliu=<a href="http://freescale.com" target="_blank">freescale.com</a>@<a href="http://ozlabs.org" target="_blank">ozlabs.org</a><br>&gt; [mailto:<a href="mailto:linuxppc-dev-bounces%2Bdaveliu" target="_blank">linuxppc-dev-bounces+daveliu</a>=<a href="http://freescale.com" target="_blank">freescale.com</a>@<a href="http://ozlabs.org" target="_blank">ozlabs.org</a>]<br>

</div>
    <div>
    <div></div>
    <div>&gt;  On Behalf Of Liu Dave-R63238<br>&gt; Sent: Friday, 
    March 06, 2009 1:22 PM<br>&gt; To: Ben Menchaca; <a href="mailto:linuxppc-dev@ozlabs.org" target="_blank">linuxppc-dev@ozlabs.org</a><br>&gt; 
    Subject: RE: 83xx: Marking or Allocating Pages as 
    Cache-Inhibited<br>&gt;<br>&gt; Did you enable the snoop bit at 
    PEX_WDMA_CTRL[SNOOP] and<br>&gt; PEX_RDMA_CTRL[SNOOP]?<br>&gt;<br>&gt; What 
    is the freq settings? CORE/CSB bus.<br>&gt;<br>&gt; Thanks, 
    Dave<br>&gt;<br>&gt; ________________________________<br>&gt;<br>&gt;   
        From: linuxppc-dev-bounces+daveliu=<a href="http://freescale.com" target="_blank">freescale.com</a>@<a href="http://ozlabs.org" target="_blank">ozlabs.org</a><br>&gt; [mailto:<a href="mailto:linuxppc-dev-bounces%2Bdaveliu" target="_blank">linuxppc-dev-bounces+daveliu</a>=<a href="http://freescale.com" target="_blank">freescale.com</a>@<a href="http://ozlabs.org" target="_blank">ozlabs.org</a>]<br>

&gt;  On 
    Behalf Of Ben Menchaca<br>&gt;       Sent: Friday, March 06, 
    2009 12:33 PM<br>&gt;       To: <a href="mailto:linuxppc-dev@ozlabs.org" target="_blank">linuxppc-dev@ozlabs.org</a><br>&gt; 
          Subject: 83xx: Marking or Allocating Pages as 
    Cache-Inhibited<br>&gt;<br>&gt;<br>&gt;       I am working on 
    a Freescale 8314e design, and the<br>&gt; embedded device is configured as a 
    PCI-e endpoint running a<br>&gt; 2.6.27-5 kernel.  For context, we have 
    written a kernel<br>&gt; module which, among other things, uses the 
    RDMA/WDMA engine<br>&gt; in the PCI-e IP block.  On the host side, 
    these DMAs are<br>&gt; coherent.  However, on the embedded side, things 
    are quite a<br>&gt; bit less rosy; we must manually flush/invalidate cache 
    lines<br>&gt; for WDMA/RDMAs to occur successfully.  After speaking 
    with<br>&gt; (several) FAEs at Freescale, we believe there is a<br>&gt; 
    configuration issue that is the cause, but we have yet to<br>&gt; have 
    anyone successfully point to it.<br>&gt;<br>&gt;       
    Disabling the data cache altogether resolves the issue<br>&gt; entirely, but 
    of course, also completely tanks performance.<br>&gt; As a temporary 
    workaround, I would like to simply mark the<br>&gt; pages (obtained 
    currently via dma_alloc_coherent) involved as<br>&gt; cache-inhibited. 
     I have attempted to do this via some<br>&gt; snippets remaining in 
    fec.c (va_to_pte, uncache_pte to set<br>&gt; _PAGE_NO_CACHE, flush_tlb_page, 
    then unmap_pte), but this is<br>&gt; almost certainly braindead; va_to_pte 
    is not a part of the<br>&gt; 83xx source, as far as I can tell; 8xx 
    only.<br>&gt;<br>&gt;       A quick pointer in the correct 
    direction for marking<br>&gt; pages as cache-inhibited on a 2.6.27-5 kernel 
    would be<br>&gt; appreciated, or if my approach to a workaround is flawed, 
    a<br>&gt; pointer to the correct way would be great.<br>&gt;<br>&gt;   
        Ben Menchaca<br>&gt;<br>&gt;<br></div></div>&gt; 
    _______________________________________________<br>&gt; Linuxppc-dev mailing 
    list<br>&gt; <a href="mailto:Linuxppc-dev@ozlabs.org" target="_blank">Linuxppc-dev@ozlabs.org</a><br>&gt; <a href="https://ozlabs.org/mailman/listinfo/linuxppc-dev" target="_blank">https://ozlabs.org/mailman/listinfo/linuxppc-dev</a><br>

&gt;<br>&gt;<br></blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br>