2001-11-01 00:27:04

by Adam Williams

[permalink] [raw]
Subject: crash in smp_core99_kick_cpu

This is a dual CPU G4. Startup freezes after

smp_core99_kick_cpu done

is displayed. Commenting out the

KL_GPIO_OUT(reset_io, KEYLARGO_GPIO_OUTPUT_ENABLE);

line in feature_core99_kick_cpu allows the boot process to
continue but with only CPU #0 and a "Processor 1 is stuck"
message.

MacOS 9.2 booted fine and detected both CPUs.

Compiler gcc 2.96
Kernel 2.4.13

Kernels compiled with gcc 3.0.2 just crash and go into
open firmware.

cat /proc/cpuinfo displays




processor : 0
cpu : 7450, altivec supported
temperature : 1-76 C (uncalibrated)
clock : 799MHz
revision : 2.1 (pvr 8000 0201)
bogomips : 797.90
total bogomips : 797.90
zero pages : total: 0 (0Kb) current: 0 (0Kb) hits: 0/0 (0%)
machine : PowerMac3,5
motherboard : PowerMac3,5 MacRISC2 MacRISC Power Macintosh
L2 cache : 256K unified
memory : 256MB
pmac-generation : NewWorld






2001-11-01 03:57:35

by Tom Rini

[permalink] [raw]
Subject: Re: crash in smp_core99_kick_cpu

On Wed, Oct 31, 2001 at 04:29:29PM -0800, Adam Williams wrote:

> This is a dual CPU G4. Startup freezes after
[snip]
> Compiler gcc 2.96
> Kernel 2.4.13

Hit http://penguinppc.org/dev/kernel.shtml, and try one of those trees.
There's a few minor differences in the linuxppc_2_4 tree which might fix
this and will be in Linus' tree eventually. And for future reference,
you might have better luck on linuxppc-dev or linuxppc-users
(http://lists.linuxppc.org)

> Kernels compiled with gcc 3.0.2 just crash and go into
> open firmware.

Known gcc 3.0.x/kernel 'feature'.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

2001-11-02 08:48:53

by Benjamin Herrenschmidt

[permalink] [raw]
Subject: Re: crash in smp_core99_kick_cpu

>This is a dual CPU G4. Startup freezes after
>
>smp_core99_kick_cpu done
>
>is displayed. Commenting out the
>
>KL_GPIO_OUT(reset_io, KEYLARGO_GPIO_OUTPUT_ENABLE);
>
>line in feature_core99_kick_cpu allows the boot process to
>continue but with only CPU #0 and a "Processor 1 is stuck"
>message.
>
>MacOS 9.2 booted fine and detected both CPUs.
>
>Compiler gcc 2.96
>Kernel 2.4.13
>
>Kernels compiled with gcc 3.0.2 just crash and go into
>open firmware.
>
>cat /proc/cpuinfo displays

Which kernel ? Linus 2.4.13 or one of the PPC bk trees ?

I've been using 2.4.13 from bk _devel on a dual G4 for some
time now, it just worked. I'm away from my dev. machines for
a few days, but I'll look into this problem as soon as I'm
back.

gcc 3.0.2 isn't ready for ppc kernel compiles afaik. I'm
personally still using 2.95.4 from debian "sid".

Ben.