Subject: 712/80 panics during boot
To: None <port-hp700@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: port-hp700
Date: 12/01/2005 23:37:33
Hello,

I'm trying to use -current kernel on 712/80, but it crashes on boot.
I remember old versions at least reached at "root device" prompt.

An HPMC (High Priotity Machine Check) occurs, but kernel fails
to get the HPMC information.  The PIM command on boot ROM prompt
works, and I found that the HPMC occurs at

hp700/dev/sti_sgc.c:166:	devtype = bus_space_read_1(ca->ca_iot, romh, 3);

Why this panic occurs?
Why PIM transfer fails?

Any ideas?
-- 
ITOH Yasufumi


Here's console log of boot -> panic -> reboot -> pim (ROM).

BOOT_ADMIN> bo lan

Booting



>> NetBSD/hp700 LIF/FFS/LFS Boot, Revision 1.3
>> (itohy@pino.my.domain, Sat Oct 15 20:34:33 JST 2005)
>> Enter "reset" to reset system.
Boot: [[[lf0a:]netbsd][-a][-c][-d][-s][-v][-q]] :-
9278584+110592+434176 [279568+240828]=0xb043f8
Start @ 0x200000 [1=0xc85000-0xd043f8]...
SPID bits: 0x0, error = -2
btlb info: minsz=128, maxsz=16384
btlb fixed: i=0, d=0, c=8
btlb varbl: i=0, d=0, c=0
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.99.12 (GENERIC) #33: Wed Nov 30 21:33:42 JST 2005
	itohy@pino.my.domain:/w/src/sys/arch/hp700/compile/GENERIC
HP9000/712/80 (King Gecko)
real mem = 128 MB (73728 reserved for PROM, 111 MB used by NetBSD)
avail mem = 109 MB
mainbus0 (root) [flex fff80000]
pdc0 at mainbus0
cpu0 at mainbus0 hpa 0xfffbe000 path 8 irq 31 ipl 0: PA7100LC (Hummingbird) rev 5
cpu0: PCX-L, PA-RISC 1.1c, lev 1, cat A, 80 MHz clk
cpu0: shadows, 128K/128K D/I caches, 120 shared TLB, 8 shared BTLB
cpu0: PCX-L (CMOS-26B) floating point, rev 1
mem0 at mainbus0 hpa 0xfffbf000 path 9: viper rev 0, ctrl 40400102<eisa_prf> size 128MB

machine check: HPMC - WARNING: could not transfer PIM info (-5)

	General Registers:
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000

	Control Registers:
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000

	Space Registers:
	0x00000000 0x00000000 0x00000000 0x00000000
	0x00000000 0x00000000 0x00000000 0x00000000

	IIA 0x0:0x00000000 0x0:0x00000000
	IPSW 0
	SP 0x0:0x00000000 FP 0x0:0x00000000

	Check Type 0
	CPU State 0
	Cache Check 0
	TLB Check 0
	Bus Check 0
	Assist Check 0  Assist State 0
	System Responder 0x00000000
	System Requestor 0x00000000
	Path Info 0x00000000
panic: machine check
Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x10:	ldo	R'40(%r3
),%r30
db> t
cpu_Debugger(9c9908,136e160,0,0) at netbsd:cpu_Debugger+0x10
panic(aa6824,1,0,0) at netbsd:panic+0x1b8
hppa_machine_check(1,0,0,0) at netbsd:hppa_machine_check+0x7e0
os_hpmc_cont(ffffe4ff,ffffe0ff,ffffdcff,ffffd8ff) at netbsd:os_hpmc_cont+0x104
db> reboot
syncing disks... done
WARNING: not updating battery clock
rebooting...

----------------------------------------------------------------------------
BootRom Version    1.6
Memory Size:  128 MB
----------------------------------------------------------------------------




(c) Copyright 1990-1993, Hewlett-Packard Company.
All rights reserved

Press <ESCAPE> to stop boot sequence.
Selecting a system to boot.
----------------------------------------------------------------------------
Command                             Description
-------                             -----------
Auto [boot|search] [on|off]         Display or set auto flag
Boot [pri|alt|scsi.addr] [isl]      Boot from primary, alternate or SCSI
Boot lan[.lan_addr] [install] [isl] Boot from LAN
Chassis [on|off]                    Enable chassis codes
Diagnostic [on|off]                 Enable/disable diagnostic boot mode
Fastboot [on|off]                   Display or set fast boot flag
Help                                Display the command menu
Information                         Display system information
LanAddress                          Display LAN station addresses
Monitor [type]                      Select monitor type
Path [pri|alt] [lan.id|SCSI.addr]   Change boot path
Pim [hpmc|toc|lpmc]                 Display PIM info
Search [ipl] [scsi|lan [install]]   Display potential boot devices
Secure [on|off]                     Display or set security mode
----------------------------------------------------------------------------
BOOT_ADMIN> pim

-----------------  Processor State Information (HPMC) ------------------

General Registers 0 - 31
00 - 03  00000000  00D06C80  0092DE24  00D06D00
04 - 07  00000000  0001B320  7F7FFFFF  00000000
08 - 0B  0000003F  00000008  0000000F  BC0FD569
0C - 0F  000043FF  00004400  00004800  43F02AA9
10 - 13  00004000  00000000  00000C00  00000000
14 - 17  F8000000  00D06C8C  00921418  00000000
18 - 1B  00000003  F8000000  00000000  000000FF
1C - 1F  00000000  00C1B000  00D06D40  0092DE24

Control Registers 0 - 31
00 - 03  00000000  00000000  00000000  00000000
04 - 07  00000000  00000000  00000000  00000000
08 - 0B  00000002  00000002  00000000  0000001F
0C - 0F  00000000  00000000  00203000  00000000
10 - 13  E4082054  00000000  00921440  D2731BF8
14 - 17  00000000  F8100003  0004FF0E  00000000
18 - 1B  00000FFF  00D30000  00C21000  00000000
1C - 1F  00D30000  F1000000  00D05000  00D06C80

Space Registers 0 - 7
00 - 03  00000000  00000000  00000000  00000000
04 - 07  00000000  00000000  00000000  00000000

Other Processor Data
         00000000  00921444  20000000  9E000004
         00000000  00000000  00000000  00310000
         00000000  00000000  00000000  F8000000


BOOT_ADMIN>