All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Fabio M. Di NItto" <fabbione@fabbione.net>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH] atyfb: Fix bootup hangs on sparc64.
Date: Thu, 06 Jan 2011 04:35:03 +0000	[thread overview]
Message-ID: <4D254677.6010001@fabbione.net> (raw)
In-Reply-To: <20110105.130959.260100853.davem@davemloft.net>

On 01/05/2011 11:39 PM, Sam Ravnborg wrote:
> On Wed, Jan 05, 2011 at 01:09:59PM -0800, David Miller wrote:
>>
>> After commit 25edd6946a1d74e5e77813c2324a0908c68bcf9e ("sparc64: Get
>> rid of indirect p1275 PROM call buffer.")  we can't pass virtual
>> addresses >4GB to PROM calls.
>>
>> Largely this is never necessary in drivers because we have a copy of
>> the entire PROM device tree in the kernel and a set of of_*()
>> interfaces to access it.
>>
>> Unfortunately there were some lingering prom calls in the atyfb
>> driver, in particular prom_finddevice() was being called with an
>> on-stack address which could be anywhere.
>>
>> This code is actually probing for information we already have, the
>> PROM choosen console output device is stored in of_console_device so
>> all of this nasty code consolidates into a one-line comparison.
>>
>> Next we have some prom_getintdefault() calls which are trivially
>> transformed into the equivalent of_getintprop_default().
>>
>> Special thanks to Fabio, who figured out exactly where the bootup
>> was hanging.  That made this bug trivial to fix.
> 
> The patch did not fix my hang during boot.
> I have added a few prinks and I can see that the boot
> hangs here:
>                 printk(KERN_INFO "console [%s%d] enabled, bootconsole disabled\n",
>                         newcon->name, newcon->index);
>                 for_each_console(bcon) {
>                         if (bcon->flags & CON_BOOT)
>                                 unregister_console(bcon);  <<<<<<<
>                 }
> 
> We succeed to unregister "tty" but when we unregister "earlyprom" I see a hang.
> 
> So what I see is a different bug.
> 
> I did not try to persuade it further as it is getting late here.
> 
> Kernel config attached.
> 
> 	Sam

What kernel version are you running exactly? config says 2.6.36-rc7, if
so it's missing other fixes related to the console handover.

Basically, grab 2.6.37 that was released a day ago and apply the patch.

If the problem persist, please comment out the call to
unregister_console and boot with -p. That should give us enough extra
output to see where it's hanging.

Fabio

  parent reply	other threads:[~2011-01-06  4:35 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-05 21:09 [PATCH] atyfb: Fix bootup hangs on sparc64 David Miller
2011-01-05 21:37 ` Frans van Berckel
2011-01-05 22:39 ` Sam Ravnborg
2011-01-06  4:35 ` Fabio M. Di NItto [this message]
2011-01-06  7:47 ` Sam Ravnborg
2011-01-06  8:15 ` Fabio M. Di Nitto
2011-01-06 13:35 ` Frans van Berckel
2011-01-06 19:36 ` David Miller
2011-01-06 19:57 ` Fabio M. Di NItto
2011-01-07 22:41 ` Sam Ravnborg
2011-01-08  9:01 ` Fabio M. Di NItto
2011-01-08 19:26 ` David Miller
2011-01-09 11:32 ` Fabio M. Di NItto
2011-01-10  8:20 ` David Miller
2011-01-10  8:30 ` Sam Ravnborg
2011-01-10  8:32 ` David Miller
2011-01-10 11:53 ` Sam Ravnborg
2011-01-10 19:32 ` Sam Ravnborg
2011-01-10 21:17 ` David Miller
2011-01-10 22:03 ` Sam Ravnborg
2011-01-10 22:07 ` David Miller
2011-01-10 22:13 ` David Miller
2011-01-11  5:22 ` Fabio M. Di NItto
2011-01-11  5:44 ` Sam Ravnborg

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=4D254677.6010001@fabbione.net \
    --to=fabbione@fabbione.net \
    --cc=sparclinux@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.