According to Kanoj Sarcar ...
>
> >
> > On Fri, Apr 07, 2000 at 12:11:46PM -0700, Kanoj Sarcar wrote:
> >
> > > For now, I am clearing the TS bit on entry into the kernel, and things
> > > aren't too crazy ... except I keep on wondering what is making the
> > > TS get set, and whether it has any connection to me not being able
> > > to talk to processors on other nodes (via prom routines).
> >
> > At what time are you trying to launch the other processors? The experience
>
> Linux kernel wise, during smp_boot_cpus(). Yes, I was thinking of doing
> this earlier (just as a test), right after the master comes into the
> kernel. This is _probably_ uninteresting to the cpu folks, so we can
> take this offline (on linux-origin). More interestingly, the slave cpu
> on the same node as the master does get launched, the other slaves on
> the other nodes fail. Srinivas said he is going to look into prom
> debugging this problem (it might be a xkphys/ckseg0 issue in the
> prom itself).
At this point I have just been able to get my kernel to build :-(
I am in the lab in front of trillium. I am trying to set some
LEDs in bootstrap() and go to a infinite loop, just to see if we
get to that point. POD mode debug is not possible due to slaves
going into a weird state.
Can someone explain this?
After including a plat file like hub.h in head.S, I get these errors??
mips64-linux-gcc -D__KERNEL__ -I/build3/sprasad/snmipsmp/linux/include
-D__SMP__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -mabi=64 -G 0
-mno-abicalls -fno-pic -pipe -mcpu=r8000 -mips4 -Wa,-32 -fno-strict-aliasing -c
head.S -o head.o
/build3/sprasad/snmipsmp/linux/include/linux/posix_types.h: Assembler messages:
/build3/sprasad/snmipsmp/linux/include/linux/posix_types.h:36: Error:
unrecognized opcode `typedef struct{'
^^^^^^^^^^^^^^^^^^^^^^^^^^
??
/build3/sprasad/snmipsmp/linux/include/linux/posix_types.h:37: Error:
unrecognized opcode `unsigned long fds_bits[(1024/(8*sizeof(unsigned long)))]'
/build3/sprasad/snmipsmp/linux/include/linux/posix_types.h:38: Error: Rest of
line ignored. First ignored character is `}'.
/build3/sprasad/snmipsmp/linux/include/linux/posix_types.h:41: Error: unrecogniz
In fact, I think the local slave too does not look happy led wise.
If it got successfully launched the led code should change and stay
steady. Now, it is still blinking like in unlaunched state.
Thanks
srinivasa
>
> Kanoj
>
> > I made over the last few years is that most firware is rather fragile,
> > so my own code for launching the CPUs launches them in the very early
> > startup phase and leaves them waiting with interrupts disabled in a
> > spinlock. Later on the kernel actually launches the processors by
> > unlocking these spinlocks. This seem to have mostly solved the problems
> > that I was observing with my own code.
> >
> > Ralf
> >
>
|