Subject: Re: AS1200 isp or siop hang
To: David Hopper <dhop@nwlink.com>
From: Rhialto <rhialto@falu.nl>
List: port-alpha
Date: 05/06/2006 16:59:07
On Fri 05 May 2006 at 11:47:02 -0700, David Hopper wrote:
> Hi all, it appears the latest kernel from CVS is hanging during SCSI  
> enumeration on my AS1200.  The hang occurs immediately after finding  
> cd0 on siop, so I'm not sure if it's failing to read some SCSI-ready  
> messages from isp, or if it's crashing on siop...  I get no console  
> debug messages regardless of the state of DDB.  Dmesg is below; the  
> hang is after the last line-- the SCSI disks never post.

The same here on my PWS 433a between cd0 (on pdcide0) and sd0 (on isp0).
Therefore it is likely to be the isp0.

I tried an INSTALL kernel of about 27 april. It was cross-compiled from
a 3.0/amd64 system.

Here are the dmesg, followed by a working, older dmesg. There seem to be
no unexplained differences (i.e. not due to obvious difference in the
config files).

>>>boot -fi netbsd-INSTALL.gz
(boot dkc0.0.0.1008.0 -file netbsd-INSTALL.gz -flags a)
block 0 of dkc0.0.0.1008.0 is a valid boot block
reading 14 blocks from dkc0.0.0.1008.0
bootstrap code read in
base = 1f0000, image_start = 0, image_bytes = 1c00
initializing HWRPB at 2000
initializing page table at 1e2000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 3.99.15 FFS Primary Bootstrap
Jumping to entry point...

NetBSD/alpha 3.99.15 Secondary Bootstrap, Revision 1.13
(rhialto@azenomei.falu.nl, Sun Feb  5 01:56:28 CET 2006)

VMS PAL rev: 0x1000000010114
OSF PAL rev: 0x1000000020116
Switch to OSF PAL code succeeded.

Boot file: netbsd-INSTALL.gz
Boot flags: a
8905648+171128=0x8a85a8

Entering netbsd-INSTALL.gz at 0xfffffc00003012e0...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    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 3.99.18 (INSTALL) #0: Thu Apr 27 03:51:35 CEST 2006
        rhialto@radl.falu.nl:/vol1/rhialto/obj.alpha/sys/arch/alpha/compile/INSTALL
Digital Personal WorkStation 433au, 432MHz, s/n 
8192 byte page size, 1 processor.
total memory = 448 MB
(1992 KB reserved for PROM, 446 MB used by NetBSD)
avail memory = 430 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-0
cpu0: Architecture extensions: 1<BWX>
cia0 at mainbus0: DECchip 2117x Core Logic Chipset (Pyxis), pass 1
cia0: extended capabilities: 1<BWEN>
cia0: using BWX for PCI config access
cia0: WARNING: Pyxis pass 1 DMA bug; no bets...
pci0 at cia0 bus 0
pci0: i/o space, memory space enabled
tlp0 at pci0 dev 3 function 0: DECchip 21143 Ethernet, pass 3.0
tlp0: interrupting at dec 550 irq 0
tlp0: DEC, Ethernet address 00:00:f8:75:ba:d3
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp0: 10baseT, 10baseT-FDX, 10base2, 10base5
cmdide0 at pci0 dev 4 function 0
cmdide0: CMD Technology PCI0646 (rev. 0x01)
cmdide0: bus-master DMA support present
cmdide0: primary channel wired to compatibility mode
cmdide0: primary channel interrupting at isa irq 14
atabus0 at cmdide0 channel 0
cmdide0: secondary channel wired to compatibility mode
cmdide0: secondary channel interrupting at isa irq 15
atabus1 at cmdide0 channel 1
sio0 at pci0 dev 7 function 0: vendor 0x8086 product 0x0484 (rev. 0x43)
vga0 at pci0 dev 11 function 0: vendor 0x5333 product 0x88c1 (rev. 0x00)
wsdisplay0 at vga0 (kbdmux ignored)
ppb0 at pci0 dev 20 function 0: vendor 0x1011 product 0x0024 (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
isp0 at pci1 dev 8 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at dec 550 irq 12
scsibus0 at isp0: 16 targets, 8 luns per target
ne0 at pci1 dev 9 function 0: Realtek 8029 Ethernet
ne0: Ethernet address 52:54:05:f0:bd:1b
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne0: interrupting at dec 550 irq 16
pdcide0 at pci1 dev 10 function 0
pdcide0: Promise Ultra133/ATA Bus Master IDE Accelerator (rev. 0x02)
pdcide0: bus-master DMA support present
pdcide0: primary channel configured to native-PCI mode
pdcide0: using dec 550 irq 20 for native-PCI interrupt
atabus2 at pdcide0 channel 0
pdcide0: secondary channel configured to native-PCI mode
atabus3 at pdcide0 channel 1
isa0 at sio0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
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
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
md0: internal 4650 KB image area
scsibus0: waiting 2 seconds for devices to settle...
wd0 at atabus2 drive 1: <Maxtor 6Y120P0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 114 GB, 238216 cyl, 16 head, 63 sec, 512 bytes/sect x 240121728 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(pdcide0:0:1): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus3: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-6102B, 7800327909, 1106> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 3, DMA mode 2
cd0(pdcide0:1:0): using PIO mode 3, DMA mode 2 (using DMA)

and there it stops just before sd0 at scsibus0 target 0 lun 0:...

Here is log from an older -current, that works:

ea.e9.e8.e7.e6.e5.e4.
 Digital Personal WorkStation 433au Console V7.0-11
        built on Apr 15 1999 at 15:44:00

CPU 0 booting

(boot dkc0.0.0.1008.0 -flags a)
block 0 of dkc0.0.0.1008.0 is a valid boot block
reading 14 blocks from dkc0.0.0.1008.0
bootstrap code read in
base = 1f0000, image_start = 0, image_bytes = 1c00
initializing HWRPB at 2000
initializing page table at 1e2000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 3.99.15 FFS Primary Bootstrap
*** keyboard not plugged in ...
Jumping to entry point...

NetBSD/alpha 3.99.15 Secondary Bootstrap, Revision 1.13
(rhialto@azenomei.falu.nl, Sun Feb  5 01:56:28 CET 2006)

VMS PAL rev: 0x1000000010114
OSF PAL rev: 0x1000000020116
Switch to OSF PAL code succeeded.

Boot flags: a
4245312+278440 [258144+162188]=0x4b7718

Entering netbsd at 0xfffffc00003012e0...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    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 3.99.15 (AZENOMEI) #2: Sun Feb  5 16:21:31 CET 2006
        rhialto@azenomei.falu.nl:/usr/src/sys/arch/alpha/compile/AZENOMEI
Digital Personal WorkStation 433au, 432MHz, s/n 
8192 byte page size, 1 processor.
total memory = 448 MB
(1992 KB reserved for PROM, 446 MB used by NetBSD)
avail memory = 434 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-0
cpu0: Architecture extensions: 1<BWX>
cia0 at mainbus0: DECchip 2117x Core Logic Chipset (Pyxis), pass 1
cia0: extended capabilities: 1<BWEN>
cia0: using BWX for PCI config access
cia0: WARNING: Pyxis pass 1 DMA bug; no bets...
pci0 at cia0 bus 0
pci0: i/o space, memory space enabled
tlp0 at pci0 dev 3 function 0: DECchip 21143 Ethernet, pass 3.0
tlp0: interrupting at dec 550 irq 0
tlp0: DEC, Ethernet address 00:00:f8:75:ba:d3
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp0: 10baseT, 10baseT-FDX, 10base2, 10base5
cmdide0 at pci0 dev 4 function 0
cmdide0: CMD Technology PCI0646 (rev. 0x01)
cmdide0: bus-master DMA support present
cmdide0: primary channel wired to compatibility mode
cmdide0: primary channel interrupting at isa irq 14
atabus0 at cmdide0 channel 0
cmdide0: secondary channel wired to compatibility mode
cmdide0: secondary channel interrupting at isa irq 15
atabus1 at cmdide0 channel 1
sio0 at pci0 dev 7 function 0: Intel 82378ZB System I/O (rev. 0x43)
vga0 at pci0 dev 11 function 0: S3 86C864-1 ("Vision864") (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1
wsmux1: connecting to wsdisplay0
ppb0 at pci0 dev 20 function 0: Digital Equipment DC21152 PCI-PCI Bridge (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
isp0 at pci1 dev 8 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at dec 550 irq 12
scsibus0 at isp0: 16 targets, 8 luns per target
ne0 at pci1 dev 9 function 0: Realtek 8029 Ethernet
ne0: Ethernet address 52:54:05:f0:bd:1b
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne0: interrupting at dec 550 irq 16
pdcide0 at pci1 dev 10 function 0
pdcide0: Promise Ultra133/ATA Bus Master IDE Accelerator (rev. 0x02)
pdcide0: bus-master DMA support present
pdcide0: primary channel configured to native-PCI mode
pdcide0: using dec 550 irq 20 for native-PCI interrupt
atabus2 at pdcide0 channel 0
pdcide0: secondary channel configured to native-PCI mode
atabus3 at pdcide0 channel 1
isa0 at sio0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
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
attimer0 at isa0 port 0x40-0x43: AT Timer
ess0 at isa0 port 0x220-0x22f irq 5 drq 1,5
ess0: ESS Technology ES1888 [version 0x688b]
ess0: audio1 interrupting at irq 5
audio0 at ess0: half duplex, mmap, independent
opl0 at ess0: model OPL3
midi0 at opl0: ESS Yamaha OPL3
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
pcppi0: attached to attimer0
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
IPsec: Initialized Security Association Processing.
scsibus0: waiting 2 seconds for devices to settle...
wd0 at atabus2 drive 1: <Maxtor 6Y120P0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 114 GB, 238216 cyl, 16 head, 63 sec, 512 bytes/sect x 240121728 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(pdcide0:0:1): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus3: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-6102B, 7800327909, 1106> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 3, DMA mode 2
cd0(pdcide0:1:0): using PIO mode 3, DMA mode 2 (using DMA)
sd0 at scsibus0 target 0 lun 0: <IBM, IC35L036UWDY10-0, S27V> disk fixed
sd0: 35003 MB, 36703 cyl, 6 head, 325 sec, 512 bytes/sect x 71687340 sectors
sd0: sync (50.00ns offset 8), 16-bit (40.000MB/s) transfers, tagged queueing
root on sd0a dumps on sd0b
root file system type: ffs
Sat May  6 14:26:28 GMT 2006
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
/dev/rsd0a: file system is clean; not checking
/dev/rsd0d: file system is clean; not checking
/dev/rsd0e: file system is clean; not checking
/dev/rsd0f: file system is clean; not checking
/dev/rsd0h: file system is clean; not checking
pdcide0:0:1: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
pdcide0:0:1: bus-master DMA error: missing interrupt, status=0x41
wd0: transfer error, downgrading to Ultra-DMA mode 5
wd0(pdcide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
wd0c: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: (aborted command, interface CRC error)
wd0: transfer error, downgrading to Ultra-DMA mode 4
wd0(pdcide0:0:1): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd0c: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: (aborted command, interface CRC error)
wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(pdcide0:0:1): using PIO mode 4, Ultra-DMA mode 3 (using DMA)
wd0c: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: (aborted command, interface CRC error)
wd0: soft error (corrected)
/dev/rwd0a: file system is clean; not checking
/dev/rwd0d: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
/dev/rwd0f: file system is clean; not checking
Setting tty flags.
...etc...

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.