Re: [Opps] Invalid opcode

From: Andi Kleen
Date: Sun Nov 05 2006 - 13:58:10 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/