Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Feb 2005 15:59:44 -0800
From:      Doug Hardie <bc979@lafn.org>
To:        f-questions List <freebsd-questions@freebsd.org>
Subject:   SCSI Problem
Message-ID:  <f09de5f6c54e5b8af8c0977679a8c68e@lafn.org>

next in thread | raw e-mail | index | archive | help
I have a system that was running fine with 2 SCSI drives.  Both on the 
same line, the last one terminated.  I removed the first one leaving 
the one with the termination.  Now when the system boots I get the 
strangest messages and the results are quite unusual.  Here are the 
console messages during the boot process:

Waiting 15 seconds for SCSI devices to settle
ahc0: Recovery Initiated
 >>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<
ahc0: Dumping Card State in Command phase, at SEQADDR 0x170
Card was paused
ACCUM = 0x80, SINDEX = 0xac, DINDEX = 0xc0, ARG_2 = 0x4
HCNT = 0x0 SCBPTR = 0x0
SCSISIGI[0x84]:(BSYI|CDI) ERROR[0x0] SCSIBUSL[0x80]
LASTPHASE[0x80]:(CDI) SCSISEQ[0x12]:(ENAUTOATNP|ENRSELI)
SBLKCTL[0x2]:(SELWIDE) SCSIRATE[0x0] SEQCTL[0x10]:(FASTMODE)
SEQ_FLAGS[0x0] SSTAT0[0x7]:(DMADONE|SPIORDY|SDONE)
SSTAT1[0x2]:(PHASECHG) SSTAT2[0x0] SSTAT3[0x0] SIMODE0[0x0]
SIMODE1[0xac]:(ENSCSIPERR|ENBUSFREE|ENSCSIRST|ENSELTIMO)
SXFRCTL0[0x88]:(SPIOEN|DFON) DFCNTRL[0x4]:(DIRECTION)
DFSTATUS[0x6d]:(FIFOEMP|DFTHRESH|HDONE|FIFOQWDEMP|DFCACHETH)
STACK: 0x37 0x0 0x16a 0x19a
SCB count = 20
Kernel NEXTQSCB = 1
Card NEXTQSCB = 19
QINFIFO entries: 19 18 9 0 7 6 17 8 15 14 5 4 3 2
Waiting Queue entries:
Disconnected Queue entries:
QOUTFIFO entries:
Sequencer Free SCB List: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Sequencer SCB Info:
0 SCB_CONTROL[0x0] SCB_SCSIID[0x10] SCB_LUN[0x0] SCB_TAG[0x10]
1 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
2 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
3 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
4 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
5 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
6 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
7 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
8 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
9 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
10 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
11 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
12 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
13 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
14 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
15 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(SCB_XFERLEN_ODD|LID) SCB_TAG[0xff]
Pending list:
2 SCB_CONTROL[0x0] SCB_SCSIID[0xf0]:(TWIN_CHNLB|TWIN_TID)
SCB_LUN[0x0]
3 SCB_CONTROL[0x0] SCB_SCSIID[0xe0]:(TWIN_CHNLB) SCB_LUN[0x0]
4 SCB_CONTROL[0x0] SCB_SCSIID[0xd0]:(TWIN_CHNLB) SCB_LUN[0x0]
5 SCB_CONTROL[0x0] SCB_SCSIID[0xc0]:(TWIN_CHNLB) SCB_LUN[0x0]
14 SCB_CONTROL[0x0] SCB_SCSIID[0x90]:(TWIN_CHNLB) SCB_LUN[0x0]
15 SCB_CONTROL[0x0] SCB_SCSIID[0x80]:(TWIN_CHNLB) SCB_LUN[0x0]
8 SCB_CONTROL[0x0] SCB_SCSIID[0x70]:(TWIN_TID) SCB_LUN[0x0]
9 SCB_CONTROL[0x0] SCB_SCSIID[0x60] SCB_LUN[0x0]
18 SCB_CONTROL[0x0] SCB_SCSIID[0x30] SCB_LUN[0x0]
19 SCB_CONTROL[0x0] SCB_SCSIID[0x20] SCB_LUN[0x0]
16 SCB_CONTROL[0x0] SCB_SCSIID[0x10] SCB_LUN[0x0]
17 SCB_CONTROL[0x0] SCB_SCSIID[0xb0]:(TWIN_CHNLB) SCB_LUN[0x0]
6 SCB_CONTROL[0x0] SCB_SCSIID[0xa0]:(TWIN_CHNLB) SCB_LUN[0x0]
7 SCB_CONTROL[0x0] SCB_SCSIID[0x50] SCB_LUN[0x0]
0 SCB_CONTROL[0x0] SCB_SCSIID[0x40] SCB_LUN[0x0]
Kernel Free SCB list: 13 12 11 10
Untagged Q(1): 16
Untagged Q(2): 19
Untagged Q(3): 18
Untagged Q(4): 0
Untagged Q(5): 7
Untagged Q(6): 9
Untagged Q(7): 8
Untagged Q(8): 15
Untagged Q(9): 14
Untagged Q(10): 6
Untagged Q(11): 17
Untagged Q(12): 5
Untagged Q(13): 4
Untagged Q(14): 3
Untagged Q(15): 2

<<<<<<<<<<<<<<<<< Dump Card State Ends >>>>>>>>>>>>>>>>>>
(probe14:ahc0:0:11:0): SCB 0x11 - timed out
sg[0] - Addr 0x174d41c0 : Length 32
(probe14:ahc0:0:11:0): Other SCB Timeout
ahc0: Issued Channel A Bus Reset. 15 SCBs aborted
ahc0: Timedout SCBs already complete. Interrupts may not be functioning.
ahc0: Recovery Initiated
 >>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<

		Same as before


<<<<<<<<<<<<<<<<< Dump Card State Ends >>>>>>>>>>>>>>>>>>
(probe14:ahc0:0:11:0): SCB 0x5 - timed out
sg[0] - Addr 0x174d4060 : Length 32
(probe14:ahc0:0:11:0): Other SCB Timeout
ahc0: Issued Channel A Bus Reset. 15 SCBs aborted
ahc0: Timedout SCBs already complete. Interrupts may not be functioning.
cd0 at ata1 bus 0 target 0 lun 0
cd0: <CDWRITER IDE5224 001H> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present 
- tray closed
cd1 at ata1 bus 0 target 1 lun 0
cd1: <MATSHITA DVD-RAM LF-D310 A117> Removable CD-ROM SCSI-0 device
cd1: 33.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
da0 at ahc0 bus 0 target 1 lun 0
da0: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da0: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da2 at ahc0 bus 0 target 3 lun 0
da2: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da2: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da2: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da5 at ahc0 bus 0 target 6 lun 0
da5: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da5: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da5: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da6 at ahc0 bus 0 target 7 lun 0
da6: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da6: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da6: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da7 at ahc0 bus 0 target 8 lun 0
da7: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da7: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da7: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da8 at ahc0 bus 0 target 9 lun 0
da8: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da8: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da8: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da11 at ahc0 bus 0 target 12 lun 0
da11: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da11: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged 
Queueing Enabled
da11: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da12 at ahc0 bus 0 target 13 lun 0
da12: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da12: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged 
Queueing Enabled
da12: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da13 at ahc0 bus 0 target 14 lun 0
da13: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da13: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged 
Queueing Enabled
da13: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da14 at ahc0 bus 0 target 15 lun 0
da14: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da14: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged 
Queueing Enabled
da14: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da1 at ahc0 bus 0 target 2 lun 0
da1: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da1: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da1: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da3 at ahc0 bus 0 target 4 lun 0
da3: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da3: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da3: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da4 at ahc0 bus 0 target 5 lun 0
da4: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da4: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da4: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da9 at ahc0 bus 0 target 10 lun 0
da9: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da9: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing 
Enabled
da9: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da10 at ahc0 bus 0 target 11 lun 0
da10: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device
da10: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged 
Queueing Enabled
da10: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
Mounting root from ufs:/dev/da0s1a


 From here on out the system completes booting as normal and runs just 
fine.  Everything works properly except that the system thinks it has 
16 SCSI drives.  There is only one, but camcontrol shows it on all 
targets and disklabel gives the real disk label for all values of 
/dev/da0s1 through /dev/da14/s1.  The physical disk has no jumpers.  
Any ideas what might cause this?  I have never seen anything like it 
before.  I can't imagine what I did to cause this.

Here is the camcontrol devlist -v output:

scbus0 on ahc0 bus 0:
<IBM DDRS-34560D DC1B>             at scbus0 target 1 lun 0 (pass0,da0)
<IBM DDRS-34560D DC1B>             at scbus0 target 2 lun 0 (pass1,da1)
<IBM DDRS-34560D DC1B>             at scbus0 target 3 lun 0 (pass2,da2)
<IBM DDRS-34560D DC1B>             at scbus0 target 4 lun 0 (pass3,da3)
<IBM DDRS-34560D DC1B>             at scbus0 target 5 lun 0 (pass4,da4)
<IBM DDRS-34560D DC1B>             at scbus0 target 6 lun 0 (pass5,da5)
<IBM DDRS-34560D DC1B>             at scbus0 target 7 lun 0 (pass6,da6)
<IBM DDRS-34560D DC1B>             at scbus0 target 8 lun 0 (pass7,da7)
<IBM DDRS-34560D DC1B>             at scbus0 target 9 lun 0 (pass8,da8)
<IBM DDRS-34560D DC1B>             at scbus0 target 10 lun 0 (pass9,da9)
<IBM DDRS-34560D DC1B>             at scbus0 target 11 lun 0 
(pass10,da10)
<IBM DDRS-34560D DC1B>             at scbus0 target 12 lun 0 
(pass11,da11)
<IBM DDRS-34560D DC1B>             at scbus0 target 13 lun 0 
(pass12,da12)
<IBM DDRS-34560D DC1B>             at scbus0 target 14 lun 0 
(pass13,da13)
<IBM DDRS-34560D DC1B>             at scbus0 target 15 lun 0 
(pass14,da14)
<  >                               at scbus0 target -1 lun -1 ()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f09de5f6c54e5b8af8c0977679a8c68e>