All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Burress <tim@variosecure.net>
To: linux-kernel@vger.kernel.org
Subject: Kernel 2.6.34-2.6.38.4: Intermittently hang on boot in kernel/irq/autoprobe?
Date: Wed, 27 Apr 2011 11:33:48 +0900	[thread overview]
Message-ID: <4DB7808C.9030005@variosecure.net> (raw)

Hello,

I've been seeing an occasional problem in which the kernel hangs very 
early in the boot process. Just inserting printk()'s it seems that this 
occurs in kernel/irq/autoprobe.c, function probe_irq_on() in the loop 
immediately after the comment

         /*
          * enable any unassigned irqs
          * (we must startup again here because if a longstanding irq
          * happened in the previous stage, it may have masked itself)
          */

This occurs the first time the function is called during boot. I first 
noticed it in 2.6.34 but then it seemed to disappear after upgrading to 
the (then current) 2.6.37.2. But then after a while I started seeing it 
again, perhaps once every 15 reboots. I've since rebuild with 2.6.38.4 
and some of the lock debugging options turned on:

CONFIG_LOCKUP_DETECTOR=y
CONFIG_HARDLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
CONFIG_DEBUG_SPINLOCK=y
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_PROVE_LOCKING=y
CONFIG_LOCKDEP=y
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_LOCKDEP is not set
CONFIG_DEBUG_SPINLOCK_SLEEP=y

but the problem remains (and I get no lock debugging output), so I 
thought I would post something.

The kernel is compiled with CONFIG_SMP but the hardware I'm testing on 
has a single, single-core (VIA Nehemiah) CPU. The hardware appears to 
have no NMI support, so that watchdog seems to be disabled on boot, and 
when the system hangs, it hangs forever. What's the best way to track 
this down? Or if there's information/tests that would be helpful, just 
let me know. Puzzling...

Thanks!

Tim


                 reply	other threads:[~2011-04-27  3:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4DB7808C.9030005@variosecure.net \
    --to=tim@variosecure.net \
    --cc=linux-kernel@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.