NetBSD-Bugs archive

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

port-vax/49884: fix VAX 4000/200 support



>Number:         49884
>Category:       port-vax
>Synopsis:       fix VAX 4000/200 support
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 08 16:00:00 +0000 2015
>Originator:     Felix Deichmann
>Release:        7.0_BETA 201505080130Z and 6.1.5
>Organization:
>Environment:
vax 7.0_BETA 201505080130Z and 6.1.5
>Description:
!!! Provided fix is tested and works.
!!! Please pull-up to NetBSD 6 and 7.

1)
CPU print-out is incorrect (Rigel, should be SOC).

2)
Kernel panic when booting (vsbus, should be ibus).

NetBSD 7.0_BETA (GENERIC.201505080130Z)
VAX 4000/200
total memory = 32708 KB
avail memory = 27572 KB
kern.module.path=/stand/vax/7.0/modules
mainbus0 (root)
cpu0 at mainbus0: KA660, Rigel (ucode rev. 6), 2KB L1 cache, 128KB L2 cache
ze0 at mainbus0
ze0: hardware address 08:00:2b:xx:xx:xx
vsbus0 at mainbus0
r0=827f2400 r1=827f240f r2=00100400 r3=00000001 r4=803de648 r5=00100400 r6=81fea3c0 r7=81f84780
r8=800fc1ae r9=802e53b2 r10=00000000 r11=8024ed8b
ap=8038e5f8 fp=8038e5d4 sp=ffffffff pc=00000000
panic: SEGV in kernel mode: pc 0 addr 0
Stopped in pid 0.1 (system) at  netbsd:vpanic+0xce:     pushl   $
db> bt
panic: SEGV in kernel mode: pc 0 addr 0
Stack traceback :
0x8038e460: vpanic+0xce(0x80282bff,0x8038e500)
0x8038e480: snprintf+0x0(0x80282bff,0,0)
0x8038e4b4: trap+0x89d(0x8038e584)
0x8038e584: trap type=0x8 code=0x0 pc=0x0 psl=0x0
0x8038e550: 0(0x81f84c00,0x81f84780,0x8038e6b8)
0x8038e5d4: config_attach_loc+0xf8(0x81f84c00,0x802e4e80,0,0x8038e6b8,0x8000276e
)
0x8038e60c: config_found_sm_loc+0x3a(0x81f84c00,0,0,0x8038e6b8,0x8000276e,0)
0x8038e654: config_found+0x17(0x81f84c00,0x8038e6b8,0x8000276e)
0x8038e694: mainbus_attach+0x60(0,0x81f84c00,0)
0x8038e6d0: config_attach_loc+0xf8(0,0x802e4d60,0,0,0)
0x8038e708: config_rootfound+0x2c(0x8024ed69,0)
0x8038e750: cpu_configure+0x14(void)
0x8038e778: main+0x301(void)
0x8038e7a4: _start+0x263(0x4014a0)

NetBSD 6.1.5 (GENERIC)
VAX 4000/200
total memory = 32708 KB
avail memory = 28080 KB
mainbus0 (root)
cpu0 at mainbus0: KA660, Rigel (ucode rev. 6), 2KB L1 cache, 128KB L2 cache
ze0 at mainbus0
ze0: hardware address 08:00:2b:xx:xx:xx
vsbus0 at mainbus0
r0=827f2400 r1=00000001 r2=8035a24c r3=00100400 r4=00000001 r5=00000200 r6=81fd15a0 r7=800e3e16
r8=81fbd780 r9=81fbd780 r10=81fbdc00 r11=8030a28c
ap=8030a1c8 fp=8030a1a4 sp=ffffffff pc=00000000
panic: SEGV in kernel mode: pc 0 addr 0
Stopped in pid 0.1 (system) at  netbsd:panic+0x19:      nop
db> bt
panic: SEGV in kernel mode: pc 0 addr 0
Stack traceback :
0x8030a048: panic+0x19(0x80258caf,0,0)
0x8030a080: trap+0x8ef(0x8030a154)
0x8030a154: trap type=0x8 code=0x0 pc=0x0 psl=0x0
0x8030a120: 0(0x81fbdc00,0x81fbd780,0x8030a28c)
0x8030a1a4: config_attach_loc+0xfb(0x81fbdc00,0x8026935c,0,0x8030a28c,0x80002a96)
0x8030a1dc: config_found_sm_loc+0x3d(0x81fbdc00,0,0,0x8030a28c,0x80002a96,0)
0x8030a224: config_found+0x1b(0x81fbdc00,0x8030a28c,0x80002a96)
0x8030a268: mainbus_attach+0x5d(0,0x81fbdc00,0)
0x8030a2a4: config_attach_loc+0xfb(0,0x8026923c,0,0,0)
0x8030a2dc: config_attach+0x1a(0,0x8026923c,0,0)
0x8030a324: config_rootfound+0x2d(0x80225445,0)
0x8030a350: cpu_configure+0x14(void)
0x8030a37c: main+0x2a0(void)
0x8030a3a4: _start+0xfd(0x400924)
>How-To-Repeat:
Boot NetBSD on a VAX 4000/200 (e. g. newer versions, but bug might have been introduced years ago).
>Fix:
--- ka660.c.r1_10	2015-05-08 17:00:00.000000000 +0200
+++ ka660.c	2015-05-08 17:00:00.000000000 +0200
@@ -61,7 +61,7 @@
 static void ka660_attach_cpu(device_t);
 static int ka660_mchk(void *);
 
-static const char * const ka660_devs[] = { "cpu", "sgec", "vsbus", NULL };
+static const char * const ka660_devs[] = { "cpu", "sgec", "shac", "uba", NULL };
 
 /* 
  * Declaration of 660-specific calls.
@@ -92,7 +92,7 @@
 ka660_attach_cpu(device_t self)
 {
 	aprint_normal(
-	    ": %s, Rigel (ucode rev. %d), 2KB L1 cache, 128KB L2 cache\n",
+	    ": %s, SOC (ucode rev. %d), 6KB L1 cache\n",
 	    "KA660",
 	    vax_cpudata & 0377);
 }



Home | Main Index | Thread Index | Old Index