From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: iMX31 MBX registers Porting problem
Date: Mon, 31 Jan 2011 15:45:23 +0000 [thread overview]
Message-ID: <20110131154523.GB32737@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <AANLkTi=EsCCwgiK5BtkKfaYEuzVUtnie-LU77cNJ4P4q@mail.gmail.com>
On Sun, Jan 30, 2011 at 10:08:02PM -0700, Chris wrote:
> Ok, I did that and it inserts and removes an entry I am not sure about
> what would be wrong.
>
> 0x7f000000-0x7f002000 8192 module_alloc_update_bounds+0x18/0x68
> pages=1 vmalloc
> ...
> 0x848a0000-0x848a5000 20480 reg_probe+0x94/0x12c [reg] ioremap
>
> 0x7f006000-0x7f008000 8192 module_alloc_update_bounds+0x18/0x68
> pages=1 vmalloc
> ...
> 0x848a8000-0x848ad000 20480 reg_probe+0x94/0x12c [reg] ioremap
>
> here are two insertions, also showing the module bounds update, not
> sure what to make of this information.
The 'module_alloc_update_bounds+0x18/0x68' entry is the space used for
your module. As it is free'd lazily, each time you insert it you'll
get different virtual addresses.
> when I cat /proc/iomem I can see my entry:
> c0000000-c0003fff : mx3_mbx_regs.0
>
> how can I know that the mapping is pointing me to my location?
ioremap() always gives you a cookie for use with readl() et.al. or NULL.
If it's successful, the mapping will have been created and pointing at
the requested bus address.
I can't see anything wrong with your code, so I suspect you're missing
something with the hardware - maybe a clock which isn't running or an
enable bit somewhere?
I've no idea how MBX works on the MX platforms, so I can't really suggest
anything further.
next prev parent reply other threads:[~2011-01-31 15:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-30 6:48 iMX31 MBX registers Porting problem Badguy Badguy
2011-01-31 0:31 ` Russell King - ARM Linux
2011-01-31 5:08 ` Chris
2011-01-31 15:45 ` Russell King - ARM Linux [this message]
2011-01-31 17:37 ` Chris
2011-02-01 21:05 ` Chris
2011-02-01 21:29 ` Chris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110131154523.GB32737@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox