Subject: GENERIC_SCSI3 doesn't correctly map drives
To: NetBSD port-sparc mailing list <port-sparc@netbsd.org>
From: Julian Coleman <jdc@coris.org.uk>
List: port-sparc
Date: 01/22/2006 16:22:18
I connected some external disks to an extra SCSI controller on an SS20
today. I expected them to become sd4, sd5 and sd6, because I have a
kernel based on GENERIC_SCSI3. However, I saw:
esp0 at dma0 slot 15 offset 0x800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
esp1 at dma1 slot 3 offset 0x80000 level 3 (ipl 5): ESP200, 40MHz, SCSI ID 7
scsibus1 at esp1: 8 targets, 8 luns per target
sd1 at scsibus0 target 1 lun 0: <IBM, DDRS39130SUN9.0G, S98E> disk fixed
sd0 at scsibus0 target 3 lun 0: <IBM, DDRS34560SUN4.2G, S98E> disk fixed
sd3 at scsibus1 target 0 lun 0: <SEAGATE, ST318203LSUN18G, 034A> disk fixed
sd4 at scsibus1 target 1 lun 0: <SEAGATE, ST318203LSUN18G, 034A> disk fixed
sd2 at scsibus1 target 2 lun 0: <SEAGATE, ST318203LSUN18G, 034A> disk fixed
Because the GENERIC_SCSI3 config says:
# Map the SCSI disk at targets 3120 to units 0123, a'la SunOS.
sd0 at scsibus? target 3 lun ? # first SCSI disk
sd1 at scsibus? target 1 lun ? # second SCSI disk
sd2 at scsibus? target 2 lun ? # third SCSI disk
sd3 at scsibus? target 0 lun ? # fourth SCSI disk
the disks on scsibus 0 (internal) were mapped as I expected but two of the
external disks (sd2 and sd3) matched the above because the scsibus is
wildcarded. It seems to me that these lines should be:
sd0 at scsibus0 target 3 lun ? # first SCSI disk
etc., but is there any case where the internal SCSI bus doesn't attach to
scsibus0?
J
--
My other computer also runs NetBSD / Sailing at Newbiggin
http://www.netbsd.org/ / http://www.newbigginsailingclub.org/