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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Piel
Date: Friday, March 14, 2008 - 3:50 pm

Dave Hansen wrote:
Actually, each time I look at init/main.c I feel like we are super lucky 
that Linux boots ;-)

Well, my point was that actually populate_rootfs() does _very_ little 
with regard to FS manipulation, acpi_find_dsdt_initrd() even less. The 
task of checking that everything needed is available beforehand is 
certainly not the same magnitude as the one of the Danaides as you 
seemed to implied ;-)

The fact is, this patch has been tested a lot, because it's been used by 
several distributions for a long time. I expect that the only potential 
problems are corner cases that are possible to work around.

Yes, we agree on this. That would be crazy :-)

I'm actually the author of this comment... The static/init firmware 
infrastructure that I mentioned was more just about a way to hide the fs 
access in a special part of the kernel, not avoiding it. We used to have 
a different way but it was even uglier: append the DSDT after the 
initramfs, and then access it _directly_. This implies teaching 
populate_rootfs() to not panic when seeing DSDTs and loosing the benefit 
of the compression.

That said, I'm really not against any complete different approach. All 
that is needed is being able to read a file early at boot (the DSDT) 
without having to recompile the kernel each time the file is modified. 
For instance someone had once mentioned modifying the in-kernel DSDT by 
unlinking and relinking the bzimage. If one can show me how to do that 
I'd be happy to implement it...

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

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