Subject: Re: boot failures with sommerfeld_i386_mp_1 branch
To: None <tech-smp@netbsd.org>
From: Rafal Boni <rafal@mediaone.net>
List: tech-smp
Date: 01/15/2002 13:42:10
In message <200201141634.g0EGYV110702@doppelganger.waterside.net>, I wrote: 

-> Folks:
-> 	I've just upgraded my main development box from a 1x700mhz PIII
-> 	to a 2x700Mhz PIII on a Tyan Patriot motherboard (based on Intel's
-> 	BX chipset).
-> 
-> 	I was able to boot the 12/04 kernel Christos put up on ftp.netbsd.org
-> 	in /pub/NetBSD/misc/christos/ and everything seems to work there, but
-> 	I am unable to boot a kernel built from sources.
[...]
-> 	The failure mode is that the machine simply reboots sometime after
-> 	printing 'cpu0: 8 cache colors'.  It doesn't drop to DDB, just re-
-> 	boots.  If I start the kernel with '-d', and set a breakpoint on
-> 	cpu_attach, I avert the spontaneous reboot, but the second cpu fails
-> 	to start up.  Note that the failure mode was the same for both of 
-> 	the above cases!

[ Following up to my own email...]

So I did a little digging, inspired by the fact that an MP kernel Bill 
built also booted fine; subsequent tries also produced a GENERIC.MP kernel
from my own sources that booted (I had been trying to boot an MP variation
of my own custom kernel config).

It turns out LARGEPAGES or the linker tricks used to make LARGEPAGES go 
are a no-go in the MP branch; if I remove the inclusion of largepages.inc
from my kernel config, I get a kernel that boots, otherwise I get the 
reboot (as Bill noted, nost likely a triple-fault) soon after attaching
cpu0.

I'm going to go back and add in all the other things I removed and see if 
they have any effect, but as least I got something booting!

--rafal

----
Rafal Boni                                                  rafal@mediaone.net