Subject: port-mac68k/26250: Duo 280 panics early during boot
To: None <gnats-bugs@gnats.NetBSD.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 07/11/2004 23:24:13
>Number:         26250
>Category:       port-mac68k
>Synopsis:       Duo 280 panics early during boot
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 11 21:28:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
>Release:        NetBSD 2.0_BETA + NetBSD current
>Organization:
Falling Raindrops
>Environment:
Macintosh Duo 280c, 40 MByte RAM, snapshot kernels from
releng.netbsd.org as well as self-compiled ones
Architecture: m68k
Machine: mac68k

>Description:

	2.0beta as well as -current kernels panic early during boot on
	a PowerBook Duo 280c. From the serial console:

Getting mapping from MMU.
Loaded at 0x0
System RAM: 41943040 bytes in 10240 pages.
     Low = 0x0, high = 0x2800000
On-board video at addr 0x60000000 (phys 0x60000000), len 0x20000.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0x9f6000.
Video address 0x60000000 -> 0xbf6000.
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

Kernel FPU trap.
trap type 16, code = 0x0, v = 0x0
kernel program counter = 0x38fe
kernel: type 16 trap
pid = 0, lid = 1, pc = 000038FE, ps = 2704, sfc = 1, dfc = 1
Registers:
             0        1        2        3        4        5        6        7
dreg: 0023FA38 0000000C 00014147 00007410 8006059E 60000000 00000000 00000002
areg: 0023FA38 01002C00 00268AF0 00000050 01E00280 00126786 002F1F84 FFFFCFFC

Kernel stack (002F1E7C):
2F1E7C: 001CF6CA 002F1EFC 00000080 00014147 00007410 8006059E 60000000 00000000
2F1E9C: 00000002 00268AF0 00000050 01E00280 00126786 0021AC94 00269214 00000001
2F1EBC: 00000000 00000000 00000000 00000000 00000000 00000000 00000010 00000000
2F1EDC: 00000000 00000000 00000000 002F1F84 00003074 00000010 00000000 00000000
2F1EFC: 0023FA38 0000000C 00014147 00007410 8006059E 60000000 00000000 00000002
2F1F1C: 0023FA38 01002C00 00268AF0 00000050 01E00280 00126786 002F1F84 FFFFCFFC
2F1F3C: 00000000 27040000 38FE402C 00000000 000038FA 00000000 001CB932 00014147
2F1F5C: 00268AF0 00000050 01E00280 00126786 002F1F80 00270CE0 00000000 0000006C
2F1F7C: 00376000 FFFFF000 002F1FAC 00103512 0020011F 0020CF1E 00014147 00007410
2F1F9C: FFFFCFFC 00000050 01E00280 026947E0 0268C7C4 00000001 00123FF0 002F5000
2F1FBC: 00000000 00001000 002730D4 002730B4 002F1FF4 001CB716 002F5000 00001000
2F1FDC: 00014147 00007410 FFFFCFFC 00000050 01E00280 00000000 00000000 00000000
2F1FFC: 00000000
panic: trap
Stopped in pid 0.1 () at        netbsd:cpu_Debugger+0x6:        unlk    a6
db> t
cpu_Debugger(2704,10,2f1efc,2f1ee8,1cf6ea) + 6
panic(1fd22d,14147,7410,8006059e,60000000) + f8
trap(10,0,0) + 254
fault(?)
cpu_startup(20011f,20cf1e,14147,7410,ffffcffc) + c
uvm_fault(0x23fac0, 0xfffff000, 0, 0x1) -> 0xe
  type 8, code [mmu,,ssw]: 505
trap type 8, code = 0x505, v = 0xfffffffb
kernel program counter = 0x1d1400
kernel: MMU fault trap
Caught exception in ddb.
main() + 50
main() + 50
db>

This is an obvious regression - apart from the fp-emulation issues
with the 68LC040, the Duo 280 is supported. An 1.6I GENERIC kernel
booted just fine.
 
>How-To-Repeat:
	Boot a 2.0beta or -current kernel on Powerbook Duo 280.

>Fix:
	I have no idea.
>Release-Note:
>Audit-Trail:
>Unformatted: