Subject: kern/32717: alpha 3.0 install kernel doesn't see scsi disks
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Ken Raeburn <raeburn@MIT.EDU>
List: netbsd-bugs
Date: 02/03/2006 08:35:00
>Number:         32717
>Category:       kern
>Synopsis:       alpha 3.0 install kernel doesn't see scsi disks
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 03 08:35:00 +0000 2006
>Originator:     Ken Raeburn
>Release:        NetBSD 3.0
>Organization:
	MIT
>Environment:
System: NetBSD 3.0 installation CD
Architecture: alpha
Machine: alpha
>Description:

I've got an XP1000 that's been running NetBSD 2.0 quite happily, aside
from occasional complaints of resource shortages from the siop(?)
driver, which I think I've reported already.  Otherwise, everything
seems fine.  The machine has two SCSI disks internally, and gets used
regularly as a build engine via cron jobs.

I burned the alpha 3.0 install cd image to a cd and booted from it.
It fails to recognize the disks, and thus can't update the machine.
The boot messages from this kernel (as much as were left in memory
when I got 2.0 up again) were:

u0 at mainbus0: ID 0 (primary), 21264A-9
cpu0: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 4 Dchips, 1 memory bus of 32 bytes
tsc0: arrays present: 256MB, 1024MB, 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: vendor 0x1080 product 0xc693 (rev. 0x00)
cypide0 at pci0 dev 7 function 1
cypide0: Cypress 82C693 IDE Controller (rev. 0x00)
cypide0: bus-master DMA support present
cypide0: primary channel wired to compatibility mode
cypide0: primary channel interrupting at isa irq 14
atabus0 at cypide0 channel 0
cypide1 at pci0 dev 7 function 2
cypide1: Cypress 82C693 IDE Controller (rev. 0x00)
cypide1: hardware does not support DMA
cypide1: primary channel wired to compatibility mode
cypide1: secondary channel interrupting at isa irq 15
atabus1 at cypide1 channel 0
vendor 0x1080 product 0xc693 (USB serial bus, interface 0x10) at pci0 dev 7 function 3 not configured
siop0 at pci0 dev 12 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
siop0: using on-board RAM
siop0: interrupting at dec 6600 irq 36
scsibus0 at siop0: 16 targets, 8 luns per target
vga0 at pci0 dev 13 function 0: vendor 0x104c product 0x3d07 (rev. 0x01)
wsdisplay0 at vga0 (kbdmux ignored): console (80x25, vt100 emulation)
isa0 at sio0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux ignored): console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 (mux ignored)
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
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
tlp0 at pci1 dev 3 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at dec 6600 irq 45
tlp0: DEC, Ethernet address 08:00:2b:87:0e:6d
tlp0: 10baseT, 10base2, 10base5, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp0 at pci1 dev 6 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at dec 6600 irq 47
scsibus1 at isp0: 16 targets, 8 luns per target
ppb0 at pci1 dev 8 function 0: vendor 0x1011 product 0x0024 (rev. 0x03)
pci2 at ppb0 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
md0: internal 4650 KB image area
stray isa irq 14
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 1: <Compaq  CRD-8322B, 1999/02/11, 1.07> cdrom removable
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(cypide0:0:1): using PIO mode 4, DMA mode 2 (using DMA)
probe(siop0:0:0:0): request sense for a request sense ?
probe(siop0:0:0:0): request sense failed with error 22
probe(siop0:0:0:0): generic HBA error
probe(siop0:0:1:0): request sense for a request sense ?
probe(siop0:0:1:0): request sense failed with error 22
probe(siop0:0:1:0): generic HBA error
WARNING: can't figure what device matches "IDE 0 107 0 1 1 0 0"
root on md0a dumps on md0b
root file system type: ffs
WARNING: clock gained 46 days -- CHECK AND RESET THE DATE!


The 2.0 boot messages (taken from a reboot after failing to upgrade)
are:

consinit: not using prom console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    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 2.0 (GENERIC) #0: Tue Nov 30 21:04:03 UTC 2004
	builds@build:/big/builds/ab/netbsd-2-0-RELEASE/alpha/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/alpha/compile/GENERIC
COMPAQ Professional Workstation XP1000, 666MHz, s/n 4029DRSZ10
8192 byte page size, 1 processor.
total memory = 1280 MB
(1792 KB reserved for PROM, 1278 MB used by NetBSD)
avail memory = 1246 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264A-9
cpu0: Architecture extensions: 307<PAT,MVI,CIX,FIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 4 Dchips, 1 memory bus of 32 bytes
tsc0: arrays present: 256MB, 1024MB, 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: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
cypide0 at pci0 dev 7 function 1
cypide0: Cypress 82C693 IDE Controller (rev. 0x00)
cypide0: bus-master DMA support present
cypide0: primary channel wired to compatibility mode
cypide0: primary channel interrupting at isa irq 14
atabus0 at cypide0 channel 0
cypide1 at pci0 dev 7 function 2
cypide1: Cypress 82C693 IDE Controller (rev. 0x00)
cypide1: hardware does not support DMA
cypide1: primary channel wired to compatibility mode
cypide1: secondary channel interrupting at isa irq 15
atabus1 at cypide1 channel 0
ohci0 at pci0 dev 7 function 3: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
ohci0: interrupting at isa irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Contaq Microsys OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
esiop0 at pci0 dev 12 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
esiop0: using on-board RAM
esiop0: interrupting at dec 6600 irq 36
scsibus0 at esiop0: 16 targets, 8 luns per target
vga0 at pci0 dev 13 function 0: Texas Instruments TVP4020 Permedia 2 (rev. 0x01)
wsdisplay0 at vga0 (kbdmux ignored): console (80x25, vt100 emulation)
isa0 at sio0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux ignored): console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 (mux ignored)
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0: half duplex, mmap, independent
midi at sb0 not configured
opl at sb0 not configured
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
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
tlp0 at pci1 dev 3 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at dec 6600 irq 45
tlp0: DEC , Ethernet address 08:00:2b:87:0e:6d
tlp0: 10baseT, 10base2, 10base5, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp0 at pci1 dev 6 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at dec 6600 irq 47
scsibus1 at isp0: 16 targets, 8 luns per target
ppb0 at pci1 dev 8 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x03)
pci2 at ppb0 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
stray isa irq 14
atapibus0 at atabus0: 2 targets
scsibus0: waiting 2 seconds for devices to settle...
cd0 at atapibus0 drive 1: <Compaq  CRD-8322B, 1999/02/11, 1.07> cdrom removable
scsibus1: waiting 2 seconds for devices to settle...
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(cypide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
sd0 at scsibus0 target 0 lun 0: <COMPAQ, BD009222C7, B016> disk fixed
sd0: 8678 MB, 5273 cyl, 20 head, 168 sec, 512 bytes/sect x 17773524 sectors
sd0: sync (25.00ns offset 31), 16-bit (80.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <DEC, RZ2ED-KS (C) DEC, 0306> disk fixed
sd1: 17365 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35565080 sectors
sd1: sync (25.00ns offset 15), 16-bit (80.000MB/s) transfers, tagged queueing
root on sd0a dumps on sd0b
root file system type: ffs


The probe error messages come out of scsipi_base.c, in code that
doesn't appear to have changed since 2.0, so presumably the 3.0 kernel
is doing something different that causes the error state to arise.  I
do notice that the 2.0 kernel reported a "esiop" device where the 3.0
install kernel reported "siop" (and appears not to have esiop listed
in the kernel config file), but the comments in the two drivers look
like they're for the same cards.  (I also notice that the "waiting 2
seconds" messages are ordered differently with respect to the cd0
detection, don't know if that's relevant at all, since cd0 is an IDE
device.)

>How-To-Repeat:
	Try updating my xp1000...
>Fix:
	?

	Would it be worth jumping through all the hoops of updating
the parts of my system needed to properly build a 3.0 kernel with an
esiop driver (and maybe not siop?), to see if that fares any better?