Subject: panic: Unknown CPU type
To: None <port-sparc@NetBSD.ORG>
From: Andrew Gillham <gillhaa@ghost.whirlpool.com>
List: port-sparc
Date: 03/11/1997 18:19:23
Hi,

My SS10 CPU isn't recognized by yesterday's changes.  The panic
looks like:

panic: Unknown CPU type: cpu_vers 4, cpu_impl 1; mmu_vers 0, mmu_impl 0
halted


The 'cpumatch_unknown' code has cpu_vers and cpu_impl reversed in the
printf.  This is a SuperSparc with no L2 cache. (SS10 model 30 I believe)

I've added the following in cpu.c:
        { CPU_SUN4M, 4, 1, 0, 0, "TMS390Z50", &module_viking },

The resulting kernel dies with:
...
cpu0 at mainbus0: TMS390Z50 @ 36 MHz, on-chip FPU
cache enabledl 20K instruction (64 b/l), 16K data (32 b/l)
[block cursor, total hang, must be powered off]
I'm not sure where the 'l' after 'enabled' is coming from.. :) 


The output of 'dmesg' under SunOS 4.1.4 is attached.

---dmesg output---
Mar 11 18:04
SuperSPARC: PAC ENABLED
SunOS Release 4.1.4 (GENERIC) #2: Fri Oct 14 11:09:47 PDT 1994
Copyright (c) 1983-1993, Sun Microsystems, Inc.
cpu = SUNW,SPARCstation-10
mod0 = TI,TMS390Z50 (mid = 8)
mem = 32316K (0x1f8f000)
avail mem = 28758016
cpu0 at Mbus 0x8 0x240000
entering uniprocessor mode
Ethernet address = 8:0:20:1d:c8:a5
espdma0 at  SBus slot f 0x400000
esp0 at  SBus slot f 0x800000 pri 4 (onboard)
sd0 at esp0 target 3 lun 0
sd0: <SUN1.05 cyl 2036 alt 2 hd 14 sec 72>
sr0 at esp0 target 6 lun 0
ledma0 at  SBus slot f 0x400010
le0 at  SBus slot f 0xc00000 pri 6 (onboard)
SUNW,bpp0 at  SBus slot f 0x4800000 pri 3 (sbus level 2)
SUNW,DBRIe0 at  SBus slot f 0x8010000 pri 9 (sbus level 5)
cgsix0 at  SBus slot 0 0x0 pri 9 (sbus level 5)
cgsix0: screen 1152x900, single buffered, 1M mappable, rev 8
dma0 at  SBus slot 3 0x100000
esp1 at  SBus slot 3 0x200000 pri 5 (sbus level 3)
esp1: Warning- no devices found for this SCSI bus
zs0 at  obio 0x100000 pri 12 (onboard)
zs1 at  obio 0x0 pri 12 (onboard)
SUNW,fdtwo0 at  obio 0x700000 pri 11 (onboard)
MMCODEC: manufacturer id 1, rev 2
root on sd0a fstype 4.2
swap on sd0b fstype spec size 66528K
dump on sd0b fstype spec size 66516K
le0: AUI Ethernet