Subject: Re: GENERIC crashes in boot on G4/466, 2.0_STABLE and -current
To: Jeff Rizzo <riz@tastylime.net>
From: Timo Schoeler <timo.schoeler@macfinity.net>
List: port-macppc
Date: 05/20/2005 18:49:15
thus Jeff Rizzo spake:
> I've been trying to get a recent NetBSD running on my wife's old G4/466, and
> was able to get 2.0.2 installed from the 'offical' CD finally.
> 
> However, the main thing I want to do on this box is test stuff on -current
> and newer branches like netbsd-2 and netbsd-3, so, I tried booting a -current
> kernel, and BOOM.  So, I tried an up-to-date 2.0_STABLE kernel from an
> up-to-date netbsd-2 branch, and BOOM, in exactly the same way.  :(
> 
> Here's the crash message, in a ten-finger copy:
> 
> [...boot messages...]
> atapibus0 at atabus1: 2 targets
> trap: pid 3.1 (atabus1): kernel MCHK trap @ 0x518e0c (SRR1=0x2041020)
> panic: trap
> Stopped in pid 3.1 (atabus1) at netbsd:cpu_Debugger+0x18:	lwz	r11, r1, 0x0
> db>
> 
> 
> ...and there I'm stuck; the keyboard doesn't work, and I don't have
> a serial console (any way to use a USB->serial dongle as one?), so there's
> no further debugging information to give.
> 
> Before I start a binary search of the netbsd-2 branch to figure out which 
> pullup broke me, does anyone have any suggestions?  Below is as much of the
> boot messages as got saved in the buffer between reboots (there was more at
> the end, culminating in the panic above).  (Note the "0.01 MHz" CPU - should
> I worry? :)
> 
> 
> NetBSD 2.0_STABLE (GENERIC) #0: Thu May 19 21:49:02 PDT 2005
> 	riz@coconut.tastylime.net:/usr/releng/buildobj2/usr/releng/src2/sys/arch/macppc/compile/GENERIC
> total memory = 1024 MB
> avail memory = 982 MB
> mainbus0 (root)
> cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
> cpu0: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>
> cpu0: 0.01 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
> uninorth0 at mainbus0
> pci0 at uninorth0 bus 0
> pci0: i/o space, memory space enabled
> pchb0 at pci0 dev 11 function 0
> pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
> ofb0 at pci0 dev 16 function 0: ATI Technologies Rage Fury MAXX AGP ys, 6 key codes
> uhub2: 5 ports with 4 removable, self powered
> wsnsole (std, vt100 emulation)
> wsmux1: connecting to wsdisplay0
> uninorth1 at mainbus0
> pci1 at uninorth1 bus 0
> pci1: i/o space, memory space enabled
> pchb1 at pci1 dev 11 function 0
> pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
> ofb1 at pci1 dev 21 function 0: ATI Technologies Radeon 7000/VE
> ofb1: 1152 x 870, 8bpp
> wsdisplay at ofb1 not configured
> obio0 at pci1 dev 23 function 0: addr 0x80000000
> zsc0 at obio0 offset 0x13000: irq 22,50
> zstty0 at zsc0 channel 0
> zstty1 at zsc0 channel 1
> i2s at obio0 offset 0x10000 not configured
> adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
> 0 targets
> aed0 at adb0 addr 0: ADB Event device
> apm0 at adb0: battery flags 0x9, 0% charged
> wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
> atabus0 at wdc0 channel 0
> wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
> atabus1 at wdc1 channel 0
> wdc2 at obio0 offset 0x21000 irq 21: DMA transfer
> atabus2 at wdc2 channel 0
> ohci0 at pci1 dev 24 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
> ohci0: interrupting at irq 27
> ohci0: OHCI version 1.0
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> ohci1 at pci1 dev 25 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
> ohci1: interrupting at irq 28
> ohci1: OHCI version 1.0

this email is what i was waiting for...

it's a known issue:

http://mail-index.netbsd.org/port-macppc/2005/01/ and the following
weeks and months.

i ran into this on my G4 (400MHz SP back then, now 450 DP) with 2.99.9
-- it works when you compile the kernel with -O3 and/or (!) any of the
altivec-optimizing flags gcc knows.

IIRC it's an issue on the level of PowerPC assembler.

cheers,

-- 
Timo Schoeler | http://macfinity.net/~tis | timo.schoeler@macfinity.net
//macfinity -- finest IT services | http://macfinity.net
Key fingerprint = F844 51BE C22C F6BD 1196  90B2 EF68 C851 6E12 2D8A

There are 10 types of people in the world. Those who understand binary
and those who don't.