Subject: Re: Alpha DS10 Hanging on Generic 1.5.3 kernel
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Johan A. van Zanten <johan@ewranglers.com>
List: port-alpha
Date: 08/06/2002 15:20:42
---In message <20020806091838.Z14101@dr-evil.shagadelic.org>

>Ok, I will get this into the release notes and onto the WWW server in the
>FAQ.

Cool, thanks.

>Hm.  Can you please try a 1.6_BETA5 kernel?  You should be able to boot
>it over your existing 1.5.3 installation.  It is available at:
>
>ftp://ftp.netbsd.org/pub/NetBSD/arch/alpha/snapshot/20020804-1.6_BETA5/binary/kernel/netbsd-GENERIC.gz

Happy to do so!

>The "de" driver has been deprecated in favor of the "tlp" driver.  I have
>been using "tlp" extensively for quite some time, and have not had problems
>with it.

 Grrr!!  Had i been more observant, this would not have taken nearly so
long to figure out.  I had previously noticed that the 10/100 Mbps
built-in interfaces were coming up as "10baseT (autoselect)." I decided
i'd come back and address this after i had solved the kernel panics.

 But i hadn't read the kernel config closely enough to realize that the
generic kernel has been using the wrong damn driver ("de" rather than
"tlp") this whole time.

  sarasvati just booted the 1.6_BETA5 kernel without any intervention and
then recognized the same 10/100 Ethernet interfaces as "tlp" rather than
"de".  I noticed this during the boot, and after sarasvati had come up
completely, i ifconfig'd the "tlp" interfaces by hand. (Necessary because
there were no files named "ifconfig.tlp[01]" in /etc, but rather
"ifconfig.de[01]".)

 I then did the usual test, NFS mount /usr/src, and attempt to config and
compile a 1.5.3 kernel.  And it worked.

 Then i installed a 1.5.3 kernel that was the GENERIC config but with two
changes:

1) The "de" driver was commented out.

2) the following line was uncommented (to match what i saw the 1.6_BETA5 kernel
 report):

options 	TLP_MATCH_21142

I config'd, compiled and installed the new 1.5.3 kernel.

Rebooted with the new 1.5.3 kernel, and tested building a kernel from
scratch on an NFS-mounted file system.  Success! No crash.

 So i believe your guess was correct; the problem lay in the "de" driver.

 The only thing resembling "fault" that might exist in the generic 1.5.3
kernel is its choice to use the "de" rather than the "tlp" driver for the
Tulip 21142/21143.

Obviously, this appears fixed in 1.6_BETA5 kernel.  I believe i noticed
that there will be a 1.5.4 release.  If there are not any other
conflicting factors, would it be a good idea to also alter the 1.5 kernel
to "prefer" to see this particular Ethernet interface as a "tlp" rather
than "de"?

For posterity, i'm attaching boot-time dmesg for 1.6_BETA5 kernel and the
functional 1.5.3 kernel with the "de" driver removed.

Thank you for your help with this.

Now on to paring down the kernel for my DS10! :-)

 --johan


[ using 558272 bytes of netbsd ELF symbol table ]
consinit: not using prom console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    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.6_BETA5 (GENERIC) #0: Sun Aug  4 07:50:11 UTC 2002
    matt@cs20.apochromatic.org:/autobuilder/200208040000/obj/sys/arch/alpha/compile/GENERIC
COMPAQ AlphaServer DS10 466 MHz, s/n r020dqmz00
8192 byte page size, 1 processor.
total memory = 1024 MB
(2848 KB reserved for PROM, 1021 MB used by NetBSD)
avail memory = 943 MB
using 6548 buffers containing 52384 KB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264-4
cpu0: Architecture extensions: 303<PAT,MVI,FIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 2 Dchips, 1 memory bus of 16 bytes
tsc0: arrays present: 512MB, 512MB, 0MB, 0MB, 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
sio0 at pci0 dev 7 function 0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc3)
tlp0 at pci0 dev 9 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at dec 6600 irq 29
tlp0: DEC , Ethernet address 08:00:2b:86:77:93
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp1 at pci0 dev 11 function 0: DECchip 21143 Ethernet, pass 4.1
tlp1: interrupting at dec 6600 irq 30
tlp1: DEC , Ethernet address 08:00:2b:86:77:a8
tlp1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pciide0 at pci0 dev 13 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc1)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
pciide0: disabling primary channel (no drives)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <COMPAQ  CDR-8435, , 0013> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at isa irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
siop0 at pci0 dev 15 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
siop0: using on-board RAM
siop0: interrupting at dec 6600 irq 39
scsibus0 at siop0: 16 targets, 8 luns per target
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
lpt0 at isa0 port 0x3bc-0x3bf irq 7
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
siop0: switching to single-ended mode
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <IBM, DDYS-T09170N, S93E> SCSI3 0/direct fixed
sd0: 8748 MB, 15110 cyl, 3 head, 395 sec, 512 bytes/sect x 17916240 sectors
sd0: sync (50.0ns offset 31), 16-bit (40.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <IBM, DDYS-T09170N, S93E> SCSI3 0/direct fixed
sd1: 8748 MB, 15110 cyl, 3 head, 395 sec, 512 bytes/sect x 17916240 sectors
sd1: sync (50.0ns offset 31), 16-bit (40.000MB/s) transfers, tagged queueing
Kernelized RAIDframe activated
sd1: no disk label
root on sd0a dumps on sd0b
root file system type: ffs

======================================================================

[ preserving 449120 bytes of netbsd ELF symbol table ]
consinit: not using prom console
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.5.4_ALPHA (SARASVATI) #0: Tue Aug  6 09:53:55 EDT 2002
    root@sarasvati:/local/src/NetBSD/NetBSD-1.5.3/source/usr/src/sys/arch/alpha/compile/SARASVATI
COMPAQ AlphaServer DS10 466 MHz
8192 byte page size, 1 processor.
total memory = 1024 MB
(2848 KB reserved for PROM, 1021 MB used by NetBSD)
avail memory = 943 MB
using 6548 buffers containing 52384 KB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264-4 (pass 3)
cpu0: Architecture extensions: 303<PAT,MVI,FIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 2 Dchips, 1 memory bus of 16 bytes
tsc0: arrays present: 512MB, 512MB, 0MB, 0MB, 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
sio0 at pci0 dev 7 function 0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc3)
tlp0 at pci0 dev 9 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at dec 6600 irq 29
tlp0: DEC , Ethernet address 08:00:2b:86:77:93
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX
tlp1 at pci0 dev 11 function 0: DECchip 21143 Ethernet, pass 4.1
tlp1: interrupting at dec 6600 irq 30
tlp1: DEC , Ethernet address 08:00:2b:86:77:a8
tlp1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX
pciide0 at pci0 dev 13 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc1)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
pciide0: disabling primary channel (no drives)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <COMPAQ  CDR-8435, , 0013> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at isa irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
siop0 at pci0 dev 15 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
siop0: using on-board RAM
siop0: interrupting at dec 6600 irq 39
scsibus0 at siop0: 16 targets, 8 luns per target
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
lpt0 at isa0 port 0x3bc-0x3bf irq 7
pcppi0 at isa0 port 0x61
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
siop0: switching to single-ended mode
scsibus0: waiting 2 seconds for devices to settle...
siop0: target 0 using tagged queuing
sd0 at scsibus0 target 0 lun 0: <IBM, DDYS-T09170N, S93E> SCSI3 0/direct fixed
siop0: target 0 using 16bit transfers
siop0: target 0 now synchronous at 20.0Mhz, offset 31
sd0: 8748 MB, 15110 cyl, 3 head, 395 sec, 512 bytes/sect x 17916240 sectors
siop0: target 1 using tagged queuing
sd1 at scsibus0 target 1 lun 0: <IBM, DDYS-T09170N, S93E> SCSI3 0/direct fixed
siop0: target 1 using 16bit transfers
siop0: target 1 now synchronous at 20.0Mhz, offset 31
sd1: 8748 MB, 15110 cyl, 3 head, 395 sec, 512 bytes/sect x 17916240 sectors
root on sd0a dumps on sd0b
root file system type: ffs