aic7850 gets wedged while using an attached scanner

Jacob Luna Lundberg jacob at velius.chaos2.org
Sat May 19 19:26:47 PDT 2001


On Sat, 19 May 2001, Justin T. Gibbs wrote:
> I may be able to tell you more if you run the module with
> "aic7xxx=verbose", but it appears that the scanner is either
> taking a long time to complete a command, or just dies.

Here's the new output.  :)


PCI: Enabling device 00:08.0 (0006 -> 0007)
PCI: Found IRQ 11 for device 00:08.0
ahc_pci:0:8:0: No SEEPROM available.
ahc_pci:0:8:0: Host Adapter Bios disabled.  Using default SCSI device parameters
ahc_pci:0:8:0: Downloading Sequencer Program... 443 instructions downloaded
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.1.13
        <Adaptec 2902/04/10/15/20/30C SCSI adapter>
        aic7850: Single Channel A, SCSI Id=7, 3/255 SCBs

  Vendor:           Model: scanner 636EL     Rev: 1.40
  Type:   Scanner                            ANSI SCSI revision: 02
Detected scsi generic sg0 at scsi0, channel 0, id 6, lun 0, type 6
scsi0:0:6:0: Attempting to queue an ABORT message
scsi0: Dumping Card State while idle, at SEQADDR 0x7
SCSISEQ = 0x12, SBLKCTL = 0x0
 DFCNTRL = 0x0, DFSTATUS = 0x2d
LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 0x80
SSTAT0 = 0x5, SSTAT1 = 0xa
STACK == 0x3, 0x194, 0x154, 0x0
SCB count = 4
Kernel NEXTQSCB = 2
Card NEXTQSCB = 2
QINFIFO entries:
Waiting Queue entries:
Disconnected Queue entries: 0:3
QOUTFIFO entries:
Sequencer Free SCB List: 1 2
Pending list: 3
Kernel Free SCB list: 1 0
Untagged Q(6): 3
DevQ(0:6:0): 0 waiting
(scsi0:A:6:0): Queuing a recovery SCB
scsi0:0:6:0: Device is disconnected, re-queuing SCB
Recovery code sleeping
(scsi0:A:6:0): Abort Message Sent
(scsi0:A:6:0): SCB 3 - Abort Completed.
Recovery SCB completes
Recovery code awake
aic7xxx_abort returns 8194
scsi0:0:6:0: Attempting to queue a TARGET RESET message
scsi0:0:6:0: Command not found
aic7xxx_dev_reset returns 8194
scsi0: SCSI bus reset delivered. 0 SCBs aborted.
scsi0:0:6:0: Attempting to queue an ABORT message
scsi0: Dumping Card State while idle, at SEQADDR 0x7
SCSISEQ = 0x12, SBLKCTL = 0x0
 DFCNTRL = 0x0, DFSTATUS = 0x2d
LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 0x80
SSTAT0 = 0x5, SSTAT1 = 0xa
STACK == 0x3, 0x194, 0x154, 0xe0
SCB count = 4
Kernel NEXTQSCB = 2
Card NEXTQSCB = 2
QINFIFO entries:
Waiting Queue entries:
Disconnected Queue entries: 0:3
QOUTFIFO entries:
Sequencer Free SCB List: 1 2
Pending list: 3
Kernel Free SCB list: 1 0
Untagged Q(6): 3
DevQ(0:6:0): 0 waiting
(scsi0:A:6:0): Queuing a recovery SCB
scsi0:0:6:0: Device is disconnected, re-queuing SCB
Recovery code sleeping
Recovery code awake
Timer Expired
aic7xxx_abort returns 8195
scsi0:0:6:0: Attempting to queue a TARGET RESET message
aic7xxx_dev_reset returns 8195
Recovery SCB completes
scsi0: SCSI bus reset delivered. 1 SCBs aborted.
scsi0:A:6: no active SCB for reconnecting target - issuing BUS DEVICE RESET
SAVED_SCSIID == 0x67, SAVED_LUN == 0x0, ARG_1 == 0xff ACCUM = 0x80
SEQ_FLAGS == 0x0, SCBPTR == 0x0, BTT == 0xff, SINDEX == 0x31
SCSIID == 0x67, SCB_SCSIID == 0x67, SCB_LUN == 0x0, SCB_TAG == 0xff, SCB_CONTROL == 0x54
SCSIBUSL == 0x78, SCSISIGI == 0x46
SXFRCTL0 == 0x88
SEQCTL == 0x10
scsi0: Dumping Card State in Data-in phase, at SEQADDR 0x1ba
SCSISEQ = 0x12, SBLKCTL = 0x0
 DFCNTRL = 0x0, DFSTATUS = 0x2d
LASTPHASE = 0x40, SCSISIGI = 0x46, SXFRCTL0 = 0x88
SSTAT0 = 0x7, SSTAT1 = 0x3
STACK == 0x154, 0xe0, 0x35, 0x12d
SCB count = 4
Kernel NEXTQSCB = 2
Card NEXTQSCB = 2
QINFIFO entries:
Waiting Queue entries:
Disconnected Queue entries:
QOUTFIFO entries:
Sequencer Free SCB List: 0 1 2
Pending list:
Kernel Free SCB list: 3 1 0
DevQ(0:6:0): 0 waiting
scsi0:A:6: Target did not send an IDENTIFY message. LASTPHASE = 0x40, SAVED_SCSIID == 0x67
scsi0: Issued Channel A Bus Reset. 0 SCBs aborted
scsi: device set offline - not ready or command retry failed after bus reset: host 0 channel 0 id 6 lun 0


> Perhaps the timeout is not long enough in your scan program?

Perhaps so.  I'm using xsane.  I'm not sure how to increase the timeout in
sane though.

Looking at things closer, it seems that if I power the scanner down then I
can get it to work again without rebooting after all.  So this is the
scanner and sane, not the drivers?  *sigh*  ;-)

-Jacob


To Unsubscribe: send mail to majordomo at FreeBSD.org
with "unsubscribe aic7xxx" in the body of the message




More information about the aic7xxx mailing list