<div>Hi all,</div>
<div>What is the difference between the following memory allocations.</div>
<div> </div>
<div>1) Memory allocation by doing,</div>
<div>      char *buf;</div>
<div>      buf = kmalloc(BUF_LEN, <strong>GFP_DMA</strong> | GFP_KERNEL);</div>
<div> </div>
<div>2) And by</div>
<div>      char *buf;</div>
<div>      buf = dma_alloc(...);</div>
<div> </div>
<div>in the link <a href="http://www.arm.linux.org.uk/developer/memory.txt">http://www.arm.linux.org.uk/developer/memory.txt</a></div>
<div>it says that dma_alloc() returns virtual address in &quot;ffc00000-----fffeffff&quot; this region,</div>
<div> </div>
<div>while in the first case it is returning Virtual address in &quot;low-memory&quot; region.</div>
<div> </div>
<div>For DMA mappable memory which one we should use..?</div>
<div><br><br clear="all"><br>-- <br>With regards,<br>Sandeep Kumar Anantapalli,<br><br></div>