Skip to contentSkip to conversation

BUG: soft lockup

Xenomai-help Thomas Schaefer 3 participants 5 messages Dec 15, 2008

lore
Share & tools
lore
#0 lore raw

Hi, I am trying to use kernel version 2.6.27.8 and the latest stable version of xenomai 2.4.6.1 on a quad core xeon 5400. The kernel seems to load OK.[ 1.306673] I-pipe: Domain Xenomai registered.[ 1.311242] Xenomai: hal/x86_64 started.[ 1.316744] Xenomai: real-time nucleus v2.4.6 (Bamboo) loaded.[ 1.322786] Xenomai: starting native API services.[ 1.327580] Xenomai: starting POSIX services.[ 1.331973] Xenomai: starting RTDM services. But as soon as init starts the PC hangs in an endlass loop and I get:[ 69.793501] BUG: soft lockup - CPU#3 stuck for 61s! [init:1][ 69.793501] Modules linked in:[ 69.793501] CPU 3:[ 69.793501] Modules linked in:[ 69.793501] Pid: 1, comm: init Not tainted 2.6.27.8 #1[ 69.793501] RIP: 0010:[<ffffffff8021de25>] [<ffffffff8021de25>] native_flush_tlb_others+0xa5/0xe0[ 69.793501] RSP: 0000:ffff88007f849c58 EFLAGS: 00000202[ 69.793501] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000[ 69.793501] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000[ 69.793501] RBP: ffff88007f840000 R08: 0000000000000000 R09: 0000000000000000[ 69.793501] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000[ 69.793501] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000[ 69.793501] FS: 00007fbcbf7486e0(0000) GS:ffff88007f806a80(0000) knlGS:0000000000000000[ 69.793501] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b[ 69.793501] CR2: 0000000000672b08 CR3: 000000007eb84000 CR4: 00000000000006e0[ 69.793501] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000[ 69.793501] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400[ 69.793501][ 69.793501] Call Trace:[ 69.793501]The kernel runs fine without the Xenomai patch.
I also tried the version in the current svn repository with the same result.
Please let me know you what I can do to help to fix this or what additional info I should provide. Regards,Thomas Schaefer
_________________________________________________________________

#1 lore raw

Hi,

please don't post HTML mails, they are not parsable unless one switches HTML mode on for mail reading (which at least I dislike to do).

Quoted 38 lines · Thomas Schaefer

Hi,

I am trying to use kernel version 2.6.27.8 and the latest stable version of xenomai 2.4.6.1 on a quad core xeon 5400.

The kernel seems to load OK.

[    1.306673] I-pipe: Domain Xenomai registered.
[    1.311242] Xenomai: hal/x86_64 started.
[    1.316744] Xenomai: real-time nucleus v2.4.6 (Bamboo) loaded.
[    1.322786] Xenomai: starting native API services.
[    1.327580] Xenomai: starting POSIX services.
[    1.331973] Xenomai: starting RTDM services.

But as soon as init starts the PC hangs in an endlass loop and I get:

[   69.793501] BUG: soft lockup - CPU#3 stuck for 61s! [init:1]
[   69.793501] Modules linked in:
[   69.793501] CPU 3:
[   69.793501] Modules linked in:
[   69.793501] Pid: 1, comm: init Not tainted 2.6.27.8 #1
[   69.793501] RIP: 0010:[<ffffffff8021de25>]  [<ffffffff8021de25>]
native_flush
_tlb_others+0xa5/0xe0
[   69.793501] RSP: 0000:ffff88007f849c58  EFLAGS: 00000202
[   69.793501] RAX: 0000000000000000 RBX: 0000000000000000 RCX:
0000000000000000
[   69.793501] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
0000000000000000
[   69.793501] RBP: ffff88007f840000 R08: 0000000000000000 R09:
0000000000000000
[   69.793501] R10: 0000000000000000 R11: 0000000000000000 R12:
0000000000000000
[   69.793501] R13: 0000000000000000 R14: 0000000000000000 R15:
0000000000000000
[   69.793501] FS:  00007fbcbf7486e0(0000) GS:ffff88007f806a80(0000)
knlGS:00000
00000000000
[   69.793501] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[   69.793501] CR2: 0000000000672b08 CR3: 000000007eb84000 CR4:
Quoted 8 lines

00000000000006e0

[   69.793501] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
0000000000000000
[   69.793501] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
0000000000000400
[   69.793501]
[   69.793501] Call Trace:
[   69.793501]

Really no Stack trace available?

Quoted 5 lines

The kernel runs fine without the Xenomai patch.
I also tried the version in the current svn repository with the same result. Please let me know you what I can do to help to fix this or what additional info I should provide.

Does this problem also occurs when you
- disable CONFIG_XENOMAI?
- boot with maxcpus=2, and then maxcpus=1?

Additionally, could you provide your .config?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 26
Corporate Competence Center Embedded Linux
#2 lore raw

Hi,

Quoted 11 lines

Date: Mon, 15 Dec 2008 17:09:25 +0100
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: BUG: soft lockup

Hi,

please don't post HTML mails, they are not parsable unless one switches HTML mode on for mail reading (which at least I dislike to do).

Sorry about that.

Quoted 48 lines
Quoted 38 lines · Thomas Schaefer

Hi,

I am trying to use kernel version 2.6.27.8 and the latest stable version of xenomai 2.4.6.1 on a quad core xeon 5400.

The kernel seems to load OK.

[ 1.306673] I-pipe: Domain Xenomai registered.
[ 1.311242] Xenomai: hal/x86_64 started.
[ 1.316744] Xenomai: real-time nucleus v2.4.6 (Bamboo) loaded.
[ 1.322786] Xenomai: starting native API services.
[ 1.327580] Xenomai: starting POSIX services.
[ 1.331973] Xenomai: starting RTDM services.

But as soon as init starts the PC hangs in an endlass loop and I get:

[ 69.793501] BUG: soft lockup - CPU#3 stuck for 61s! [init:1]
[ 69.793501] Modules linked in:
[ 69.793501] CPU 3:
[ 69.793501] Modules linked in:
[ 69.793501] Pid: 1, comm: init Not tainted 2.6.27.8 #1
[ 69.793501] RIP: 0010:[] []
native_flush
_tlb_others+0xa5/0xe0
[ 69.793501] RSP: 0000:ffff88007f849c58 EFLAGS: 00000202
[ 69.793501] RAX: 0000000000000000 RBX: 0000000000000000 RCX:
0000000000000000
[ 69.793501] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
0000000000000000
[ 69.793501] RBP: ffff88007f840000 R08: 0000000000000000 R09:
0000000000000000
[ 69.793501] R10: 0000000000000000 R11: 0000000000000000 R12:
0000000000000000
[ 69.793501] R13: 0000000000000000 R14: 0000000000000000 R15:
0000000000000000
[ 69.793501] FS: 00007fbcbf7486e0(0000) GS:ffff88007f806a80(0000)
knlGS:00000
00000000000
[ 69.793501] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 69.793501] CR2: 0000000000672b08 CR3: 000000007eb84000 CR4:
Quoted 8 lines

00000000000006e0

[ 69.793501] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
0000000000000000
[ 69.793501] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
0000000000000400
[ 69.793501]
[ 69.793501] Call Trace:
[ 69.793501]
Quoted 2 lines

Really no Stack trace available?

Yes that's all there is.

Quoted 9 lines
Quoted 5 lines

The kernel runs fine without the Xenomai patch.
I also tried the version in the current svn repository with the same result. Please let me know you what I can do to help to fix this or what additional info I should provide.

Does this problem also occurs when you
- disable CONFIG_XENOMAI?
- boot with maxcpus=2, and then maxcpus=1?

Disabling CONFIG_XENOMAI doesn't help but using maxcpus=2 or maxcpus=1 makes it boot again.

Quoted 3 lines

Additionally, could you provide your .config?

Sure.

BTW. I run kernel 2.6.26.5 with Xenomai 2.5-devel/2.0-15 without problems on the same board for some time now.

Quoted 5 lines

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 26
Corporate Competence Center Embedded Linux

Thomas

_________________________________________________________________

#3 lore raw
Quoted 72 lines · Thomas Schaefer

Hi,

Quoted 11 lines

Date: Mon, 15 Dec 2008 17:09:25 +0100
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: BUG: soft lockup

Hi,

please don't post HTML mails, they are not parsable unless one switches HTML mode on for mail reading (which at least I dislike to do).

Sorry about that.

Quoted 47 lines
Quoted 38 lines · Thomas Schaefer

Hi,

I am trying to use kernel version 2.6.27.8 and the latest stable version of xenomai 2.4.6.1 on a quad core xeon 5400.

The kernel seems to load OK.

[ 1.306673] I-pipe: Domain Xenomai registered.
[ 1.311242] Xenomai: hal/x86_64 started.
[ 1.316744] Xenomai: real-time nucleus v2.4.6 (Bamboo) loaded.
[ 1.322786] Xenomai: starting native API services.
[ 1.327580] Xenomai: starting POSIX services.
[ 1.331973] Xenomai: starting RTDM services.

But as soon as init starts the PC hangs in an endlass loop and I get:

[ 69.793501] BUG: soft lockup - CPU#3 stuck for 61s! [init:1]
[ 69.793501] Modules linked in:
[ 69.793501] CPU 3:
[ 69.793501] Modules linked in:
[ 69.793501] Pid: 1, comm: init Not tainted 2.6.27.8 #1
[ 69.793501] RIP: 0010:[] []
native_flush
_tlb_others+0xa5/0xe0
[ 69.793501] RSP: 0000:ffff88007f849c58 EFLAGS: 00000202
[ 69.793501] RAX: 0000000000000000 RBX: 0000000000000000 RCX:
0000000000000000
[ 69.793501] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
0000000000000000
[ 69.793501] RBP: ffff88007f840000 R08: 0000000000000000 R09:
0000000000000000
[ 69.793501] R10: 0000000000000000 R11: 0000000000000000 R12:
0000000000000000
[ 69.793501] R13: 0000000000000000 R14: 0000000000000000 R15:
0000000000000000
[ 69.793501] FS: 00007fbcbf7486e0(0000) GS:ffff88007f806a80(0000)
knlGS:00000
00000000000
[ 69.793501] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 69.793501] CR2: 0000000000672b08 CR3: 000000007eb84000 CR4:
Quoted 8 lines

00000000000006e0

[ 69.793501] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
0000000000000000
[ 69.793501] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
0000000000000400
[ 69.793501]
[ 69.793501] Call Trace:
[ 69.793501]
Quoted 2 lines

Really no Stack trace available?

Yes that's all there is.

Quoted 4 lines
Quoted 4 lines

The kernel runs fine without the Xenomai patch.
I also tried the version in the current svn repository with the same result. Please let me know you what I can do to help to fix this or what additional info I should provide.

Quoted 5 lines
Quoted 3 lines

Does this problem also occurs when you
- disable CONFIG_XENOMAI?
- boot with maxcpus=2, and then maxcpus=1?

Disabling CONFIG_XENOMAI doesn't help but using maxcpus=2 or maxcpus=1 makes it boot again.

Could you try the following patch?

include/asm-x86/irq_vectors.h renamed from include/asm-x86/irq_vectors.h~ +1 -1
@@ -80,7 +80,7 @@
 #ifdef CONFIG_IPIPE
 #define INVALIDATE_TLB_VECTOR_END	0xf2
 #define INVALIDATE_TLB_VECTOR_START	0xf0	/* f0-f2 used for TLB flush */
-#define NUM_INVALIDATE_TLB_VECTORS	4	/* f3-f7 used by I-pipe */
+#define NUM_INVALIDATE_TLB_VECTORS	3	/* f3-f7 used by I-pipe */
 #else /* !CONFIG_IPIPE */
 #define INVALIDATE_TLB_VECTOR_END	0xf7
 #define INVALIDATE_TLB_VECTOR_START	0xf0	/* f0-f7 used for TLB flush */
Signature · 1 line
                                                 Gilles.
#4 lore raw

Hi Gilles,

Quoted 27 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

The kernel runs fine without the Xenomai patch.
I also tried the version in the current svn repository with the same result. Please let me know you what I can do to help to fix this or what additional info I should provide.

Does this problem also occurs when you
- disable CONFIG_XENOMAI?
- boot with maxcpus=2, and then maxcpus=1?

Disabling CONFIG_XENOMAI doesn't help but using maxcpus=2 or maxcpus=1 makes it boot again.

Could you try the following patch?

include/asm-x86/irq_vectors.h 2008-12-15 19:48:53.000000000 +0100 renamed from include/asm-x86/irq_vectors.h~ 2008-12-09 18:05:38.000000000 +0100 +1 -1
@@ -80,7 +80,7 @@
 #ifdef CONFIG_IPIPE
 #define INVALIDATE_TLB_VECTOR_END 0xf2
 #define INVALIDATE_TLB_VECTOR_START 0xf0 /* f0-f2 used for TLB flush */
-#define NUM_INVALIDATE_TLB_VECTORS 4 /* f3-f7 used by I-pipe */
+#define NUM_INVALIDATE_TLB_VECTORS 3 /* f3-f7 used by I-pipe */
 #else /* !CONFIG_IPIPE */
 #define INVALIDATE_TLB_VECTOR_END 0xf7
 #define INVALIDATE_TLB_VECTOR_START 0xf0 /* f0-f7 used for TLB flush */
Signature · 2 lines
-- 
Gilles.

With the patch applied Linux seems to start correctly.

Regards,
Thomas
_________________________________________________________________