All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Kernel panic on reboot (Xenomai 2.4.9.1, kernel 2.6.31, x86 SMP)
@ 2009-09-28 10:43 Rob Stocks
  0 siblings, 0 replies; 4+ messages in thread
From: Rob Stocks @ 2009-09-28 10:43 UTC (permalink / raw)
  To: xenomai

We have a problem with Xenomai v2.4.9.1, kernel 2.6.31, x86 SMP in that we
get a kernel panic on reboot:

	swapper[0]: segfault at 15aba ip 0000e6ba sp 00000189 error 4
	no vm86_info: BAD
	Kernel panic - not syncing: Attempted to kill the idle task!
	Pis: 0, comm.: swapper Not tainted 2.6.31-CROCUS #1
	Call Trace:
	 [<810280cb>] panic+0x49/0xed
	 [<8102a6f6>] do_exit+0x55/0xdc4
	 [<81028fec>] ? printk+0x9f/0x104
	 [<810031ec>] ? reboot_interrupt+0x0/0x38
	 [<81014af7>] save_v86_state+0xa6/0x168
	 [<810031ec>] ? reboot_interrupt+0x0/0x38
	 [<81002ac6>] work_notifysig_v86+0x06/0x18
	 [<810031ec>] ? reboot_interrupt+0x0/0x38
	reboot[1781]: segfault at 15aba ip 0000e6ba sp 00000189 error 4
	no vm86_info: BAD

Other than this, it seems to work fine.

We had previously been using v2.4.7, kernel 2.6.28.7 which does not have
this issue but for development, we would like to use X and we find that some
X applications (e.g. Netbeans & eclipse) hang the system (with no indication
of cause i.e. no console messages & nothing in the logs - the system just
stops). However, when we use v2.4.9.1 with kernel 2.6.31, we can use X apps
perfectly but we can't reboot!

Anyone have any ideas/suggestions?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Xenomai-help] Kernel panic on reboot (Xenomai 2.4.9.1, kernel 2.6.31, x86 SMP)
@ 2009-09-29 10:30 Rob Stocks
  2009-10-01  7:12 ` Jan Kiszka
  2009-10-03 15:48 ` Jan Kiszka
  0 siblings, 2 replies; 4+ messages in thread
From: Rob Stocks @ 2009-09-29 10:30 UTC (permalink / raw)
  To: xenomai

We have a problem with Xenomai v2.4.9.1, kernel 2.6.31, x86 SMP in that we
get a kernel panic on reboot:

	swapper[0]: segfault at 15aba ip 0000e6ba sp 00000189 error 4
	no vm86_info: BAD
	Kernel panic - not syncing: Attempted to kill the idle task!
	Pis: 0, comm.: swapper Not tainted 2.6.31-CROCUS #1
	Call Trace:
	 [<810280cb>] panic+0x49/0xed
	 [<8102a6f6>] do_exit+0x55/0xdc4
	 [<81028fec>] ? printk+0x9f/0x104
	 [<810031ec>] ? reboot_interrupt+0x0/0x38
	 [<81014af7>] save_v86_state+0xa6/0x168
	 [<810031ec>] ? reboot_interrupt+0x0/0x38
	 [<81002ac6>] work_notifysig_v86+0x06/0x18
	 [<810031ec>] ? reboot_interrupt+0x0/0x38
	reboot[1781]: segfault at 15aba ip 0000e6ba sp 00000189 error 4
	no vm86_info: BAD

Other than this, it seems to work fine.

We had previously been using v2.4.7, kernel 2.6.28.7 which does not have
this issue but for development, we would like to use X and we find that some
X applications (e.g. Netbeans & eclipse) hang the system (with no indication
of cause i.e. no console messages & nothing in the logs - the system just
stops). However, when we use v2.4.9.1 with kernel 2.6.31, we can use X apps
perfectly but we can't reboot!

Anyone have any ideas/suggestions?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Kernel panic on reboot (Xenomai 2.4.9.1, kernel 2.6.31, x86 SMP)
  2009-09-29 10:30 [Xenomai-help] Kernel panic on reboot (Xenomai 2.4.9.1, kernel 2.6.31, x86 SMP) Rob Stocks
@ 2009-10-01  7:12 ` Jan Kiszka
  2009-10-03 15:48 ` Jan Kiszka
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2009-10-01  7:12 UTC (permalink / raw)
  To: Rob Stocks; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]

Rob Stocks wrote:
> We have a problem with Xenomai v2.4.9.1, kernel 2.6.31, x86 SMP in that we
> get a kernel panic on reboot:
> 
> 	swapper[0]: segfault at 15aba ip 0000e6ba sp 00000189 error 4
> 	no vm86_info: BAD
> 	Kernel panic - not syncing: Attempted to kill the idle task!
> 	Pis: 0, comm.: swapper Not tainted 2.6.31-CROCUS #1
> 	Call Trace:
> 	 [<810280cb>] panic+0x49/0xed
> 	 [<8102a6f6>] do_exit+0x55/0xdc4
> 	 [<81028fec>] ? printk+0x9f/0x104
> 	 [<810031ec>] ? reboot_interrupt+0x0/0x38
> 	 [<81014af7>] save_v86_state+0xa6/0x168
> 	 [<810031ec>] ? reboot_interrupt+0x0/0x38
> 	 [<81002ac6>] work_notifysig_v86+0x06/0x18
> 	 [<810031ec>] ? reboot_interrupt+0x0/0x38
> 	reboot[1781]: segfault at 15aba ip 0000e6ba sp 00000189 error 4
> 	no vm86_info: BAD
> 
> Other than this, it seems to work fine.
> 
> We had previously been using v2.4.7, kernel 2.6.28.7 which does not have
> this issue but for development, we would like to use X and we find that some
> X applications (e.g. Netbeans & eclipse) hang the system (with no indication
> of cause i.e. no console messages & nothing in the logs - the system just
> stops). However, when we use v2.4.9.1 with kernel 2.6.31, we can use X apps
> perfectly but we can't reboot!
> 
> Anyone have any ideas/suggestions?

Please provide your .config, I'll try to have a look.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Kernel panic on reboot (Xenomai 2.4.9.1, kernel 2.6.31, x86 SMP)
  2009-09-29 10:30 [Xenomai-help] Kernel panic on reboot (Xenomai 2.4.9.1, kernel 2.6.31, x86 SMP) Rob Stocks
  2009-10-01  7:12 ` Jan Kiszka
@ 2009-10-03 15:48 ` Jan Kiszka
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2009-10-03 15:48 UTC (permalink / raw)
  To: Rob Stocks; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 2789 bytes --]

Rob Stocks wrote:
> We have a problem with Xenomai v2.4.9.1, kernel 2.6.31, x86 SMP in that we
> get a kernel panic on reboot:
> 
> 	swapper[0]: segfault at 15aba ip 0000e6ba sp 00000189 error 4
> 	no vm86_info: BAD
> 	Kernel panic - not syncing: Attempted to kill the idle task!
> 	Pis: 0, comm.: swapper Not tainted 2.6.31-CROCUS #1
> 	Call Trace:
> 	 [<810280cb>] panic+0x49/0xed
> 	 [<8102a6f6>] do_exit+0x55/0xdc4
> 	 [<81028fec>] ? printk+0x9f/0x104
> 	 [<810031ec>] ? reboot_interrupt+0x0/0x38
> 	 [<81014af7>] save_v86_state+0xa6/0x168
> 	 [<810031ec>] ? reboot_interrupt+0x0/0x38
> 	 [<81002ac6>] work_notifysig_v86+0x06/0x18
> 	 [<810031ec>] ? reboot_interrupt+0x0/0x38
> 	reboot[1781]: segfault at 15aba ip 0000e6ba sp 00000189 error 4
> 	no vm86_info: BAD
> 
> Other than this, it seems to work fine.
> 
> We had previously been using v2.4.7, kernel 2.6.28.7 which does not have
> this issue but for development, we would like to use X and we find that some
> X applications (e.g. Netbeans & eclipse) hang the system (with no indication
> of cause i.e. no console messages & nothing in the logs - the system just
> stops). However, when we use v2.4.9.1 with kernel 2.6.31, we can use X apps
> perfectly but we can't reboot!
> 
> Anyone have any ideas/suggestions?

Patch below fixes it for me.

There seems to be another gremlin like this, but it needs a second
check. I will post official patches once that is done.

Jan

----------->

x86: Fix reboot for SMP

So far I-pipe called reboot_interrupt recursively as it virtualized the
wrong entry call.

Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
---

 arch/x86/include/asm/hw_irq.h |    1 +
 arch/x86/kernel/ipipe.c       |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h
index d523a86..6a7c6bc 100644
--- a/arch/x86/include/asm/hw_irq.h
+++ b/arch/x86/include/asm/hw_irq.h
@@ -122,6 +122,7 @@ extern void smp_invalidate_interrupt(struct pt_regs *);
 #else
 extern asmlinkage void smp_invalidate_interrupt(struct pt_regs *);
 #endif
+extern asmlinkage void smp_reboot_interrupt(void);
 #endif
 
 extern void (*__initconst interrupt[NR_VECTORS-FIRST_EXTERNAL_VECTOR])(void);
diff --git a/arch/x86/kernel/ipipe.c b/arch/x86/kernel/ipipe.c
index af902c6..b8f9139 100644
--- a/arch/x86/kernel/ipipe.c
+++ b/arch/x86/kernel/ipipe.c
@@ -297,7 +297,7 @@ void __init __ipipe_enable_pipeline(void)
 
 	ipipe_virtualize_irq(ipipe_root_domain,
 			     ipipe_apic_vector_irq(REBOOT_VECTOR),
-			     (ipipe_irq_handler_t)&reboot_interrupt,
+			     (ipipe_irq_handler_t)&smp_reboot_interrupt,
 			     NULL,
 			     &__ipipe_ack_apic,
 			     IPIPE_STDROOT_MASK);


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-03 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-29 10:30 [Xenomai-help] Kernel panic on reboot (Xenomai 2.4.9.1, kernel 2.6.31, x86 SMP) Rob Stocks
2009-10-01  7:12 ` Jan Kiszka
2009-10-03 15:48 ` Jan Kiszka
  -- strict thread matches above, loose matches on Subject: below --
2009-09-28 10:43 Rob Stocks

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.