Subject: Re: ES40 nearly boots 1.6.x now....
To: NetBSD/alpha Discussion List <port-alpha@NetBSD.org>
From: Greg A. Woods <woods@weird.com>
List: port-alpha
Date: 09/20/2004 19:26:11
Well a very strange and weird reset of the SRM com1=5Fbaud value caused=

all console access to fail, we had to install a VGA card and connect a
keyboard and monitor to get it reset properly.  However I finally got t=
o
testing kernels again late this afternoon.

With the following change I've finally managed to get a 1.6.x kernel to=

almost boot.  Looks like the next step will be to backport the current
isp(4) driver to the netbsd-1-6 branch.

Perhaps I'm a bit too optimistic about how much of the KVM I can use fo=
r
NBUF though -- maybe I should drop back to 384MB as on i386=3F  Trying =
to
use the 1/4 rule as it is implemented on the sparc did nothing to limit=

the value of nbuf.

What is the total amount of KVM available on alpha in 1.6.x=3F

Index: sys/arch/alpha/include/vmparam.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/master/m-NetBSD/main/src/sys/arch/alpha/include/vmparam.=
h,v
retrieving revision 1.24
diff -u -r1.24 vmparam.h
--- sys/arch/alpha/include/vmparam.h=0915 Nov 2001 18:06:12 -0000=091.2=
4
+++ sys/arch/alpha/include/vmparam.h=0920 Sep 2004 22:46:34 -0000
@@ -107,6 +107,18 @@
 #define VM=5FMIN=5FKERNEL=5FADDRESS=09((vaddr=5Ft)ALPHA=5FK1SEG=5FBASE=
)
 #define VM=5FMAX=5FKERNEL=5FADDRESS=09trunc=5Fpage((vaddr=5Ft)ALPHA=5F=
K1SEG=5FEND)
=20
+/* XXX max. amount of KVM to be used by nbuf. */
+#ifndef VM=5FMAX=5FKERNEL=5FBUF
+/*
+ * on the sparc it's safe to  arbitrarily use 1/4 of the kernel addres=
s space for nbuf:
+ *
+# define VM=5FMAX=5FKERNEL=5FBUF=09((VM=5FMAX=5FKERNEL=5FADDRESS - VM=5F=
MIN=5FKERNEL=5FADDRESS) / 4)
+ *
+ * but on alpha that's too much so we'll play with the numbers ala i38=
6:
+ */
+# define VM=5FMAX=5FKERNEL=5FBUF=09(768 * 1024 * 1024)
+#endif
+
 /* virtual sizes (bytes) for various kernel submaps */
 #define VM=5FPHYS=5FSIZE=09=09(USRIOSIZE*NBPG)
=20


P00>>>boot ewb0
(boot ewb0.0.0.4.0 -flags A)

Trying BOOTP boot.

Broadcasting BOOTP Request...
Received BOOTP Packet File Name is: netbsd-netboot-alpha
local inet address: 192.168.0.248
remote inet address: 192.168.0.254
TFTP Read File Name: netbsd-netboot-alpha
netmask =3D 255.255.255.0
Server is on same subnet as client.
block number=3D 0 port=5Fnumber=3D 14494
=2E
bootstrap code read in
base =3D 200000, image=5Fstart =3D 0, image=5Fbytes =3D fa30(64048)
initializing HWRPB at 2000
initializing page table at 3fb54000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 1.6.2=5FSTABLE Network Bootstrap, Revision 1.9
(woods@building, Tue Sep  7 17:10:14 EDT 2004)

VMS PAL rev: 0x4006800010162
OSF PAL rev: 0x400690002015c
Switch to OSF PAL code succeeded.

Boot flags: A
boot: ethernet address: 08:00:2b:c4:b5:26
net=5Fopen: client addr: 192.168.0.248
net=5Fopen: subnet mask: 255.255.255.0
net=5Fopen: net gateway: 192.168.0.1
net=5Fopen: server addr: 192.168.0.254
net=5Fopen: server path: /raid/export/netbsd-alpha-newpub
net=5Fopen: file name: netbsd-netboot-alpha
boot: client addr: 192.168.0.248
boot: client name: newpub
boot: subnet mask: 255.255.255.0
boot: net gateway: 192.168.0.1
boot: server addr: 192.168.0.254
boot: server path: /raid/export/netbsd-alpha-newpub
3513344+1788632 [210576+120993]=3D0x55f9d0

Entering netbsd at 0xfffffc0000301290...
calculating 16384 units of callwheel of type (struct callout=5Fqueue) a=
t 24 bytes each
calculating 128 units of shmsegs of type (struct shmid=5Fds) at 72 byte=
s each
calculating 10 units of sema of type (struct semid=5Fds) at 56 bytes ea=
ch
calculating 60 units of sem of type (struct =5F=5Fsem) at 12 bytes each=

calculating 840 units of semu of type (int) at 4 bytes each
calculating 16384 units of msgpool of type (char) at 1 bytes each
calculating 2048 units of msgmaps of type (struct msgmap) at 2 bytes ea=
ch
calculating 40 units of msghdrs of type (struct =5F=5Fmsg) at 24 bytes =
each
calculating 40 units of msqids of type (struct msqid=5Fds) at 96 bytes =
each
nbuf at 104826 is too large for VM=5FMAX=5FKERNEL=5FBUF... adjusted to =
12288
using 256 buffer headers for swap (maximum 256)
calculating 12288 units of buf of type (struct buf) at 192 bytes each
allocating 16384 units of callwheel of type (struct callout=5Fqueue) at=
 24 bytes each
allocating 128 units of shmsegs of type (struct shmid=5Fds) at 72 bytes=
 each
allocating 10 units of sema of type (struct semid=5Fds) at 56 bytes eac=
h
allocating 60 units of sem of type (struct =5F=5Fsem) at 12 bytes each
allocating 840 units of semu of type (int) at 4 bytes each
allocating 16384 units of msgpool of type (char) at 1 bytes each
allocating 2048 units of msgmaps of type (struct msgmap) at 2 bytes eac=
h
allocating 40 units of msghdrs of type (struct =5F=5Fmsg) at 24 bytes e=
ach
allocating 40 units of msqids of type (struct msqid=5Fds) at 96 bytes e=
ach
allocating 12288 units of buf of type (struct buf) at 192 bytes each
pmap=5Fbootstrap(0xfffffc003fb54000, 255)
kernel=5Flev3mapsize =3D 0x21400(136192)
avail=5Fstart =3D 0x204000
avail=5Fend =3D 0x3fffbc000
virtual=5Fend =3D 0xfffffe0042800000
kernel=5Flev1map =3D 0xfffffc0000204000
kernel=5Flev2mapsize =3D 0x400(1024), NPTEPG =3D 1024, sizeof(pt=5Fentr=
y=5Ft) =3D 8
kernel=5Flev2map =3D 0xfffffc0000206000
kernel=5Flev3map =3D 0xfffffc0000b0a000
level 2 PTE pages mapped
level 2 page table initialized
pmap=5Fgrowkernel=5Fslock initialized
pmap pools and list initialized
pmap=5Fasn=5Finfo initialized
pmap=5Fkernel initialized
pmap=5Fbootstrap() done!
[ using 332536 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

pmap=5Finit()
vm=5Fphysmem bank 0
        start =3D 0x208000
        end =3D 0x2fc000
        avail=5Fstart =3D 0x208000
        avail=5Fend =3D 0x2fc000
vm=5Fphysmem bank 1
        start =3D 0xd946000
        end =3D 0x3fb52000
        avail=5Fstart =3D 0xd946000
        avail=5Fend =3D 0x3fb52000
vm=5Fphysmem bank 2
        start =3D 0x40000000
        end =3D 0x3fffbc000
        avail=5Fstart =3D 0x40000000
        avail=5Fend =3D 0x3fffbc000
NetBSD 1.6.2=5FSTABLE (TSUNAMI) #7: Mon Sep 20 19:11:19 EDT 2004
    woods@building:/build/woods/building/NetBSD-1.6.x-alpha-alpha-obj/p=
roven/work/woods/m-NetBSD-1.6/sys/arch/alpha/compile/TSUNAMI
AlphaServer ES40, 666MHz, s/n NI94900217
8192 byte page size, 4 processors.
total memory =3D 16384 MB
(7080 KB reserved for PROM, 16377 MB used by NetBSD)
avail memory =3D 15266 MB
using 12288 buffers containing 818 MB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264A-14
cpu0: VAX FP support, IEEE FP support, Primary Eligible
cpu0: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
cpu1 at mainbus0: ID 1, 21264A-14
cpu1: VAX FP support, IEEE FP support, Primary Eligible
cpu1: processor off-line; multiprocessor support not present in kernel
cpu2 at mainbus0: ID 2, 21264A-14
cpu2: VAX FP support, IEEE FP support, Primary Eligible
cpu2: processor off-line; multiprocessor support not present in kernel
cpu3 at mainbus0: ID 3, 21264A-14
cpu3: VAX FP support, IEEE FP support, Primary Eligible
cpu3: processor off-line; multiprocessor support not present in kernel
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 8 Dchips, 2 memory buses of 32 bytes
tsc0: arrays present: 4096MB (split), 4096MB (split), 4096MB (split), 4=
096MB (split), Dchip 0 rev 1
tsp0 at tsc0
pci0 at tsp0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
vga0 at pci0 dev 1 function 0: ATI Technologies 3D Rage II+ (rev. 0x9a)=

pci=5Fmem=5Ffind: void region
pci=5Fmem=5Ffind: void region
pci=5Fmem=5Ffind: void region
wsdisplay0 at vga0 (kbdmux ignored)
ahc0 at pci0 dev 2 function 0
ahc0: interrupting at dec 6600 irq 12
ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=3D7, 32/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci0 dev 2 function 1
ahc1: interrupting at dec 6600 irq 13
ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=3D7, 32/253 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
isp0 at pci0 dev 3 function 0: QLogic Dual Port FC-AL and 2Gbps Fabric =
HBA
isp0: interrupting at dec 6600 irq 16
isp0: bad execution throttle of 0- using 16
scsibus2 at isp0: 256 targets, 8 luns per target
tlp0 at pci0 dev 4 function 0: DECchip 21143 Ethernet, pass 3.0
tlp0: interrupting at dec 6600 irq 20
tlp0: DEC DE500-BA, Ethernet address 08:00:2b:c4:b5:26
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sio0 at pci0 dev 7 function 0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc=
3)
pciide0 at pci0 dev 15 function 0: Acer Labs M5229 UDMA IDE Controller =
(rev. 0xc1)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 0: <COMPAQ  CDR-8435, , 0013> type 5 cdrom remov=
able
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: primary channel interrupting at isa irq 14
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfer=
s)
pciide0: secondary channel configured to compatibility mode
pciide0: disabling secondary channel (no drives)
ohci0 at pci0 dev 19 function 0: Acer Labs M5237 USB Host Controller (r=
ev. 0x03)
ohci0: interrupting at isa irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbdprobe: reset error 5
pmsprobe: reset error 5
lptprobe: mask ff data 55 failed
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
tsp1 at tsc0
pci1 at tsp1 bus 0
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
tlp1 at pci1 dev 1 function 0: DECchip 21143 Ethernet, pass 3.0
tlp1: interrupting at dec 6600 irq 24
tlp1: DEC DE500-BA, Ethernet address 08:00:2b:c4:7a:70
tlp1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp1 at pci1 dev 2 function 0: QLogic Dual Port FC-AL and 2Gbps Fabric =
HBA
isp1: interrupting at dec 6600 irq 28
isp1: bad execution throttle of 0- using 16
scsibus3 at isp1: 256 targets, 8 luns per target
siop0 at pci1 dev 4 function 0: Symbios Logic 53c895 (ultra2-wide scsi)=

siop0: using on-board RAM
siop0: interrupting at dec 6600 irq 36
scsibus4 at siop0: 16 targets, 8 luns per target
bge0 at pci1 dev 6 function 0: Broadcom BCM5703X Gigabit Ethernet
bge0: interrupting at dec 6600 irq 44
bge0: ASIC BCM5703 A2, Ethernet address 00:08:02:91:89:ae
brgphy0 at bge0 phy 1: BCM5703 1000BASE-T media interface, rev. 2
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 100=
0baseT-FDX, auto
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <COMPAQ, BF01864663, 3B07> SCSI2 0/dire=
ct fixed
sd0: 17365 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35565080 se=
ctors
sd0: sync (25.0ns offset 63), 16-bit (80.000MB/s) transfers, tagged que=
ueing
sd1 at scsibus0 target 1 lun 0: <COMPAQ, BF01864663, 3B07> SCSI2 0/dire=
ct fixed
sd1: 17365 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35565080 se=
ctors
sd1: sync (25.0ns offset 63), 16-bit (80.000MB/s) transfers, tagged que=
ueing
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
stray 6600 irq 16
stray 6600 irq 16
stray 6600 irq 16
stray 6600 irq 16
stray 6600 irq 16; stopped logging
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)
isp0: Interrupting Mailbox Command (0x69) Timeout
isp0: Mailbox Command 'GET FW STATE' failed (TIMEOUT)

--=20
=09=09=09=09=09=09Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robo=
hack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@we=
ird.com>