Re: [Opps] Invalid opcode

Andi Kleen
2006-11-05T18:57:50Z

On Sunday 05 November 2006 18:17, S.Çağlar Onur wrote:
> 05 Kas 2006 Paz 18:40 tarihinde, Andi Kleen şunları yazmıştı:
> > How do you know this?
>
> Just guessing, if im not wrong panics occur after SMP alternative switching
> code done its job.

Can you test with "noreplacement" to make sure?

Anyways I suspect we're just getting back some variant of the old CPU setup race.

Normally CPU booting in Linux follows a special "cpu hotplug" state machine,
but for historical reasons i386 only implements one state of this. At one
point we had a similar bug (but not in the callback on CPU #0, but in
the timer on newly booted CPU). I don't see currently how it can happen
(but i haven't thought very deeply about it yet)

Probably your timing is just unlucky on those simulators.

Previously we avoided converting i386 cpu bootup fully to the new state
machine because it is very fragile, but it's possible that there
is no other choice than to do it properly. Or maybe another kludge
is possible.

-Andi