<br><br><div class="gmail_quote">On Fri, Mar 1, 2013 at 4:48 PM, sandeep kumar <span dir="ltr">&lt;<a href="mailto:coolsandyforyou@gmail.com" target="_blank">coolsandyforyou@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi All<div>I am using ARM based board.</div><div>In mine, </div><div>i did the following...</div><div><br clear="all"><div><font face="courier new, monospace"> void __iomem *tcpm_base = ioremap_nocache(0x03B00000, 10*SZ_3MB);</font><br>


</div><div><font face="courier new, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Actually i didnt reserve the 30MB memory @ 0x3B00000. But still the call is succesful and i am able to read the memory.</font></div>


<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">In the logs it is just showing a warning, to fix my driver as i am calling ioremap() on system memory.</font></div>


<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">However if i try to write something on that memory, then  only it is calling panic()..</font></div>

<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Don&#39;t you think it should throw panic()while calling the ioremap() itself. Because this sounds like a serious violation...</font></div>


<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">What say?</font></div></div></div></blockquote><div><br>To my knowledge, ioremap is used only to map the device related physical address to kernel virtual address. i.e. this function will only map either device registers or device memory to kernel virtual address. <br>
<br>Looks like you are trying to pass the address of physical memory to this function as a parameter and it is screwing up. <br><br>Please verify. <br><br>Regards,<br>Prabhu<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><span class="HOEnZb"><font color="#888888">-- <br>With regards,<br>Sandeep Kumar Anantapalli,<br>
</font></span></div></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br>