<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>problems with dma_alloc_coherent and consistent_alloc </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT SIZE=2 FACE="Courier New">(Sorry, I had trouble outlook and messed up the subject line)</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">We are using a PPC 750 with 512m of RAM.&nbsp; </FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">1) When we try to allocate memory using consistent_alloc we get a </FONT>

<BR><FONT SIZE=2 FACE="Courier New">failure with get_pteptr - there is no pte.&nbsp; </FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">2) When we try using dma_alloc_coherent the system locks up when</FONT>

<BR><FONT SIZE=2 FACE="Courier New">we try to access that memory.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">I'm guessing these problems stem from the memory being allocated</FONT>

<BR><FONT SIZE=2 FACE="Courier New">is from the 384 bytes of RAM that gets handed over to BATs 2 AND 3,</FONT>

<BR><FONT SIZE=2 FACE="Courier New">not the remaining memory handled by the page table.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">In the first case, pages are allocated, but since if came from the</FONT>

<BR><FONT SIZE=2 FACE="Courier New">BAT region, will not have a page table mapping.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">In the second case, if dma_alloc_init gets memory from the BAT</FONT>

<BR><FONT SIZE=2 FACE="Courier New">region, then we have the BAT and page management mechanisms</FONT>

<BR><FONT SIZE=2 FACE="Courier New">both trying to control the memory.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Does this sound like a good theory?&nbsp; Has anybody encountered</FONT>

<BR><FONT SIZE=2 FACE="Courier New">this problem before?</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Thanks</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">--</FONT>

<BR><FONT SIZE=2 FACE="Arial">Earl Olsen</FONT>

<BR><FONT SIZE=2 FACE="Arial">Senior Software Engineer</FONT>

<BR><FONT SIZE=2 FACE="Arial">Dilithium Networks</FONT><FONT SIZE=2 FACE="Arial">, Inc.</FONT>

<BR><FONT SIZE=2 FACE="Arial">T</FONT><FONT SIZE=2 FACE="Arial">EL</FONT><FONT SIZE=2 FACE="Arial">:+1 707-792-3925</FONT>

<BR><FONT SIZE=2 FACE="Arial">e</FONT><FONT SIZE=2 FACE="Arial">arl.</FONT><FONT SIZE=2 FACE="Arial">o</FONT><FONT SIZE=2 FACE="Arial">lsen@dilithiumnetworks.com</FONT>

<BR><A HREF="file://www.dilithiumnetworks.com"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">www.dilithiumnetworks.com</FONT></U></A>
</P>

<P><FONT SIZE=2 FACE="Arial">Communications for a Borderless World</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">This electronic message from Dilithium Networks contains information which may be privileged or confidential. It is intended to be for the use of the recipient(s) named above. If you are not the intended recipient please return the message to the sender by replying to it and then delete the message from your computer. Dilithium Networks shall not be held liable to any person resulting from the use of any information contained in this e-mail and shall not be liable to any person who acts or omits to do anything in reliance upon it. Dilithium Networks does not accept responsibility for changes made to this message after it was sent.</FONT></P>

</BODY>
</HTML>