Subject: Re: 1.4L doesn't like my 5000/133
To: None <port-pmax@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-pmax
Date: 10/20/1999 21:15:06
In <199910200921.FAA04527@tardis.bernstein.com>
entropy@tardis.bernstein.com wrote:

> I'm getting the tons of panics on my 5000/133 with a 1.4L kernel
> (1.4_BETA userland...the machine hasn't stayed up long enough for a
> make build yet...)

I've got similar panics on newsmips during mdsetimage(8).
The kernel got panic on read(2) to mmap(2)'ed memory.

---
mdsetimage -v netbsd.tmp /usr/src/distrib/newsmips/floppies/ramdisk/obj.newsmips/ramdisk.fs
got symbols from netbsd.tmp
mapped netbsd.tmp
netbsd.tmp is an ELF32 binary
_md_root_size is at offset 0x132190 in netbsd.tmp
_md_root_size has value 0x200000
_md_root_image is at offset 0x132194 in netbsd.tmp
copying image from /usr/src/distrib/newsmips/floppies/ramdisk/obj.newsmips/ramdisk.fs into netbsd.tmp
trap: address error (load or I-fetch) in kernel mode
status=0x8fc14, cause=0x10000110, epc=0x1, vaddr=0x1
pid=183 cmd=mdsetimage usp=0x7ffffa18 ksp=0xc4198c50
Stopped in mdsetimage at        0x1:trap: address error (load or I-fetch) in kernel mode
status=0xfc14, cause=0x30000110, epc=0x80109f50, vaddr=0x1
pid=183 cmd=mdsetimage usp=0x7ffffa18 ksp=0xc4198b10
Stopped in mdsetimage at        0x80109f50:    lw      a0,0(v0)
db> trace
80109f40+10 (1,0,0,0) ra 800088d4 sz 24        <- db_disasm()
800088a4+30 (1,0,0,0) ra 8000b4cc sz 24        <- db_print_loc_and_inst()
8000b3f0+dc (0,0,0,0) ra 8010aaf4 sz 32        <- db_trap()
8010a8d4+220 (0,0,0,0) ra 8010ddf8 sz 48       <- kdb_trap()
trap+18c (8fc14,10000110,1,1) ra 80002098 sz 72
mips1_KernGenException+c4 (81c950d8,c004db00,20264000,80145028) ra 1 sz 120
PC 0x1: not in kernel space
0+1 (81c950d8,c004db00,20264000,80145028) ra 0 sz 0
User-level: pid 183
db> c
trap: TLB miss (load or instr. fetch) in kernel mode
status=0x8fc14, cause=0x30000308, epc=0x8010def8, vaddr=0x0
pid=183 cmd=mdsetimage usp=0x7ffffa18 ksp=0xc4198a50
Stopped in mdsetimage at        0x8010def8:     lw      a2,0(v1)
db>
---

> I don't think it's a hardware problem.  The machine worked fine until
> the upgrade from 1.4_BETA.

mdsetimage worked fine on 1.4R based newsmips kernels and
1.4L kernel with options both MIPS1 and MIPS3 also works.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp