Subject: Re: Softdep on Amiga
To: None <port-amiga@netbsd.org>
From: Petri T. Koistinen <pkoistin@cs.stadia.fi>
List: port-amiga
Date: 08/16/2001 13:13:54
On Wed, 15 Aug 2001, Petri T. Koistinen wrote:

> Report back here.

Ok, I included these options

> options         NKMEMPAGES_MIN=8192
> options         NKMEMPAGES_MAX=8192

to kernel config. Result was same, softdeps crashing system with and
without these options. And BTW I got that GoBSD recognise those 16 Megs on
motherboard. Just had forgot specify MANYSEG option on commandline.

Here is the output of first crash without those NKMEMPAGES options
enabled, [my comments like this]:

bash-2.05$ cd /usr
bash-2.05$ tar -zxvf /cdrom/NetBSD-current-180701/pkgsrc.tar.gz
[start time 19:52, panic about 20:37]
[...]
pkgsrc/parallel/mpi-ch/patches/patch-ao
panic: softdep_update_inodeblock: update failed
Stopped in pid 182 (tar) at               _cpu_Debugger+0x6:       unlk a6
db> [press t letter and rest of line is printed.]
    call_sicallback: 683 more dynamic structures 687 total
trace

[sort version]
_cpu_Debugger()
_panic()
_softdep_update_inodeblock()
_ffs_update()
_ffs_full_fsync()
_ffs_fsync()
_vinvalbuf()
_vclean()
_vgonel()
_ffs_vget()
_ffs_valloc()
_ufs_makeinode()
_ufs_create()
_vn_open()
_sys_open()
_sys_open() [this might be copy mistake, I copied these on paper.]
_syscall()
_trap0()
db> sync
syncing disk... panic: lockmgr: locking against myself
Stopped in pid 182 (tar) at               _cpu_Debugger+0x6:       unlk a6
db> trace

dumping to dev  17,1  offset 16
dump area improper

trap: bad kernel access at 0 pc 0
trap type 8, code = 1468200, u = 0
pid = 182, pc = 00000000, ps = 2719, sfc = 1, dfc = 1
Registers:
             0        1        2        3        4        5        6        7
dreg: FFFFFFF8 00000015 00000000 00000001 05457610 00000000 00000000 00000000
areg: 0029B200 0029B200 00039F88 0001199C 00120BF4 00012FCA 00000000 0DFFF980

Kernel stack (0545732C):
[lots of numbers that I rather not copy by hand, if not necessary.]
panic: MMU fault
Stopped in pid 182 (tar) at               _cpu_Debugger+0x6:       unlk a6
db> trace
[sort version]
_cpu_Debugger()
_panic()
_trapmmufault()
_trap()
db> reboot

Result NKMEMPAGES options enable kernel was same except 

call_sicallback: 12417 more [... rest is missing from my paper, maybe I
was so sleepy...]

So what is this call_sicallback? I will provide what information you need
as long as you tell how to get it.

Petri