Subject: Re: MP?
To: Havard Eidnes <he@netbsd.org>
From: Johnny Billquist <bqt@update.uu.se>
List: port-alpha
Date: 01/22/2004 22:08:34
On Thu, 22 Jan 2004, Havard Eidnes wrote:

> > >  o the kernel panic you get is in ltsleep(), and seems to indicate
> > >    that a sleep is done outside of a process context, i.e. curlwp is
> > >    NULL.  It would be interesting to see a stack backtrace to see
> > >    where this happens.  I'm not sure if this is actually related to
> > >    the machine running with multiple physical CPUs (but failed to
> > >    initialize the secondary CPUs).
> >
> > panic: spinlock_switchcheck: CPU 1 has 1 spin locks
> > Stopped in pid 5.1 (ioflush) at netbsd:cpu_Debugger+0x4:        ret     zero,(ra)
>
> Hm, that's a different panic than the one you reported earlier,
> which was:
>
> panic: kernel diagnostic assertion "p != NULL" failed: file "/usr/src/sys/kern/kern_synch.c", line 413
> Stopped at      netbsd:cpu_Debugger+0x4:        ret     zero,(ra)
> db{1}>

How irritaed I'm getting... I've not been able to the the assert fail
again, but I've gotten other errors at the same spot.

The latest was:

root file system type: ffs
panic: ltsleep: l_stat 3 != LSONPROC
Stopped in pid 1.1 (init) at    netbsd:cpu_Debugger+0x4:        ret     zero,(ra
)
db{2}> bt
cpu_Debugger() at netbsd:cpu_Debugger+0x4
panic() at netbsd:panic+0x1f8
ltsleep() at netbsd:ltsleep+0x764
prologue botch: displacement 112
frame size botch: adjust register offsets?
uvm_pageout() at netbsd:uvm_pageout+0xd8
uvm_pageout() at netbsd:uvm_pageout+0xd8
db{2}>

It seems it might be a problem with not getting the other CPUs started
perhaps?

> The root problem, I suspect, is that your secondary CPUs don't spin
> up.  Could you try with just two identical CPUs in the chassis and see
> what happens?

Since that isn't possible, but that when I did have two identical cards,
I came just as far. I don't remember the exact error message, but it seems
as if it behaved the samea way.

Any more good ideas on what to try?

	Johnny

Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt@update.uu.se           ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol