NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-pmax/53611: NetBSD/pmax 8.0 RAMDISK kernel hang on 3MIN (5000/125)



>Number:         53611
>Category:       port-pmax
>Synopsis:       NetBSD/pmax 8.0 RAMDISK kernel hang on 3MIN (5000/125)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-pmax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 16 16:50:00 +0000 2018
>Originator:     Izumi Tsutsui
>Release:        NetBSD 8.0
>Organization:
>Environment:
System: NetBSD 8.0 (RAMDISK) #0: Tue Jul 17 14:59:51 UTC 2018 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/pmax/compile/RAMDISK
Architecture: mipsel
Machine: pmax
>Description:
NetBSD/pmax 8.0 RAMDISK kernel hangs during boot
(right after framebuffer is attached?)

---
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018 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 8.0 (RAMDISK) #0: Tue Jul 17 14:59:51 UTC 2018
	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/pmax/compile/RAMDISK
DECstation 5000/125 (3MIN)
total memory = 98304 KB
avail memory = 90456 KB
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000A CPU (0x230) Rev. 3.0 with MIPS R3010 FPC Rev. 3.0
cpu0: 64KB/4B direct-mapped Instruction cache, 64 TLB entries
cpu0: 64KB/4B direct-mapped write-through Data cache
tc0 at mainbus0: 12.5 MHz clock
ioasic0 at tc0 slot 3 offset 0x0
le0 at ioasic0 offset 0xc0000: address 08:00:2b:24:e1:af
le0: 32 receive buffers, 8 transmit buffers
zsc0 at ioasic0 offset 0x100000
zsc0: channel 0 not configured
zstty0 at zsc0 channel 1
zsc1 at ioasic0 offset 0x180000
lkkbd0 at zsc1 channel 0
lkkbd0: no keyboard
wskbd0 at lkkbd0 mux 1
zstty1 at zsc1 channel 1 (console i/o)
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
asc0 at ioasic0 offset 0x300000: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
device PMAF-AA  at tc0 slot 2 offset 0x0 not configured
tfb0 at tc0 slot 1 offset 0x0: 1280x1024, 8,24bpp

---

Disabling framebuffer by userconf does not help:

---
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018 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 8.0 (RAMDISK) #0: Tue Jul 17 14:59:51 UTC 2018
	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/pmax/compile/RAMDISK
DECstation 5000/125 (3MIN)
total memory = 98304 KB
avail memory = 90456 KB
userconf: configure system autoconfiguration:
uc> disable tfb*
[ 32] tfb* disabled
uc> quit
Continuing...
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000A CPU (0x230) Rev. 3.0 with MIPS R3010 FPC Rev. 3.0
cpu0: 64KB/4B direct-mapped Instruction cache, 64 TLB entries
cpu0: 64KB/4B direct-mapped write-through Data cache
tc0 at mainbus0: 12.5 MHz clock
ioasic0 at tc0 slot 3 offset 0x0
le0 at ioasic0 offset 0xc0000: address 08:00:2b:24:e1:af
le0: 32 receive buffers, 8 transmit buffers
zsc0 at ioasic0 offset 0x100000
zsc0: channel 0 not configured
zstty0 at zsc0 channel 1
zsc1 at ioasic0 offset 0x180000
lkkbd0 at zsc1 channel 0
lkkbd0: no keyboard
wskbd0 at lkkbd0 mux 1
zstty1 at zsc1 channel 1 (console i/o)
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
asc0 at ioasic0 offset 0x300000: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
device PMAF-AA  at tc0 slot 2 offset 0x0 not configured
device PMAG-JA  at tc0 slot 1 offset 0x0 not configured
sfb0 at tc0 slot 0 offset 0x0: 1280x1024, 8bpp

---
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018 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 8.0 (RAMDISK) #0: Tue Jul 17 14:59:51 UTC 2018
	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/pmax/compile/RAMDISK
DECstation 5000/125 (3MIN)
total memory = 98304 KB
avail memory = 90456 KB
userconf: configure system autoconfiguration:
uc> disable tfb*
[ 32] tfb* disabled
uc> disable sfb*
[ 33] sfb* disabled
uc> quit
Continuing...
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000A CPU (0x230) Rev. 3.0 with MIPS R3010 FPC Rev. 3.0
cpu0: 64KB/4B direct-mapped Instruction cache, 64 TLB entries
cpu0: 64KB/4B direct-mapped write-through Data cache
tc0 at mainbus0: 12.5 MHz clock
ioasic0 at tc0 slot 3 offset 0x0
le0 at ioasic0 offset 0xc0000: address 08:00:2b:24:e1:af
le0: 32 receive buffers, 8 transmit buffers
zsc0 at ioasic0 offset 0x100000
zsc0: channel 0 not configured
zstty0 at zsc0 channel 1
zsc1 at ioasic0 offset 0x180000
lkkbd0 at zsc1 channel 0
lkkbd0: no keyboard
wskbd0 at lkkbd0 mux 1
zstty1 at zsc1 channel 1 (console i/o)
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
asc0 at ioasic0 offset 0x300000: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
device PMAF-AA  at tc0 slot 2 offset 0x0 not configured
device PMAG-JA  at tc0 slot 1 offset 0x0 not configured
device PMAGB-BA at tc0 slot 0 offset 0x0 not configured

---

On gxemul-0.3.6.2 (which has partial 3MIN support)
it says there is a NULL pointer derference:
> [ warning: LOW reference: vaddr=0x00000000, exception TLBL, pc=0x00000000 <(no symbol)> ]

---
% ~/gxemul-0.3.6.2/gxemul -X -e 3min -d gxemul-pmax.img -d b:NetBSD-8.0-pmax.iso
GXemul-0.3.6.2   Copyright (C) 2003-2005  Anders Gavare
Read the source code and/or documentation for other Copyright messages.

Simple setup...
    net: simulating 10.0.0.0/8 (max outgoing: TCP=60, UDP=60)
        simulated gateway: 10.0.0.254 (60:50:40:30:20:10)
            using nameserver 192.168.1.1
    machine "default":
        memory: 32 MB
        bintrans: i386, 16 MB translation cache at 0xb35f0000
        cpu0: R3000A (I+D = 8+8 KB)
        device  0 at 0x001c000000: dec_ioasic
        device  1 at 0x001c0c0000: le_sram (dyntrans R/W)
        device  2 at 0x001c1c0000: le [10:20:30:00:00:10]
        device  3 at 0x001c100000: scc
        device  4 at 0x001c180000: scc
        device  5 at 0x001c200000: mc146818
        device  6 at 0x001c300000: asc
        device  7 at 0x001c340000: asc_dma_address_reg (dyntrans R/W)
        device  8 at 0x001c380000: asc_dma (dyntrans R/W)
        device  9 at 0x0010000000: fb [PMAG-BA] (dyntrans R/W)
        device 10 at 0x0010200000: bt459
        device 11 at 0x0010300000: bt459_irq
        device 12 at 0x0010380000: turbochannel [PMAG-BA]
        device 13 at 0x0014000000: turbochannel
        device 14 at 0x0018000000: turbochannel
        device 15 at 0x00a0000000: ram [mirror]
        machine: DECstation 5000/112 or 145 (3MIN, KN02BA) (33.00 MHz)
        bootstring(+bootarg): boot 3/rz1/ -a
        diskimage: gxemul-pmax.img
            SCSI DISK id 0, read/write, 2048 MB (4194304 sectors)
        diskimage: NetBSD-8.0-pmax.iso
            SCSI CD-ROM id 1, read-only, 344 MB (705488 sectors) (BOOT)
        DEC boot: loadaddr=0xa0700000, pc=0xa0700000: 13 blocks
        starting cpu0 at 0xa0700000
-------------------------------------------------------------------------------


NetBSD/pmax 8.0 ISO 9660 Primary Bootstrap

NetBSD/pmax 8.0 Secondary Bootstrap, Revision 1.5 (Tue Jul 17 14:59:51 UTC 2018)

Boot: 3/rz1/
Loading: 3/rz1/netbsd.pmax
open 3/rz1/netbsd.pmax: No such file or directory
Loading: 3/rz1/netbsd
5730096+80672=0x58aea8
Starting at 0x80030000

[ dec_ioasic: unimplemented write to address 0x40160, data=0x0000000000000003 ]
[ dec_ioasic: unimplemented write to address 0x40170, data=0x000000000000000e ]
segment  0 start 00000000 size 02000000
phys segment: 0x2000000 @ 0
adding 0x243000 @ 0x5bd000 to freelist 1
adding 0x1800000 @ 0x800000 to freelist 0

dec_ioasic: unimplemented read from address 0x0 ]
[ dec_ioasic: unimplemented write to address 0x40020, data=0x0000000004100000 ]
[ dec_ioasic: unimplemented write to address 0x401b0, data=0x0000000000000000 ]
[ warning: LOW reference: vaddr=0x00000000, exception TLBL, pc=0x00000000 <(no symbol)> ]
a0 points to: [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]
PROM emulation: unimplemented JUMP TABLE vector 0x200 (decimal function 64)
GXemul> quit
Press enter to quit.
---

According to gxemul -t (trace) output, it fails in ubc_init()?

---
 :
        <ssp_init(&softint_lock,0xc1d5e0f8,0,0x804bae40,..)>
        <ubc_init(&softint_lock,0xc1d5e0f8,0,0x804bae40,..)>
          <uvm_obj_init(0x804acf74,0x803efd8c,1,-2,..)>
 :
          <kmem_zalloc(0x10000,1,0,-2,..)>
 :
            <0x803cc750(0xc0030000,0,0x10000,0x80483d60,..)>
a0 points to: [00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00][00]
PROM emulation: unimplemented JUMP TABLE vector 0x280 (decimal function 80)
GXemul> 

(note 0x803cc750 in GENERIC is memset(9))
---

Note:
- The same GENERIC kernel on gxemul 3MAX emulation works
  (boots upto multiuser) without problem.
- NetBSD/pmax 5.99.48 GENERIC kernel also works on my 3MIN.
- NetBSD/pmax 7.2 GENERIC kernel seems to have the same issue.

>How-To-Repeat:
Install old gxemul 0.3.6.2 (which has partial 3MIN support)
and boot NetBSD/pmax 8.0 netbsd-INSTALL with 3MIN emulation.

Or boot netbsd-INSTALL from NetBSD/pmax 8.0 on real 5000/125.

>Fix:
No idea.



Home | Main Index | Thread Index | Old Index