Subject: Can netbsd/pmax use discontiguous memory?
To: port-pmax <port-pmax@netbsd.org>
From: Greg Ingram <ingram@symsys.com>
List: port-pmax
Date: 08/22/2001 09:54:36
Gentlemen,

I installed NetBSD 1.5 onto a DECstation 500/240.  The installation went
ok, but I got memory errors on reboot.  A search of the archives suggested
that the installer really doesn't use much memory, so this problem wasn't
unheard of.  I tried swapping the memory card order, which kind of
isolated the problem to slot #2.  The prom doesn't seem to mind if the
slots aren't populated in order, but with slot #2 empty, the kernel only
sees 8 megs of ram.

I haven't tried cleaning the slot yet.  In the meantime I was wondering if
it would be possible to teach NetBSD to use 'discontiguous' memory.  I've
appended some output from my box.

Regards,

- Greg

>>cnfg 3
 3: KN03-AA  DEC      V5.1b    TCF0  ( 40 MB)
                                     (enet: 08-00-2b-30-a3-23)
                                     (SCSI = 7)
            ---------------------------------------------------
            DEV   PID                VID        REV    SCSI DEV
            ===== ================== ========== ====== ========
            rz2   RZ57     (C) DEC   DEC        5000   DIR

        dcache( 64 KB), icache( 64 KB)
        mem( 0):  a0000000:a07fffff  (  8 MB)
        mem( 2):  a1000000:a17fffff  (  8 MB)
        mem( 3):  a1800000:a1ffffff  (  8 MB)
        mem( 4):  a2000000:a27fffff  (  8 MB)
        mem( 5):  a2800000:a2ffffff  (  8 MB)

>>boot 3/rz2

NetBSD/pmax 1.5 FFS Primary Bootstrap

NetBSD/pmax 1.5 Secondary Bootstrap, Revision 1.3
(root@medusa.thistledown.com.au, Nov 18 19:46:02 EST 2000)

Boot: 3/rz2
Loading: 3/rz2/netbsd.pmax
open 3/rz2/netbsd.pmax: No such file or directory
Loading: 3/rz2/netbsd
1974376+66128+421036 [89+77184+63475]=0x27c778
Starting at 0x80030000

[ preserving 141324 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000
    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.5 (GENERIC) #48: Mon Nov 20 08:27:21 EST 2000
    root@medusa.thistledown.com.au:/NetBSD/src15/sys/arch/pmax/compile/GENERIC
DECstation 5000/240 (3MAXPLUS)
total memory = 8192 KB
avail memory = 4656 KB
using 128 buffers containing 512 KB of memory
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000 CPU (0x230) Rev. 3.0 with MIPS R3010 FPC Rev. 4.0
cpu0: 64KB Instruction, 64KB Data, direct mapped cache
tc0 at mainbus0: 25 MHz clock
ioasic0 at tc0 slot 3 offset 0x0
le0 at ioasic0 offset 0xc0000: address 08:00:2b:30:a3:23
le0: 32 receive buffers, 8 transmit buffers
scc0 at ioasic0 offset 0x100000
scc1 at ioasic0 offset 0x180000: console
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
asc0 at ioasic0 offset 0x300000: target 7
Beginning old-style SCSI device autoconfiguration
rz2 at asc0 drive 2 slave 0 DEC RZ57     (C) DEC rev 5000 (SCSI-1)
rz2: 954MB, 1928 cyl, 15 head, 67 sec, 512 bytes/sect x 1954050 sectors
boot device: rz2
root on rz2a dumps on rz2b
root file system type: ffs