From: coolsandyfor...@gmail.com
Date: Sat, 2 Mar 2013 22:48:34 +0530
Subject: Re: [ARM_LINUX] ioremap() allowing to map system memory...
To: gprabhun...@gmail.com
CC: kernelnewbies@kernelnewbies.org
I passed a physical address 0x63ACD000. As expected
In principle, ioremap() will return 0x if the physical address
passed is of memory.
I just want you to double check the address you have passed to ioremap().
In my experiment on x86 Desktop machine with 2GB RAM. I passed a physical
address 0x63ACD000. As expected it returned 0x. I
I passed a physical address 0x63ACD000. As expected it returned
0x. I am running linux version 3.5.1.
Mine is ARM, i donno about x86. In my case ioremap is successfule and
giving an address in ioremap() range of virtual memory map as in
http://www.arm.linux.org.uk/developer/memory.txt.
Hi All
I am using ARM based board.
In mine,
i did the following...
void __iomem *tcpm_base = ioremap_nocache(0x03B0, 10*SZ_3MB);
Actually i didnt reserve the 30MB memory @ 0x3B0. But still the call is
succesful and i am able to read the memory.
In the logs it is just showing a warning,
On Fri, Mar 1, 2013 at 4:48 PM, sandeep kumar coolsandyfor...@gmail.comwrote:
Hi All
I am using ARM based board.
In mine,
i did the following...
void __iomem *tcpm_base = ioremap_nocache(0x03B0, 10*SZ_3MB);
Actually i didnt reserve the 30MB memory @ 0x3B0. But still the call
is
Looks like you are trying to pass the address of physical memory to this
function as a parameter and it is screwing up.
Yes, i intentionally gave some physical address which is part of system
memory.
My problem infact is, it is not screwing up. It is allowing me to do that.
Its not 'panic'ing
On
On Fri, 01 Mar 2013 16:48:12 +0530, sandeep kumar said:
Don't you think it should throw panic()while calling the ioremap() itself.
Because this sounds like a serious violation...
As you noted, it does give you a warning.
That's a kernel design philosophy - to reserve the panic() and BUG()
On Mar 01 2013, valdis.kletni...@vt.edu wrote:
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.4-dev
On Fri, 01 Mar 2013 16:48:12 +0530, sandeep kumar said:
Don't you think it should throw panic()while calling the ioremap() itself.
Because this sounds like a serious violation...
As