From: Santosh Shilimkar <santosh.shilimkar@ti.com>
To: Chen Baozi <baozich@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: Question about mmc4 initialization on OMAP5432
Date: Tue, 8 Oct 2013 12:48:26 -0400 [thread overview]
Message-ID: <5254375A.6050507@ti.com> (raw)
In-Reply-To: <525432D2.9010907@gmail.com>
On Tuesday 08 October 2013 12:29 PM, Chen Baozi wrote:
> Hi all,
>
> I have got a problem when booting dom0 kernel for Xen on OMAP5432 uEVM.
> With a recent patch, Xen hypervisor is avoid to map "disabled" device
> memory for dom0. In omap5-uevm.dts, we have got the &mmc4 node marked as
> "disabled". So the Xen won't populate <0x480d1000 0x400> memory region
> to the dom0. If dom0 is trying to access any memory address in this
> area, the hypervisor would be panic with a tranlation fault. However, it
> turns out that even the mmc4 is disabled in omap5-uevm.dts, Linux kernel
> is trying to access the 0x480d1010 when booting, which then leads a
> hypervisor panic as mentioned.
>
> The only point I know right now is that the 0x480d1010 is accessed by
> the omap_hwmod_read(). However, what makes me confused is how the dom0
> kernel called omap_hwmod_read() to access 0x480d1010 while the mmc4 is
> disabled. I guess it might relate to hard coded omap_hwmod structure but
> have no idea what happen exactly when dom0 access the address due to the
> lack of calling stack information when booting Xen hypervisor.
>
There is no hard-coding rather a different requirement why
hwmod accesses the IP space. DT disabled is will ensure that the device
won't get created but hwmod bus initially tries to put all the
supported IPs in sane hardware state by doing reset on those
IPs.
We have proposals to address than in future where such resets are
moved with device/driver probe etc to avoid such issues. Actually
MMC4 is more for SDIO kind of usecase so you might even get rid
of that in your case.
Regards,
Santosh
prev parent reply other threads:[~2013-10-08 16:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-08 16:29 Question about mmc4 initialization on OMAP5432 Chen Baozi
2013-10-08 16:48 ` Santosh Shilimkar [this message]
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=5254375A.6050507@ti.com \
--to=santosh.shilimkar@ti.com \
--cc=baozich@gmail.com \
--cc=linux-omap@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.