Re: Kernel panic when compiling with SMP support

From: Chuck Ebbert
Date: Tue Feb 21 2006 - 02:12:49 EST


In-Reply-To: <1140437271.7849.21.camel@xxxxxxxxxxxxxxxxxxxxxx>

On Mon, 20 Feb 2006 at 04:07:51 -0800, Chris Largret wrote:

> In short, I only get these kernel panics when I enable SMP.
> ...
> invalid opcode: 0000 [1] SMP
> RIP: 0010:[<ffffffff8100efa8>] <ffffffff8100efa8>{timer_interrupt+0}
> ...
> Code: 83 3d 7d d6 38 00 01 55 48 89 d7 48 89 e5 7f 13 e8 50 fc ff
> --------------------------------------------------------------------
> Unable to handle kernel NULL pointer dereference at 0000000000000001
> RIP:
> <ffffffff8100cfa8>{timer_interrupt+0}
> ...
> Code: 83 3d 7d d6 38 00 01 55 48 89 d7 48 89 e5 7f 13 e8 50 fc ff

Maybe your CPU is overheating or it's not getting enough current.

Both oopses happen at the same exact address and they are complete
nonsense. For #1, the instruction is valid (it's
cmpl $1,0x38d67d(%rip)) and for #2 it's the same instruction, which
can't be referencing address 1.

You can try slowing down your CPUs by doing:

# echo -n "powersave" >/sys/devices/system/cpu/cpuN/cpufreq/scaling_governor

for each cpu (assuming you have a driver loaded, and you should.)

And please post your complete .config

--
Chuck
"Equations are the Devil's sentences." --Stephen Colbert

-
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/