Boot hang regression 3.10.0-rc4 -> 3.10.0
Tony Lindgren
tony at atomide.com
Thu Jul 11 02:24:41 EDT 2013
* Rajendra Nayak <rnayak at ti.com> [130710 23:25]:
> On Wednesday 10 July 2013 07:56 PM, Tony Lindgren wrote:
> >
> > Felipe is right, looks like all we need is to check if context is
> > initialized or not. So no need for mach-omap2/serial.c or hwmod tinkering.
> >
> > After that having DEBUG_LL and cmdline with earlyprintk console=ttyO..
> > works for me.
>
> On what platform? Like I said there are flags set statically in hmwod
> data for OMAP4 and OMAP5, which make it work without any hwmod tinkering
> in mach-omap2/serial.c. But it won't work for am33xx.
For me omap4 sdp hangs during ttyO2 probe if earlyprintk is enabled for
that port and console is enabled for that port. That's because we attempt
to restore uninitialized context.
It's possible that we have more than one bug here though.
> > @@ -1523,6 +1524,8 @@ static int serial_omap_probe(struct platform_device *pdev)
> >
> > pm_runtime_mark_last_busy(up->dev);
> > pm_runtime_put_autosuspend(up->dev);
> > + up->initialized = true;
>
> This won't help as the context save for serial happens as part of set_termios() and not
> when the device is probed.
The issue is that in serial probe we currently restore NULL context to
the port which kills earlyprintk output until set_termios() is called.
But as discussed, there are better ways for fixing this issue.
Regards,
Tony
More information about the linux-arm-kernel
mailing list