Skip to contentSkip to conversation

inconsistent lock state in 2.6.29-rc6

DISCUSSION Meelis Roos 2 participants 5 messages Mar 4, 2009 – Apr 23, 2009 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

This another problem from my 6-CPU E3000 - just got it while compiling 2.6.29-rc7 but the compilation continues fine.

[  412.896568] ================[  412.964373] [ INFO: inconsistent lock state ]
[  413.016474] 2.6.29-rc6 #2
[  413.047705] ---------------------------------
[  413.099822] inconsistent {softirq-on-W} -> {in-softirq-W} usage.
[  413.171717] cc1/2007 [HC0[0]:SC1[1]:HE0:SE0] takes:
[  413.230048]  (call_function_lock){-+..}, at: [<000000000049003c>] generic_smp_call_function_interrupt+0x11c/0x1c0
[  413.353010] {softirq-on-W} state was registered at:
[  413.411319]   [<000000000048a270>] lock_acquire+0x50/0x80
[  413.475905]   [<00000000006d7708>] _spin_lock+0x28/0x40
[  413.538420]   [<000000000048f814>] ipi_call_lock+0x14/0x40
[  413.604053]   [<00000000006d0fe8>] smp_callin+0x100/0x148
[  413.668649]   [<00000000006d0c30>] after_lock_tlb+0x1ac/0x1cc
[  413.737408]   [<0000000000484d48>] trace_hardirqs_off_caller+0x8/0xc0
[  413.814515] irq event stamp: 26969
[  413.855132] hardirqs last  enabled at (26968): [<0000000000463a0c>] __do_softirq+0x6c/0x180
[  413.955170] hardirqs last disabled at (26969): [<0000000000426a20>] sys_call_table+0x510/0x770
[  414.058315] softirqs last  enabled at (26962): [<0000000000463ad4>] __do_softirq+0x134/0x180
[  414.159373] softirqs last disabled at (26967): [<000000000042acf0>] do_softirq+0xb0/0xe0
[  414.256269]
[  414.256278] other info that might help us debug this:
[  414.334389] 1 lock held by cc1/2007:
[  414.377083]  #0:  (rcu_read_lock){..--}, at: [<000000000048ff20>] generic_smp_call_function_interrupt+0x0/0x1c0
[  414.497975]
[  414.497983] stack backtrace:
[  414.550034] Call Trace:
[  414.579206]  [000000000048630c] print_usage_bug+0x16c/0x200
[  414.645902]  [0000000000487644] mark_lock+0xee4/0x1000
[  414.707365]  [0000000000488ed0] __lock_acquire+0x870/0x1bc0
[  414.774045]  [000000000048a270] lock_acquire+0x50/0x80
[  414.835514]  [00000000006d7708] _spin_lock+0x28/0x40
[  414.894899]  [000000000049003c] generic_smp_call_function_interrupt+0x11c/0x1c0
[  414.982462]  [000000000043cda0] smp_call_function_client+0x20/0x40
[  415.056383]  [0000000000426a2c] sys_call_table+0x51c/0x770
[  415.122013]  [0000000000463a18] __do_softirq+0x78/0x180
[  415.184527]  [000000000042acf0] do_softirq+0xb0/0xe0
[  415.243904]  [00000000004634b4] irq_exit+0x94/0xc0
[  415.301208]  [000000000042adf8] handler_irq+0xd8/0x120
[  415.362673]  [0000000000426a8c] sys_call_table+0x57c/0x770
Signature · 1 line
Meelis Roos ([email protected])
#1 lore raw

Just got a similar one from 2.6.29-rc7+git, also during compilation (make -j12 on the same 6-CPU machine):

[88235.161904] 
[88235.161927] ================[88235.229699] [ INFO: inconsistent lock state ]
[88235.281798] 2.6.29-rc7 #5
[88235.313039] ---------------------------------
[88235.365144] inconsistent {softirq-on-W} -> {in-softirq-W} usage.
[88235.437048] cc1/5669 [HC0[0]:SC1[1]:HE0:SE0] takes:
[88235.495374]  (call_function_lock){-+..}, at: [<000000000049011c>] generic_smp_call_function_interrupt+0x11c/0x1c0
[88235.618340] {softirq-on-W} state was registered at:
[88235.676651]   [<000000000048a350>] lock_acquire+0x50/0x80
[88235.741236]   [<00000000006d7808>] _spin_lock+0x28/0x40
[88235.803745]   [<000000000048f8f4>] ipi_call_lock+0x14/0x40
[88235.869381]   [<00000000006d10c8>] smp_callin+0x100/0x148
[88235.933973]   [<00000000006d0d10>] after_lock_tlb+0x1ac/0x1cc
[88236.002740]   [<00000000004600b0>] wait_consider_task+0x3d0/0x9a0
[88236.075677] irq event stamp: 12251
[88236.116296] hardirqs last  enabled at (12250): [<00000000004639ec>] __do_softirq+0x6c/0x180
[88236.216337] hardirqs last disabled at (12251): [<0000000000426a20>] sys_call_table+0x510/0x770
[88236.319480] softirqs last  enabled at (12220): [<0000000000463ab4>] __do_softirq+0x134/0x180
[88236.420535] softirqs last disabled at (12249): [<000000000042ad10>] do_softirq+0xb0/0xe0
[88236.517420] 
[88236.517429] other info that might help us debug this:
[88236.595555] 1 lock held by cc1/5669:
[88236.638256]  #0:  (rcu_read_lock){..--}, at: [<0000000000490000>] generic_smp_call_function_interrupt+0x0/0x1c0
[88236.759146] 
[88236.759156] stack backtrace:
[88236.811197] Call Trace:
[88236.840381]  [00000000004863ec] print_usage_bug+0x16c/0x200
[88236.907076]  [0000000000487724] mark_lock+0xee4/0x1000
[88236.968538]  [0000000000488fb0] __lock_acquire+0x870/0x1bc0
[88237.035216]  [000000000048a350] lock_acquire+0x50/0x80
[88237.096682]  [00000000006d7808] _spin_lock+0x28/0x40
[88237.156072]  [000000000049011c] generic_smp_call_function_interrupt+0x11c/0x1c0
[88237.243632]  [000000000043cd60] smp_call_function_client+0x20/0x40
[88237.317555]  [0000000000426a2c] sys_call_table+0x51c/0x770
[88237.383191]  [00000000004639f8] __do_softirq+0x78/0x180
[88237.445702]  [000000000042ad10] do_softirq+0xb0/0xe0
[88237.505079]  [0000000000463494] irq_exit+0x94/0xc0
[88237.562396]  [0000000000430510] timer_interrupt+0x90/0xc0
[88237.626980]  [0000000000426ad4] sys_call_table+0x5c4/0x770
Signature · 1 line
Meelis Roos ([email protected])
maintainer
#2 lore raw
In reply to Meelis Roos

From: Meelis Roos <[email protected]>
Date: Wed, 4 Mar 2009 09:51:50 +0200 (EET)

Quoted 10 lines

This another problem from my 6-CPU E3000 - just got it while compiling 2.6.29-rc7 but the compilation continues fine.

[  412.896568] ================> [  412.964373] [ INFO: inconsistent lock state ]
[  413.016474] 2.6.29-rc6 #2
[  413.047705] ---------------------------------
[  413.099822] inconsistent {softirq-on-W} -> {in-softirq-W} usage.
[  413.171717] cc1/2007 [HC0[0]:SC1[1]:HE0:SE0] takes:
[  413.230048]  (call_function_lock){-+..}, at: [<000000000049003c>] generic_smp_call_function_interrupt+0x11c/0x1c0
[  413.353010] {softirq-on-W} state was registered at:

Please try this patch:

arch/sparc/kernel/smp_64.c +2 -2
index f1c8208..1de47d2 100644
@@ -119,9 +119,9 @@ void __cpuinit smp_callin(void)
 	while (!cpu_isset(cpuid, smp_commenced_mask))
 		rmb();
 
-	ipi_call_lock();
+	ipi_call_lock_irq();
 	cpu_set(cpuid, cpu_online_map);
-	ipi_call_unlock();
+	ipi_call_unlock_irq();
 
 	/* idle thread is expected to have preempt disabled */
 	preempt_disable();
#3 lore raw
In reply to Meelis Roos
Quoted 11 lines
Quoted 10 lines

This another problem from my 6-CPU E3000 - just got it while compiling 2.6.29-rc7 but the compilation continues fine.

[  412.896568] ================> > [  412.964373] [ INFO: inconsistent lock state ]
[  413.016474] 2.6.29-rc6 #2
[  413.047705] ---------------------------------
[  413.099822] inconsistent {softirq-on-W} -> {in-softirq-W} usage.
[  413.171717] cc1/2007 [HC0[0]:SC1[1]:HE0:SE0] takes:
[  413.230048]  (call_function_lock){-+..}, at: [<000000000049003c>] generic_smp_call_function_interrupt+0x11c/0x1c0
[  413.353010] {softirq-on-W} state was registered at:
Quoted 1 line

Please try this patch:

It seems to work. When I got my E3000 hooked up to electricity again four days ago, I compiled the latest git and found this patch already included. It has seen some stress since, and a reboot into .30-rc3, aga still seems to work fine. Thank you for taking care of it!

Signature · 1 line
Meelis Roos ([email protected])
maintainer
#4 lore raw
In reply to Meelis Roos

From: Meelis Roos <[email protected]>
Date: Wed, 22 Apr 2009 22:53:44 +0300 (EEST)

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines

This another problem from my 6-CPU E3000 - just got it while compiling 2.6.29-rc7 but the compilation continues fine.

[  412.896568] ================>> > [  412.964373] [ INFO: inconsistent lock state ]
[  413.016474] 2.6.29-rc6 #2
[  413.047705] ---------------------------------
[  413.099822] inconsistent {softirq-on-W} -> {in-softirq-W} usage.
[  413.171717] cc1/2007 [HC0[0]:SC1[1]:HE0:SE0] takes:
[  413.230048]  (call_function_lock){-+..}, at: [<000000000049003c>] generic_smp_call_function_interrupt+0x11c/0x1c0
[  413.353010] {softirq-on-W} state was registered at:
Quoted 6 lines
Quoted 1 line

Please try this patch:

It seems to work. When I got my E3000 hooked up to electricity again four days ago, I compiled the latest git and found this patch already included. It has seen some stress since, and a reboot into .30-rc3, aga still seems to work fine. Thank you for taking care of it!

Thank you for testing.