All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Webb <jeff.webb@domain.hid>
To: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Kernel panic with Xenomai SMP kernel
Date: Wed, 06 Sep 2006 15:23:08 -0500	[thread overview]
Message-ID: <44FF2E2C.9050209@domain.hid> (raw)
In-Reply-To: <1157182863.4967.2.camel@domain.hid>

Philippe Gerum wrote:
> Could you try specifically enabling/disabling CONFIG_PCI_MSI? TIA,

The CONFIG_PCI_MSI does not seem to be causing this particular kernel panic, but it does cause another.  If I enable this option on the working (but buggy) kernel, it boots and gets almost all the way through the init scripts before the kernel panics in move_native_irq with:

 <3> BUG: sleeping function called from invalid context at include/liux/rwsem.h: 43

So I continued my search for the other nasty config option.  After many recompiles, I discovered the source of the original kernel panic was setting CONFIG_HOTPLUG_CPU.  (The non-patched vanilla kernel works fine with CONFIG_HOTPLUG_CPU set.)  I realize that it does not make sense to have this set for a real-time system, but this is the sort of thing that is in the default fedora kernel config.

I was happy to discover the source of the kernel panic, but the SMP kernel was still not quite right (... strange pauses and repeated keystrokes, as I mentioned in a previous email).  I proceed to go through the kernel options in great detail and disable options that I thought were unnecessary.  After doing this, I finally ended up with an SMP xenomai kernel that appears to function properly.  I am now trying to find the option that caused the strange behavior.  I will let you know which option it is, if I can track it down.

I think my problem is solved, since I now have a working SMP kernel.  Now the question is, is there something we can do to keep this problem from biting others?  It seems to me that I took a reasonable approach:

  Download a vanilla kernel from kernel.org.
  Use the xenomai prepare-kernel script to apply the adeos patch.
  Load the default (working) fedora config file.
  Turn off the troublesome config options listed in the TROUBLESHOOTING file.
  Build the kernel as an RPM.

This approach has worked well in the past with many version of RTLinux (and even Xenomai / Linux 2.4/2.6 uniprocessor).  I'm not sure why the SMP build caused so many problems, but it would be nice to fix things up a bit.
  
Is the adeos patch supposed to work with any set of config options?  Or do we need to list some more options to avoid in the TROUBLESHOOTING file?  Let me know if I can help in debugging any problems that I may have uncovered.

Thanks for all your help in this,

-Jeff


  reply	other threads:[~2006-09-06 20:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-31 13:43 [Xenomai-help] IRQ Enable/Disable Marcelo Coelho
2006-08-31 18:49 ` Jan Kiszka
2006-08-31 22:01   ` [Xenomai-help] Kernel panic with Xenomai SMP kernel Jeff Webb
2006-08-31 23:16     ` Gilles Chanteperdrix
2006-08-31 23:45       ` Jeff Webb
2006-09-01  7:26       ` Philippe Gerum
2006-09-01 15:05       ` Jeff Webb
2006-09-01 18:16         ` Gilles Chanteperdrix
2006-09-01 22:15           ` Jeff Webb
2006-09-02  7:41             ` Philippe Gerum
2006-09-06 20:23               ` Jeff Webb [this message]
2006-09-06 22:24                 ` Philippe Gerum
2006-09-07 16:31                   ` Jeff Webb
2006-09-08  8:18                     ` Philippe Gerum
2006-09-13 14:43                   ` Jeff Webb
2006-09-13 15:59                     ` Philippe Gerum
2006-09-14 18:53                       ` Jeff Webb
2006-09-15  7:17                         ` Philippe Gerum
2006-09-01  7:23   ` [Xenomai-help] IRQ Enable/Disable Dmitry Adamushko
2006-09-01  8:29   ` Philippe Gerum
2006-09-01 13:37     ` Jan Kiszka
2006-09-01 14:21       ` Philippe Gerum

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=44FF2E2C.9050209@domain.hid \
    --to=jeff.webb@domain.hid \
    --cc=xenomai@xenomai.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.