linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>, Kevin Hilman <khilman@ti.com>
Cc: Tony Lindgren <tony@atomide.com>,
	linux-omap@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
	Olof Johansson <olof@lixom.net>
Subject: Re: arm-soc + rmk's tree boot failure on OMAP4430SDP
Date: Mon, 19 Mar 2012 12:59:37 +0000	[thread overview]
Message-ID: <20120319125937.GD16389@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1332160864.2144.66.camel@deskari>

On Mon, Mar 19, 2012 at 02:41:04PM +0200, Tomi Valkeinen wrote:
> On Mon, 2012-03-19 at 12:30 +0000, Russell King - ARM Linux wrote:
> > On Mon, Mar 19, 2012 at 11:33:21AM +0200, Tomi Valkeinen wrote:
> > > But that's a bigger work item, so what I did in the series above is that
> > > I changed platform_driver_register()s to platform_driver_probe()s. All
> > > the DSS subdevices are present at boot time and are non-hotpluggable, so
> > > I think that should work fine.
> > 
> > platform_driver_probe() is just a wrapper around platform_driver_register() -
> > the difference between the two is that _probe() will temporarily set the
> > probe method in the passed driver structure, call platform_driver_register(),
> > and then NULL the probe method out.
> 
> I meant that platform_driver_probe() solves the issue with the
> initialization order of the dss subdrivers.
> 
> The deadlock is solved in the series by moving the driver registration
> to module_init.
> 
> > So, merely changing platform_driver_register() for platform_driver_probe()
> > won't solve the deadlock.
> > 
> > I'm not sure what's caused this regression, as I can't see any DSS changes,
> > nor core driver model changes which would account for this.  Has something
> > changed in hwmod to cause this?
> > 
> > It is _very_ important that we discover what has caused this regression
> > and prevent it going upstream until the problem is resolved.  Until we
> > know that, I suggest that _no_ OMAP changes go upstream during this
> > merge window until we understand what's caused this.
> 
> I didn't try yet, but it could be this:
> 
> commit 3ec2decbb6dfcdbbb6e6a8ddf5adc7edbc429ed7
> Author: Kevin Hilman <khilman@ti.com>
> Date:   Wed Feb 15 11:47:45 2012 -0800
> 
>     ARM: OMAP: omap_device: remove omap_device_parent
>     
>     Currently all omap_devices are forced to have the dummy device
>     'omap_device_parent' as a parent.  This was used to distinguish
>     omap_devices from "normal" platform_devices in the OMAP PM core code.
>     
>     Now that we implement the PM core using PM domains, this is no longer
>     needed, and is removed.
>     
>     This also frees up omap_devices to have a more complex parent/child
>     relationships that model actual device relationships.
>     
>     The only in-tree user of omap_device_parent was the OMAP PM layer to
>     handle lost-context count for omap_devices.  That is now converted to
>     use the presence of the omap_device_pm_domain instead.
>     
>     Signed-off-by: Kevin Hilman <khilman@ti.com>

Yes, it could well be caused by this.  What would've happened before is
that the omapdss device would have been parented to the 'platform' device,
while the hwmod-built devices would've been parented to omap_device_parent.

With the above commit, both devices would be parented to the 'platform'
device, which would cause lock contention.

I've just built with this reverted (which was a relatively clean revert) -
and doing so appears to allow the kernel to boot again.

  reply	other threads:[~2012-03-19 12:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16 23:11 arm-soc + rmk's tree boot failure on OMAP4430SDP Russell King - ARM Linux
2012-03-17  0:47 ` Tony Lindgren
2012-03-17 21:15   ` Russell King - ARM Linux
2012-03-19  9:33     ` Tomi Valkeinen
2012-03-19 12:30       ` Russell King - ARM Linux
2012-03-19 12:41         ` Tomi Valkeinen
2012-03-19 12:59           ` Russell King - ARM Linux [this message]
2012-03-19 13:02           ` Tomi Valkeinen
2012-03-19 13:59             ` Tomi Valkeinen
2012-03-19 19:21               ` Tony Lindgren
2012-03-22  1:15               ` Russ Dill

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=20120319125937.GD16389@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=arnd@arndb.de \
    --cc=khilman@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=olof@lixom.net \
    --cc=tomi.valkeinen@ti.com \
    --cc=tony@atomide.com \
    /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;
as well as URLs for NNTP newsgroup(s).