Subject: -current #70: UVM works, MRG doesn't
To: port-mac68k <port-mac68k@NetBSD.ORG>
From: Rolf Braun <rbraun@cstone.net>
List: port-mac68k
Date: 05/20/1998 18:25:23
OK. I tried the latest snapshot (#70) and the UVM HWDIRECT kernel now seems
to be working. I say "seems to be" because I haven't given the system
enough of a workout to really test VM, but I haven't gotten a single panic
yet.

The MRG kernels still don't work. I tried booting with them normally,
removing the mouse (standard ADB Mouse II from Apple), and removing the
keyboard (AppleDesign extended) and nothing worked. Here's a complete crash
log:

(watch out for typos, this was typed in off a printed report produced using
Serial Boot Echo)

[ preserving 347099 bytes of netbsd symbol table ]
Copyright (c) 1996, 1997, 1998
    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 1.3E (GENERIC) #70: Sat May 16 22:29:01 PDT 1998
    root2@wormspace:/usr/src/sys/arch/mac68k/compile/GENERIC
Apple Macintosh Quadra 630  (68040)
cpu: delay factor 302
real mem = 20971520
avail mem = 16252928
using 281 buffers containing 1150976 bytes of memory
mrg: 'Quadra630 ROMs' ROM glue, tracing off, debug off, silent traps
mrg: I/O map kludge for ROMs that use hardware addresses directly.
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (ADB event device)
adb: bus subsystem
uvm_fault(0x14ae3c, 0x11f8000, 0, 0x1) -> 0x1
  type 8, code [mmu,,ssw]: 525
trap type 8, code = 0x525, v = 0x11f8022
kernel program counter = 0xa9fb7e
kernel: MMU fault trap
pid = 0, pc = 00A9FB7E, ps = 2700, sfc = 1, dfc = 1
Registers:
             0        1        2        3        4        5        6        7
dreg: 00000001 4B807926 00A9F9C0 0000A092 00000001 00000000 00143EA0 0046CF80
areg: 001D6C66 008F6000 00169B7C 011F8022 0046CF40 00143EA0 011F8026 FFFFCFFC

Kernel stack (001D6B02):
1D6B02: 0012F34E 001D6B4E 00000080 00A9F9C0 0000A092 00000001 00000000 00143EA0
1D6B22: 0046CF80 00169B7C 011F8022 0046CF40 00143EA0 00000001 011F8026 000030AE
1D6B42: 00000008 00000525 011F8022 00000001 4B807926 00A9F9C0 0000A092 00000001
1D6B62: 00000000 00143EA0 0046CF80 001D6C66 008F6000 00169B7C 011F8022 0046CF40
1D6B82: 00143EA0 011F8026 FFFFCFFC 00000000 270000A9 FB7E7008 001D6BEE 05250005
1D6BA2: 00250005 011F8022 0000013A 001D6BCE 000D001D 6BC40011 E0220090 20200000
1D6BC2: 000D001D 6BD80010 86DE0000 333E0000 00000001 4B807926 001D6C66 008F6000
1D6BE2: 00169B7C 001D6C1A 0046CF40 001D6C0E 00A9FAB6 0012B07C 00000006 00000000
1D6C02: 00000000 00169B7C 0013C6F6 001D6CA0 0012BC30 001D6C1A 00000000 4B807926
1D6C22: 00000006 00000000 00000000 00000000 00143EA0 0046CF80 001D6C66 00169BE2
1D6C42: 00169B7C 0013C6F6 0046CF40 00143EA0 001D6CA0 001D6C56 00000000 270400A0
1D6C62: AF4A0028 01070000 001D0100 00169BE2 27000000 00000000 00000006 4B807926
1D6C82: 00000006 00169B7C 00A0A7E6 20000012 B4CC0010 0B3A0000 00000017 343C001D
1D6CA2: 6CB00012 B70A0000 00000013 C6FA001D 6CF00010 0F400010 0B270000 00000000
1D6CC2: 0000001D 6D460000 00000014 3EA00046 CF800002 D26C000F FC4A0000 00050013
1D6CE2: C6FA001D 6CF00002 D27E0000 0000001D 6CFC000F FC74000F FC4A001D 6D480002
panic: MMU fault
Stopped at      _Debugger+0x6:  unlk    a6
db> (more uvm_faults here; they don't stop until control-command-power)

A very similar crash occurs with the old-VM MRG kernel, except of course it
is a vm_fault or something like that instead of a uvm_fault. :)

For reference: SamMaEl's Q630 kernel, which is a 1.3D kernel from March or
so built with MRG ADB, boots fine here.

--
- Rolf Braun - rbraun@cstone.net - http://www.cstone.net/~rbraun/
- Sassy Software: cool software for your Macintosh or Apple IIgs
- Rolf's HTML & Stuff: creative web design for less

- Anyone attempting to post messages or send e-mail using my address
- without my permission will be held liable for forgery and may be subject to
- legal action.