<br><div><span class="gmail_quote">On 10/21/06, <b class="gmail_sendername">Ming Liu</b> &lt;<a href="mailto:eemingliu@hotmail.com">eemingliu@hotmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear sudheer,<br>About the &quot;mem=xx&quot; argument, I checked it from the website and got such a<br>explanation:<br><br>This argument has several purposes: The original purpose was to specify the<br>amount of installed memory (or a value less than that if you wanted to
<br>limit the amount of memory available to linux).<br><br>From the argument above, it says &quot;mem=xx&quot; is to specify the amount of<br>memory available to Linux. I am not sure if I am right, but I think if I<br>use such an argument, that reserved part (that 5MB you mentioned), is not
<br>available any more for Linux to access it.<br><br>My original meaning is: specify a fixed physical address for a mount of<br>memory for reserved use. The point is to make this part of memory fixed in<br>the memory of physical address, and then another I/O peripheral could use
<br>DMA to access such a fixed physical address memory. However if I don't<br>reserve such a part, I must let Linux to allocate such a memory part. And<br>then Linux will not put it in a fixed physical address </blockquote>
<div><br>
yes&nbsp; <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">and then the<br>peripheral will not know where is this part.</blockquote><div><br>

why do you think so ?<br>
Can't you give the physical address of the allocated memory from linux kernel to peripheral's DMA.?<br>
Unless you need to hardcode the physicall address i hope virt_to_phys(kmalloc_address) can be given to DMA.<br>
Sorry if i am still wrong in understanding your requirement.<br>
<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Am I right? Thanks for your idea.<br><br>Also other ideas are appreciated.<br><br>
Regards<br>Ming<br><br>&gt;Considering your setup as normal desktop, I hope this can be done by<br>&gt;giving<br>&gt;&quot;mem= xxm&quot;&nbsp;&nbsp;as the boot arguments.&nbsp;&nbsp;Say the dmesg in your system<br>&gt;shows&nbsp;&nbsp; &quot;<br>&gt;495MB LOWMEM available.&quot;&nbsp;&nbsp;.&nbsp;&nbsp;In the boot arguments you can give
<br>&gt;mem=490m<br>&gt;saying the linux to use only 490MB . The rest 5MB can be used later<br>&gt;as you<br>&gt;wish.<br><br>_________________________________________________________________<br>享用世界上最大的电子邮件系统— MSN Hotmail。&nbsp;&nbsp;
<a href="http://www.hotmail.com">http://www.hotmail.com</a><br><br><br><br>_______________________________________________<br>Linuxppc-embedded mailing list<br><a href="mailto:Linuxppc-embedded@ozlabs.org">Linuxppc-embedded@ozlabs.org
</a><br><a href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a><br><br></blockquote></div><br>