Subject: R4400 vs R5000 kernel probs
To: None <port-sgimips@netbsd.org>
From: Scott G. Akmentins-Taylor <staylor@mrynet.com>
List: port-sgimips
Date: 11/29/2001 19:52:11
I've just brought up my R4400 INDY, and the kernel which I use on the
R5000 already won't work.  I've included the panic below, along with 
the config file.  Anything obvious where it is going astray?  Config
file perhaps?

(Note: I'm using Chris Sekiya's cache-disabling mod here which was
       posted to the list).
Thanks,
-scott

                           Starting up the system...


NetBSD/sgimips 1.5Y  Bootstrap, Revision 1.0
(root@mod80, Mon Nov 12 13:50:54 CST 2001)

Mem block: type 0 base 0x0 size 0x1000
Mem block: type 1 base 0x1000 size 0x1000
Mem block: type 3 base 0x8002000 size 0x73e000
Mem block: type 6 base 0x8740000 size 0xc0000
Mem block: type 3 base 0x8800000 size 0x800000
Mem block: type 5 base 0x9000000 size 0xc000
Mem block: type 3 base 0x900c000 size 0xff4000
Local storage a87ff4f0
argv[0]: scsi(0)disk(1)rdisk(0)partition(8)/boot
argv[1]: OSLoadOptions=auto
argv[2]: ConsoleIn=serial(0)
argv[3]: ConsoleOut=serial(0)
argv[4]: SystemPartition=scsi(0)disk(1)rdisk(0)partition(8)
argv[5]: OSLoader=boot
argv[6]: OSLoadPartition=scsi(0)disk(1)rdisk(0)partition(0)
argv[7]: OSLoadFilename=netbsd
Boot: scsi(0)disk(1)rdisk(0)partition(0)netbsd
devopen: scsi(0)disk(1)rdisk(0)partition(0) type scsi file netbsd
diskopen: 0,2,0 scsi(0)disk(1)rdisk(0)partition(0)
1368592+136668 [61728+50911]=0x18b200
Starting at 0x88002000

nsym 0x1 ssym 0x881717ec esym 0x8818d200
zs channel 0 had address 0xbfbd9830
argv[0]: scsi(0)disk(1)rdisk(0)partition(8)/boot
argv[1]: OSLoadOptions=auto
argv[2]: ConsoleIn=serial(0)
argv[3]: ConsoleOut=serial(0)
argv[4]: SystemPartition=scsi(0)disk(1)rdisk(0)partition(8)
argv[5]: OSLoader=boot
argv[6]: OSLoadPartition=scsi(0)disk(1)rdisk(0)partition(0)
argv[7]: OSLoadFilename=netbsd
 [ no symbols available ]
IOC rev 1, machine Indy (Guiness), board rev 3
Timer calibration, got 750000 cycles (750000, 750000, 750000)
CPU clock speed = 75.00Mhz
Mem block 1: type 0, base 0x0, size 0x1
Mem block 2: type 1, base 0x1, size 0x1
Mem block 3: type 3, base 0x8002, size 0x73e
Mem block 4: type 6, base 0x8740, size 0xc0
Mem block 5: type 3, base 0x8800, size 0x800
Mem block 6: type 5, base 0x9000, size 0xc
Mem block 7: type 3, base 0x900c, size 0xff4
Cluster 2 contains kernel
Loading chunk after kernel: 0x8172 / 0x8740
Loading cluster 4: 0x8800 / 0x9000
Loading cluster 5: 0x9000 / 0x900c
Loading cluster 6: 0x900c / 0xa000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    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 1.5Y (MRYINDY) #4: Tue Nov 27 12:39:54 CST 2001
    root@mod80:/usr/src/sys/arch/sgimips/compile/MRYINDY
32768 KB memory, 27860 KB free, 768 KB for ARCS, 1740 KB in 435 buffers
mainbus0 (root): SGI-IP22 [SGI, 69080b79], 1 processor
cpu0 at mainbus0: MIPS R4400 CPU (0x450) Rev. 5.0 with MIPS R4010 FPC Rev. 0.0
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
cpu0: 16KB/16B direct-mapped write-back L1 Data cache
cpu0: 0KB/128B direct-mapped write-back L2 Unified cache
cpu0: disabling IP22 SysAD L2 cache
imc0 at mainbus0 addr 0x1fa00000
imc0: Revision 3
gio0 at imc0
hpc0 at gio0 addr 0x1fb80000: SGI HPC3
zsc0 at hpc0 offset 0x59830
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:08:0b:79
wdsc0 at hpc0 offset 0x44000: WD33C93B SCSI, rev=0, target 7
scsibus0 at wdsc0: 8 targets, 8 luns per target
dsclock0 at hpc0 offset 0x60000
biomask 07 netmask 07 ttymask 0f clockmask bf
scsibus0: waiting 5 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST34573N, 6244> SCSI2 0/direct fixed
sd0: 4340 MB, 7501 cyl, 5 head, 237 sec, 512 bytes/sect x 8888924 sectors
sd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 4 lun 0: <IBM, CDRM00203\000\000\000\000\000!K, BZ26> SCSI2 5/cdrom removable
cd0: sync (200.0ns offset 12), 8-bit (5.000MB/s) transfers
boot device: sd0
root on sd0a dumps on sd0b
mountroot: trying cd9660...
mountroot: trying nfs...
mountroot: trying ffs...
WARNING: preposterous time in file systemreadclock: 2000/8/1/6/40/52
 -- CHECK AND RESET THE DATE!
root file system type: ffs
init: copying out path `/sbin/init' 11
panic: TLB out of universe: ksp 0xc37efc20 epc 0x880f8980 vaddr 0xffffe000
Stopped in pid 1 (init) at      0x880fa854:     jr      ra
                bdslot: nop
db>  


Kernel config file follows:

mod80# cat MRYINDY
#       $NetBSD: TEAL,v 1.9 2001/11/22 01:11:51 soren Exp $

include         "arch/sgimips/conf/std.sgimips"

makeoptions     TEXTADDR=0x88002000     # Indy/Indigo2
#makeoptions    TEXTADDR=0x88069000     # Indy/Indigo2

maxusers        32

options         SCSI_DELAY=5

options         MIPS3
options         MIPS3_L2CACHE_ABSENT
#options        MIPS3_L2CACHE_PRESENT

options         KTRACE
options         SYSVMSG                 # System V message queues
options         SYSVSEM                 # System V semaphores
options         SYSVSHM                 # System V shared memory

options         PARANOIADIAG

options         DDB
options         DDB_HISTORY_SIZE=100
options         DEBUG
options         DIAGNOSTIC

#options        KGDB
#options        KGDB_DEV=0x2301         # KGDB port - this is Serial(1)
#options        KGDB_DEVRATE=19200      # KGDB Baud Rate

#makeoptions    DEBUG="-g"

file-system     FFS
file-system     NFS
file-system     KERNFS
file-system     PROCFS
file-system     CD9660          # ISO 9660 + Rock Ridge file system

options         FFS_EI
options         SOFTDEP

options         INET

options         SCSIVERBOSE

options         NFS_BOOT_DHCP
#options        NFS_BOOT_BOOTPARAM

options         IP22

config          netbsd          root on ? type ?

mainbus0        at root
cpu0            at mainbus0

imc0            at mainbus0 addr 0x1fa00000
gio0            at imc0
eisa0           at imc0

hpc0            at gio? addr 0x1fb80000
hpc1            at gio? addr 0x1fb00000
#hpc2           at gio? addr 0x1f980000

sq*             at hpc0 offset ?
wdsc*           at hpc0 offset ?
dsclock*        at hpc0 offset ?

#
# As always, the zs chip is wired funny, so channel 1 is actually the
# first serial port and channel 0 is the second.
#
zsc*            at hpc0 offset ? # pbus0 device ?
zstty*          at zsc? channel ?

#pbus0          at hpc0

#pckbc0         at pbus0 device ?

scsibus* at wdsc?
sd*     at scsibus? target ? lun ?      # SCSI disks
st*     at scsibus? target ? lun ?      # SCSI tapes
cd*     at scsibus? target ? lun ?      # SCSI CD-ROMs
ch*     at scsibus? target ? lun ?      # SCSI changer devices

pseudo-device   loop
pseudo-device   pty
pseudo-device   bpfilter        8
pseudo-device   md              1
pseudo-device   rnd                     # /dev/random and in-kernel generator
pseudo-device   vnd             4