Subject: port-alpha/9432: WARNING: can't figure what device matches "SCSI 1 2000 0 0 0 0 0"
To: None <gnats-bugs@gnats.netbsd.org>
From: Manuel Bouyer <Manuel.Bouyer@asim.lip6.fr>
List: netbsd-bugs
Date: 02/16/2000 05:00:55
>Number:         9432
>Category:       port-alpha
>Synopsis:       WARNING: can't figure what device matches "SCSI 1 2000 0 0 0 0 0"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-alpha-maintainer (NetBSD/alpha Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 16 05:00:01 2000
>Last-Modified:
>Originator:     Manuel Bouyer
>Organization:
	LIP6/ASIM
>Release:        -current as of 2 days ago
>Environment:
	
System: NetBSD ds20 1.4S NetBSD 1.4S (DS20) #2: Wed Feb 16 04:17:31 PST 2000 root@ds20:/home/src/sys/arch/alpha/compile/DS20 alpha

>Description:
	This machine is a ds20 (as the name suggests :) with a compaq
	dual channel scsi board (really 2 ncr875 behind a DECchip 21152
	PCI-PCI Bridge), to which is attached a HD, seen as dka0 by SRM
	and sd1 by NetBSD. There is also a tekram ncr875 controller with
	an external drive attached seens as sd0 by NetBSD and dkc2 by the
	SRM. When booting from the external drive (boot dkc2 at SRM prompt)
	all works fine, but when booting from the internal drive (boot dka0
	at the SRM prompt) the kernel complains with:
	WARNING: can't figure what device matches "SCSI 1 2000 0 0 0 0 0"
	and I have to tell it 'sd1' when it asks for the root device.

	dmesg:
[ preserving 250776 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.4S (DS20) #2: Wed Feb 16 04:17:31 PST 2000
    root@ds20:/home/src/sys/arch/alpha/compile/DS20
AlphaServer DS20 500 MHz
8192 byte page size, 1 processor.
total memory = 512 MB
(2664 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 233 MB
using 32600 buffers containing 254 MB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264-4 (pass 3)
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 8 Dchips, 2 memory buses of 32 bytes
tsc0: arrays present: 256MB, 0MB, 256MB, 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 5 function 0: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
pciide0 at pci0 dev 5 function 1: Contaq Microsystems CY82C693 IDE Controller
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
pciide0: disabling primary channel (no drives)
pciide1 at pci0 dev 5 function 2: Contaq Microsystems CY82C693 IDE Controller
pciide1: hardware does not support DMA
pciide1: primary channel wired to compatibility mode
pciide1: disabling primary channel (no drives)
ohci0 at pci0 dev 5 function 3: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
intr_map: line=0xea, no mapping for 0/5/3
ohci0: couldn't map interrupt
vga0 at pci0 dev 7 function 0: Texas Instruments TVP4020 Permedia 2 (rev. 0x01)
wsdisplay0 at vga0
ncr0 at pci0 dev 8 function 0: ncr 53c875 fast20 wide scsi
ncr0: interrupting at dec_6600 irq 27
ncr0: minsync=25, maxsync=254, maxoffs=16, 128 dwords burst, large dma fifo
ncr0: single-ended, open drain IRQ driver, using on-chip SRAM
ncr0: restart (scsi reset).
scsibus0 at ncr0: 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
tsp1 at tsc0
pci1 at tsp1 bus 0
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
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
ncr1 at pci2 dev 0 function 0: ncr 53c875 fast20 wide scsi
ncr1: interrupting at dec_6600 irq 43
ncr1: minsync=25, maxsync=254, maxoffs=16, 128 dwords burst, large dma fifo
ncr1: single-ended, open drain IRQ driver, using on-chip SRAM
ncr1: restart (scsi reset).
scsibus1 at ncr1: 16 targets, 8 luns per target
ncr2 at pci2 dev 1 function 0: ncr 53c875 fast20 wide scsi
ncr2: interrupting at dec_6600 irq 42
ncr2: minsync=25, maxsync=254, maxoffs=16, 128 dwords burst, large dma fifo
ncr2: single-ended, open drain IRQ driver, using on-chip SRAM
ncr2: restart (scsi reset).
scsibus2 at ncr2: 16 targets, 8 luns per target
tlp0 at pci2 dev 2 function 0: DECchip 21140A Ethernet, pass 2.2
tlp0: interrupting at dec_6600 irq 41
tlp0: Ethernet address 00:06:2b:00:f3:eb
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 targ 2 lun 0: <IBM, DNES-309170W, SA30> SCSI3 0/direct fixed
sd0(ncr0:2:0): WIDE SCSI (16 bit) enabled
sd0(ncr0:2:0): 20.0 MB/s (100 ns, offset 16)
sd0: 8748 MB, 11474 cyl, 5 head, 312 sec, 512 bytes/sect x 17916240 sectors
scsibus1: waiting 2 seconds for devices to settle...
sd1 at scsibus1 targ 0 lun 0: <COMPAQ, BB00912301, B016> SCSI2 0/direct fixed
sd1(ncr1:0:0): WIDE SCSI (16 bit) enabled
sd1(ncr1:0:0): 20.0 MB/s (100 ns, offset 16)
sd1: 8678 MB, 5273 cyl, 20 head, 168 sec, 512 bytes/sect x 17773524 sectors
cd0 at scsibus1 targ 5 lun 0: <DEC, RRD47   (C) DEC, 1206> SCSI2 5/cdrom removable
probe(ncr1:5:1): 10.0 MB/s (100 ns, offset 16)
scsibus2: waiting 2 seconds for devices to settle...
Kernelized RAIDframe activated
WARNING: can't figure what device matches "SCSI 1 2000 0 0 0 0 0"
root device: sd1
dump device (default sd1b): 
file system (default generic): 
root on sd1a dumps on sd1b
root file system type: ffs

P00>>>show dev
dka0.0.0.2000.1            DKA0              COMPAQ BB00912301  B016
dka500.5.0.2000.1          DKA500                        RRD47  1206
dkc200.2.0.8.0             DKC200             IBM DNES-309170W  SA30
dva0.0.0.0.0               DVA0
ewa0.0.0.2002.1            EWA0              00-06-2B-00-F3-EB
pka0.7.0.2000.1            PKA0                  SCSI Bus ID 7
pkb0.7.0.2001.1            PKB0                  SCSI Bus ID 7
pkc0.7.0.8.0               PKC0                  SCSI Bus ID 7

	
>How-To-Repeat:
	
	boot -current on a ds20 with a compaq 875 controller on the second pci
	bus and a tekram 875 on the first one, both with one drive attached.
>Fix:
	workaround: compile a kernel with 'root on sd1'
>Audit-Trail:
>Unformatted: