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
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help