Subject: port-amiga/5385: Panic with more then 83 MB
To: None <gnats-bugs@gnats.netbsd.org, bernd@arresum.inka.de>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 05/01/1998 21:46:22
>Number:         5385
>Category:       port-amiga
>Synopsis:       Panic with more then 83 MB
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May  1 12:50:01 1998
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current Apr 17 19:55:04 MEST 1998
>Environment:
	
System: NetBSD arresum 1.3E NetBSD 1.3E (GENERIC) #0: Fri Apr 17 19:55:04 MEST 1998 bernd@arresum:/home/work/obj_amiga/src/sys/arch/amiga/compile/GENERIC amiga


>Description:
	Boot an amiga with more then 83MB and watch the panic after the ram
	output:

pmap_init: 0: 082d2000 - 0fffe000 ( 131252224)
Maxproc 148, mem_size 128 MB: allocating 10 KPT pages
[..]
Amiga 4000 (m68040 CPU/MMU/FPU)
real mem = 134217728 (16384 pages)
trap type 2, code = 0, v = 0
pid = 0, pc = 0000223C, ps = 2010, sfc = 1, dfc = 1
[..]
panic: Illegal instruction
Stopped at _Debugger=0x6: unlk a6
db> t
_Debugger(2,1b0374,198574,233d10,14db00) + 6
_panic(14d966,0,233d44,14e02e,2) + 52
_panictrap(2,0,0,233d58) + 5c
_trap(2,0,0) + 1a4
UNIMP_VEC(?)
_pmap_enter(198574,8000000,8562000,7,1) + a
_vm_fault(787f00,8000000,0,1) + c62
_vm_fault_wire(787f00,8000000,8002000) + 36
_vm_map_pageable(787f00,8000000,8002000,0,0) + 27c
_cpu_startup(15c328,0,1,ad303,dfffffc) +  2e0
_main(233fb4) + 50
start() + 20e

The system boots fine with 80MB but crashed after starting some programms.

This is the dmesg output with 48MB:

NetBSD 1.3E (GENERIC) #0: Fri Apr 17 19:55:04 MEST 1998
    bernd@arresum:/src/sys/arch/amiga/compile/GENERIC
Amiga 4000 (m68040 CPU/MMU/FPU)
real  mem = 50331648 (6144 pages)
avail mem = 44711936 (5458 pages)
using 320 buffers containing 2621440 bytes of memory
memory segment 0 at 8000000 size 8000000
memory segment 1 at 0 size 200000
mainbus0 (root)
clock0 at mainbus0: CIA B system hz 100 hardware hz 709379
Calibrating delay loop... 78/1024 us
a34kbbc0 at mainbus0
ser0 at mainbus0: input fifo 512 output fifo 32
par0 at mainbus0
kbd0 at mainbus0: CIA A type Amiga
ms0 at mainbus0
ms1 at mainbus0
grfcc0 at mainbus0
grf0 at grfcc0: width 640 height 400 colors 4
ite0 at grf0: rows 0 cols 0 repeat at (30/100)s next at (10/100)s has keyboard
fdc0 at mainbus0: dmabuf pa 0x1deed4: dmabuf ka 0x2d5aed4
fd0 at fdc0 unit 0: 3.5dd 80 cyl, 2 head, 11 sec [9 sec], 512 bytes/sec
idesc0 at mainbus0
scsibus0 at idesc0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <xxx, xxx, xxx> SCSI2 0/direct fixed
sd0: xxxMB, xxx cyl, xxx head, xxx sec, xxx bytes/sect x xxx sectors
aucc0 at mainbus0
audio0 at aucc0
zbus0 at mainbus0: i/o size 0x04080000
wesc0 at zbus0 pa 0x40000000 man/pro 2203/19
wesc0: siop id 7 reset V2
scsibus1 at wesc0: 8 targets
wesc0: target 1 now synchronous, period=100ns, offset=8
sd1 at scsibus1 targ 1 lun 0: <xxx, xxx, xxx> SCSI2 0/direct fixed
sd1: xxxMB, xxx cyl, xxx head, xxx sec, xxx bytes/sect x xxx sectors
wesc0: target 2 now synchronous, period=176ns, offset=8
cd0 at scsibus1 targ 2 lun 0: <SONY, CD-ROM CDU-8005, 1.0j> SCSI2 5/cdrom removable
wesc0: target 4 now synchronous, period=200ns, offset=8
sd2 at scsibus1 targ 4 lun 0: <xxx, xxx, xxx> SCSI2 7/optical removable
sd2: xxxMB, xxx cyl, xxx head, xxx sec, xxx bytes/sect x xxx sectors
wesc0: target 5 now synchronous, period=200ns, offset=8
st0 at scsibus1 targ 5 lun 0: <SONY, SDT-5000, 3.26> SCSI2 1/sequential removable
st0: drive empty
mfc at zbus0: pa 0xe90000 man/pro 2092/16 not configured
grfcv0 at zbus0 pa 0x44000000 man/pro 8512/34
grf5 at grfcv0: width 640 height 480 colors 16
ite5 at grf5: rows 60 cols 80 repeat at (30/100)s next at (10/100)s has keyboard
grfcv: CyberVision64 with 4MB being used
le0 at zbus0 pa 0xea0000 man/pro 2167/201: address 00:60:30:xx:xx:xx
le0: 16 receive buffers, 4 transmit buffers
10 views configured
root on sd1a dumps on sd1b
root file system type: ffs

This is an kernel from an unchanged GENERIC config file build with egcs.

>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: