login
Header Space

 
 

Re: [2.6.25-rc5-mm1] BUG: spinlock bad magic early during boot

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tilman Schmidt <tilman@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, Thomas Renninger <trenn@...>, Eric Piel <eric.piel@...>, Len Brown <len.brown@...>, Linus Torvalds <torvalds@...>, Christoph Hellwig <hch@...>, Markus Gaugusch <dsdt@...>, <linux-acpi@...>
Date: Friday, March 14, 2008 - 4:06 pm

For those of you new to this thread, here's the initial report:

	http://marc.info/?t=120536629300001&r=1&w=2

I'm pretty sure the root cause of this bug is this commit:

	ACPI: basic initramfs DSDT override support
	71fc47a9adf8ee89e5c96a47222915c5485ac437

Which did this hunk:
        
        @@ -648,6 +654,7 @@ asmlinkage void __init start_kernel(void)
         
                check_bugs();
         
        +       populate_rootfs(); /* For DSDT override from initramfs
        */
                acpi_early_init(); /* before LAPIC and SMP init */
         
                /* Do the rest non-__init'ed, we're now alive */
        	rest_init();
        ...

Well, the fs initcalls aren't actually done until during rest_init(),
including initializing my mnt_writer[] spinlocks.  I guess I could
statically initialize them, but that's not the root of the problem, it's
just the canary in the coal mine.

I think the populate_rootfs() call is completely bogus and certainly
can't be done before the initcalls.  But, I don't immediately have any
better suggestions for you.  Can you delay the ACPI init until after the
fs initcalls are made?

-- Dave

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25-rc5-mm1, Andrew Morton, (Tue Mar 11, 4:14 am)
Re: 2.6.25-rc5-mm1 sparc64 boot problems due to generic pci_..., Mariusz Kozlowski, (Fri Mar 28, 6:52 pm)
Re: 2.6.25-rc5-mm1 sparc64 boot problems due to generic pci_..., Benjamin Herrenschmidt, (Fri Mar 28, 8:44 pm)
Re: 2.6.25-rc5-mm1 build failure of pcsp.c, Mariusz Kozlowski, (Sun Mar 16, 5:38 pm)
Re: 2.6.25-rc5-mm1: "consolechars" hangs on boot, Laurent Riffard, (Thu Mar 13, 6:07 pm)
Re: 2.6.25-rc5-mm1: "consolechars" hangs on boot, Andrew Morton, (Thu Mar 13, 6:38 pm)
Re: 2.6.25-rc5-mm1: "consolechars" hangs on boot, Oleg Nesterov, (Fri Mar 14, 1:26 am)
Re: 2.6.25-rc5-mm1: "consolechars" hangs on boot, Laurent Riffard, (Fri Mar 14, 5:06 pm)
Re: 2.6.25-rc5-mm1: "consolechars" hangs on boot, Oleg Nesterov, (Sat Mar 15, 8:03 am)
Re: [2.6.25-rc5-mm1] regression: cannot run Postfix sendmail..., Rafael J. Wysocki, (Thu Mar 20, 6:21 am)
Re: [2.6.25-rc5-mm1] regression: cannot run Postfix sendmail..., Rafael J. Wysocki, (Thu Mar 20, 10:38 am)
Re: 2.6.25-rc5-mm1 shutdown crash, Helge Hafting, (Thu Mar 13, 10:03 am)
Re: 2.6.25-rc5-mm1 shutdown crash, Andrew Morton, (Thu Mar 13, 12:12 pm)
Re: 2.6.25-rc5-mm1 shutdown crash, Helge Hafting, (Tue Mar 25, 8:23 am)
[2.6.25-rc5-mm1] WARNING: at drivers/base/sys.c:173, Tilman Schmidt, (Wed Mar 12, 8:15 pm)
Re: [2.6.25-rc5-mm1] WARNING: at drivers/base/sys.c:173, Tilman Schmidt, (Thu Mar 13, 8:01 pm)
Re: [2.6.25-rc5-mm1] WARNING: at drivers/base/sys.c:173, Tilman Schmidt, (Sat Mar 15, 8:16 am)
Re: [2.6.25-rc5-mm1] WARNING: at drivers/base/sys.c:173, Tilman Schmidt, (Fri Mar 14, 5:58 am)
[2.6.25-rc5-mm1] BUG: spinlock bad magic early during boot, Tilman Schmidt, (Wed Mar 12, 7:54 pm)
Re: [2.6.25-rc5-mm1] BUG: spinlock bad magic early during boot, Dave Hansen, (Fri Mar 14, 4:06 pm)
Re: 2.6.25-rc5-mm1 - x86_64 boot problem ?, Badari Pulavarty, (Wed Mar 12, 2:10 pm)
Re: 2.6.25-rc5-mm1 - x86_64 boot problem ?, Andrew Morton, (Wed Mar 12, 2:15 pm)
Re: 2.6.25-rc5-mm1 - x86_64 boot problem with git-sched.patch, Badari Pulavarty, (Thu Mar 13, 1:09 pm)
Re: 2.6.25-rc5-mm1 - x86_64 boot problem with git-sched.patch, Badari Pulavarty, (Thu Mar 13, 1:40 pm)
Re: 2.6.25-rc5-mm1 - x86_64 boot problem with git-sched.patch, Guillaume Chazarain, (Thu Mar 13, 1:55 pm)
Re: 2.6.25-rc5-mm1 - x86_64 boot problem with git-sched.patch, Badari Pulavarty, (Thu Mar 13, 2:20 pm)
Re: [BUG] 2.6.25-rc5-mm1 kernel panic with "Exception: 501 "..., Benjamin Herrenschmidt, (Wed Mar 12, 4:40 pm)
Re: 2.6.25-rc5-mm1, Dave Young, (Tue Mar 11, 9:14 pm)
Re: 2.6.25-rc5-mm1, , (Tue Mar 11, 4:23 pm)
Re: 2.6.25-rc5-mm1, Andrew Morton, (Tue Mar 11, 4:39 pm)
Re: 2.6.25-rc5-mm1, Torsten Kaiser, (Wed Mar 12, 3:33 pm)
Re: 2.6.25-rc5-mm1, Andrew Morton, (Wed Mar 12, 3:44 pm)
Re: 2.6.25-rc5-mm1, Torsten Kaiser, (Wed Mar 12, 4:01 pm)
Re: 2.6.25-rc5-mm1, Torsten Kaiser, (Thu Mar 13, 6:05 pm)
Re: 2.6.25-rc5-mm1, Andrew Morton, (Thu Mar 13, 6:35 pm)
Re: 2.6.25-rc5-mm1, Badari Pulavarty, (Thu Mar 13, 7:10 pm)
Re: 2.6.25-rc5-mm1, Ingo Molnar, (Fri Mar 21, 8:12 am)
Re: 2.6.25-rc5-mm1 (paravirt/vsmp/no PCI), Randy Dunlap, (Tue Mar 11, 1:09 pm)
Re: 2.6.25-rc5-mm1 (paravirt/vsmp/no PCI), Jeremy Fitzhardinge, (Tue Mar 11, 2:18 pm)
Re: 2.6.25-rc5-mm1 (paravirt/vsmp/no PCI), Ravikiran G Thirumalai, (Tue Mar 11, 8:10 pm)
Re: 2.6.25-rc5-mm1 (paravirt/vsmp/no PCI), Ingo Molnar, (Wed Mar 12, 3:14 am)
Re: 2.6.25-rc5-mm1 (paravirt/vsmp/no PCI), Jeremy Fitzhardinge, (Tue Mar 11, 9:51 pm)
Re: 2.6.25-rc5-mm1 (paravirt/vsmp/no PCI), Randy Dunlap, (Tue Mar 11, 9:42 pm)
Re: [Build Failure] 2.6.25-rc5-mm1 Build fails with allmodco..., Bartlomiej Zolnierkiewicz..., (Tue Mar 11, 3:36 pm)
Re: [Build Failure] 2.6.25-rc5-mm1 Build fails with allmodco..., Bartlomiej Zolnierkiewicz..., (Tue Mar 11, 3:35 pm)
[Build Faliure] 2.6.25-rc5-mm1 build fails , Kamalesh Babulal, (Tue Mar 11, 6:16 am)
Re: [Build Faliure] 2.6.25-rc5-mm1 build fails, Edward Shishkin, (Tue Mar 11, 6:56 am)
speck-geostationary