View previous topic :: View next topic |
Author |
Message |
belgo n00b
Joined: 16 Jun 2004 Posts: 4
|
Posted: Wed Aug 25, 2004 9:15 am Post subject: scsi: Device offlined - not ready after error recovery |
|
|
Hi,
I'm trying to get my Minolta Quickscan 35+ film scanner to work with Gentoo. The SCSI pccard and scanner are detected with both 2.6.8 and 2.6.9-rc1:
Code: | scsi0 : Qlogicfas Driver version 0.46, chip 50 at 230, IRQ 3, TPdma:1
Vendor: Minolta Model: #2880 QS35 Rev: 101A
Type: Scanner ANSI SCSI revision: 02
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 6
|
But when I start the application that accesses the scanner ('VueScan' in my case), the application hangs while detecting the scanner. dmesg gives me the following error:
Code: | scsi: Device offlined - not ready after error recovery: host 0 channel 0 id 0 lun 0
scsi0 (0:0): rejecting I/O to offline device
|
Where should I start looking for the cause of the problem? The scanner should work, although I have never tested it. I don't have any other SCSI device or SCSI host adapters. Are there preferred kernel versions that are known to work well with SCSI devices (I have tested 2.6.8 and 2.6.9-rc1 so far).
Also, I have SCSI logging enabled (CONFIG_SCSI_LOGGING=y) but I'm not sure where the logs should appear.
Thanks in advance. |
|
Back to top |
|
|
belgo n00b
Joined: 16 Jun 2004 Posts: 4
|
Posted: Thu Aug 26, 2004 8:22 pm Post subject: |
|
|
Nobody? |
|
Back to top |
|
|
phixom Apprentice
Joined: 07 Jan 2003 Posts: 224
|
Posted: Tue Sep 28, 2004 1:00 pm Post subject: |
|
|
I've the same Problem with a HP-Scannjet 6200c
Code: |
scsi4:0:0:0: Attempting to queue an ABORT message
CDB: 0x8 0x0 0x0 0x80 0x0 0x0
scsi4: At time of recovery, card was not paused
>>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<
scsi4: Dumping Card State while idle, at SEQADDR 0x8
Card was paused
ACCUM = 0x3f, SINDEX = 0x7, DINDEX = 0x21, ARG_2 = 0x0
HCNT = 0x0 SCBPTR = 0x0
SCSISIGI[0x0] ERROR[0x0] SCSIBUSL[0x0] LASTPHASE[0x1]:(P_BUSFREE)
SCSISEQ[0x12]:(ENAUTOATNP|ENRSELI) SBLKCTL[0x0] SCSIRATE[0x0]
SEQCTL[0x10]:(FASTMODE) SEQ_FLAGS[0xc0]:(NO_CDB_SENT|NOT_IDENTIFIED)
SSTAT0[0x5]:(DMADONE|SDONE) SSTAT1[0xa]:(PHASECHG|BUSFREE)
SSTAT2[0x0] SSTAT3[0x0] SIMODE0[0x0] SIMODE1[0xa4]:(ENSCSIPERR|ENSCSIRST|ENSELTIMO)
SXFRCTL0[0x80]:(DFON) DFCNTRL[0x0] DFSTATUS[0x2d]:(FIFOEMP|DFTHRESH|HDONE|FIFOQWDEMP)
STACK: 0x0 0x160 0x1a1 0x3
SCB count = 4
Kernel NEXTQSCB = 3
Card NEXTQSCB = 3
QINFIFO entries:
Waiting Queue entries:
Disconnected Queue entries: 0:2
QOUTFIFO entries:
Sequencer Free SCB List: 1 2
Sequencer SCB Info:
0 SCB_CONTROL[0x44]:(DISCONNECTED|DISCENB) SCB_SCSIID[0x7]
SCB_LUN[0x0] SCB_TAG[0x2]
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]
Pending list:
2 SCB_CONTROL[0x40]:(DISCENB) SCB_SCSIID[0x7] SCB_LUN[0x0]
Kernel Free SCB list: 1 0
Untagged Q(0): 2
DevQ(0:0:0): 1 waiting
<<<<<<<<<<<<<<<<< Dump Card State Ends >>>>>>>>>>>>>>>>>>
(scsi4:A:0:0): Device is disconnected, re-queuing SCB
Recovery code sleeping
Recovery SCB completes
Recovery code awake
aic7xxx_abort returns 0x2002
scsi4:0:0:0: Attempting to queue an ABORT message
CDB: 0x8 0x0 0x0 0x80 0x0 0x0
scsi4:0:0:0: Is not an active device
aic7xxx_abort returns 0x2002
scsi4:0:0:0: Attempting to queue a TARGET RESET message
CDB: 0x8 0x0 0x0 0x80 0x0 0x0
scsi4:0:0:0: Is not an active device
aic7xxx_dev_reset returns 0x2002
scsi: Device offlined - not ready after error recovery: host 4 channel 0 id 0 lun 0
scsi: Device offlined - not ready after error recovery: host 4 channel 0 id 0 lun 0
scsi4 (0:0): rejecting I/O to offline device
|
is there any solution? |
|
Back to top |
|
|
linear Apprentice
Joined: 12 Aug 2004 Posts: 222
|
Posted: Thu Nov 18, 2004 8:59 pm Post subject: |
|
|
I am having the same problem iwth an Ultrastor rs2080-400ad RAID box using 2.6.9-r4 and an adaptec 29320A controler with the driver built into the kernel (79xx Ultra 320 driver).
During kernel init on boot it sees the adaptec controller then sees the raid box. It then goes into a 10 min loop spewing:
Quote: | Nov 18 11:41:09 dimsserver kernel: DevQ(0:1:0): 0 waiting
Nov 18 11:41:09 dimsserver kernel: scsi0:0:1:0: Unable to deliver message
Nov 18 11:41:09 dimsserver kernel: Recovery code sleeping
Nov 18 11:41:09 dimsserver kernel: scsi0: Unexpected PKT busfree condition
Nov 18 11:41:09 dimsserver kernel: >>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<
Nov 18 11:41:09 dimsserver kernel: scsi0: Dumping Card State at program address 0xa3 Mode 0x33
Nov 18 11:41:09 dimsserver kernel: Card was paused
Nov 18 11:41:09 dimsserver kernel: HS_MAILBOX[0x0] INTCTL[0x80]:(SWTMINTMASK) SEQINTSTAT[0x0]
Nov 18 11:41:09 dimsserver kernel: SAVED_MODE[0x11] DFFSTAT[0x33]:(CURRFIFO_NONE|FIFO0FREE|FIFO1FREE)
Nov 18 11:41:09 dimsserver kernel: SCSISIGI[0xb6]:(P_MESGOUT|REQI|BSYI|ATNI) SCSIPHASE[0x4]:(MSG_OUT_PHASE)
Nov 18 11:41:09 dimsserver kernel: SCSIBUS[0xc0] LASTPHASE[0x1]:(P_DATAOUT|P_BUSFREE)
Nov 18 11:41:09 dimsserver kernel: SCSISEQ0[0x0] SCSISEQ1[0x12]:(ENAUTOATNP|ENRSELI)
Nov 18 11:41:09 dimsserver kernel: SEQCTL0[0x0] SEQINTCTL[0x0] SEQ_FLAGS[0x0] SEQ_FLAGS2[0x0]
Nov 18 11:41:09 dimsserver kernel: SSTAT0[0x42]:(SPIORDY|SELDO) SSTAT1[0x19]:(REQINIT|BUSFREE|PHASEMIS)
Nov 18 11:41:09 dimsserver kernel: SSTAT2[0x0] SSTAT3[0x0] PERRDIAG[0xc0]:(HIPERR|HIZERO)
Nov 18 11:41:09 dimsserver kernel: SIMODE1[0xac]:(ENSCSIPERR|ENBUSFREE|ENSCSIRST|ENSELTIMO)
Nov 18 11:41:09 dimsserver kernel: LQISTAT0[0x0] LQISTAT1[0x0] LQISTAT2[0x0] LQOSTAT0[0x0]
Nov 18 11:41:09 dimsserver kernel: LQOSTAT1[0x0] LQOSTAT2[0x0]
Nov 18 11:41:09 dimsserver kernel:
Nov 18 11:41:09 dimsserver kernel: SCB Count = 4 CMDS_PENDING = 2 LASTSCB 0xffff CURRSCB 0x2 NEXTSCB 0x0
Nov 18 11:41:09 dimsserver kernel: qinstart = 191 qinfifonext = 191
Nov 18 11:41:09 dimsserver kernel: QINFIFO:
Nov 18 11:41:09 dimsserver kernel: WAITING_TID_QUEUES:
Nov 18 11:41:09 dimsserver kernel: 1 ( 0x2 )
Nov 18 11:41:09 dimsserver kernel: Pending list:
Nov 18 11:41:09 dimsserver kernel: 2 FIFO_USE[0x0] SCB_CONTROL[0x10]:(MK_MESSAGE) SCB_SCSIID[0x17]
Nov 18 11:41:09 dimsserver kernel: 3 FIFO_USE[0x0] SCB_CONTROL[0x44]:(DISCONNECTED|DISCENB)
Nov 18 11:41:09 dimsserver kernel: SCB_SCSIID[0x17]
Nov 18 11:41:09 dimsserver kernel: Total 2
Nov 18 11:41:09 dimsserver kernel: Kernel Free SCB list: 1 0
Nov 18 11:41:09 dimsserver kernel: Sequencer Complete DMA-inprog list:
Nov 18 11:41:09 dimsserver kernel: Sequencer Complete list:
Nov 18 11:41:09 dimsserver kernel: Sequencer DMA-Up and Complete list:
Nov 18 11:41:09 dimsserver kernel:
Nov 18 11:41:09 dimsserver kernel: scsi0: FIFO0 Free, LONGJMP == 0x80ff, SCB 0x0
Nov 18 11:41:09 dimsserver kernel: SEQIMODE[0x3f]:(ENCFG4TCMD|ENCFG4ICMD|ENCFG4TSTAT|ENCFG4ISTAT|ENCFG4DATA|ENSAVEPTRS)
Nov 18 11:41:09 dimsserver kernel: SEQINTSRC[0x0] DFCNTRL[0x0] DFSTATUS[0x89]:(FIFOEMP|HDONE|PRELOAD_AVAIL)
Nov 18 11:41:09 dimsserver kernel: SG_CACHE_SHADOW[0x2]:(LAST_SEG) SG_STATE[0x0] DFFSXFRCTL[0x0]
Nov 18 11:41:09 dimsserver kernel: SOFFCNT[0x0] MDFFSTAT[0x5]:(FIFOFREE|DLZERO) SHADDR = 0x00, SHCNT = 0x0
Nov 18 11:41:09 dimsserver kernel: HADDR = 0x00, HCNT = 0x0 CCSGCTL[0x10]:(SG_CACHE_AVAIL)
Nov 18 11:41:09 dimsserver kernel: scsi0: FIFO1 Free, LONGJMP == 0x8063, SCB 0x3
Nov 18 11:41:09 dimsserver kernel: SEQIMODE[0x3f]:(ENCFG4TCMD|ENCFG4ICMD|ENCFG4TSTAT|ENCFG4ISTAT|ENCFG4DATA|ENSAVEPTRS)
Nov 18 11:41:09 dimsserver kernel: SEQINTSRC[0x0] DFCNTRL[0x4]:(DIRECTION) DFSTATUS[0x89]:(FIFOEMP|HDONE|PRELOAD_AVAIL)
Nov 18 11:41:09 dimsserver kernel: SG_CACHE_SHADOW[0x2]:(LAST_SEG) SG_STATE[0x0] DFFSXFRCTL[0x0]
Nov 18 11:41:09 dimsserver kernel: SOFFCNT[0x0] MDFFSTAT[0x5]:(FIFOFREE|DLZERO) SHADDR = 0x00, SHCNT = 0x0
Nov 18 11:41:09 dimsserver kernel: HADDR = 0x00, HCNT = 0x0 CCSGCTL[0x10]:(SG_CACHE_AVAIL)
Nov 18 11:41:09 dimsserver kernel: LQIN: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Nov 18 11:41:09 dimsserver kernel: scsi0: LQISTATE = 0x0, LQOSTATE = 0x0, OPTIONMODE = 0x52
Nov 18 11:41:09 dimsserver kernel: scsi0: OS_SPACE_CNT = 0x20 MAXCMDCNT = 0x0
Nov 18 11:41:09 dimsserver kernel:
Nov 18 11:41:09 dimsserver kernel: SIMODE0[0xc]:(ENOVERRUN|ENIOERR)
Nov 18 11:41:09 dimsserver kernel: CCSCBCTL[0x4]:(CCSCBDIR)
Nov 18 11:41:09 dimsserver kernel: scsi0: REG0 == 0x4f1, SINDEX = 0x11d, DINDEX = 0x1bc
Nov 18 11:41:09 dimsserver kernel: scsi0: SCBPTR == 0x2, SCB_NEXT == 0xffc0, SCB_NEXT2 == 0xffdf
Nov 18 11:41:09 dimsserver kernel: CDB 0 0 0 0 0 0
Nov 18 11:41:09 dimsserver kernel: STACK: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
Nov 18 11:41:09 dimsserver kernel: <<<<<<<<<<<<<<<<< Dump Card State Ends >>>>>>>>>>>>>>>>>>
Nov 18 11:41:09 dimsserver kernel: DevQ(0:1:0): 0 waiting
Nov 18 11:41:09 dimsserver kernel: (scsi0:A:1:0): Bus Device Reset Message Sent
Nov 18 11:41:09 dimsserver kernel: Recovery SCB completes
Nov 18 11:41:09 dimsserver kernel: Recovery code awake
Nov 18 11:41:09 dimsserver kernel: scsi0: Bus Device Reset on A:1. 2 SCBs aborted
Nov 18 11:41:09 dimsserver kernel: scsi0: Device reset returning 0x2002
Nov 18 11:41:09 dimsserver kernel: (scsi0:A:1): 31.250MB/s transfers (15.625MHz, 16bit)
Nov 18 11:41:09 dimsserver kernel: SCSI error : <0 0 1 0> return code = 0x6000000
Nov 18 11:41:09 dimsserver kernel: end_request: I/O error, dev sda, sector 120
|
That is the tail end of the message with the ending messages. From the begining of the quote to the "Dump Card State Ends" message repeats scores of times.
The same thing happens if I try and fdisk the device. It will hang for 10 mins spewing to the log file then finally exit fdisk.
The device does get set up as /dev/sda
I am booting from /dev/sdb which is on an ICH6 SATA controller using the PIIX drivers.
my lspci:
Quote: | 0000:00:00.0 Host bridge: Intel Corp. 915G/P/GV Processor to I/O Controller (rev 04)
0000:00:02.0 VGA compatible controller: Intel Corp. 82915G Express Chipset Family Graphics Controller (rev 04)
0000:00:02.1 Display controller: Intel Corp. 82915G Express Chipset Family Graphics Controller (rev 04)
0000:00:1b.0 Class 0403: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
0000:00:1c.0 PCI bridge: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
0000:00:1c.1 PCI bridge: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
0000:00:1d.0 USB Controller: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
0000:00:1d.2 USB Controller: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
0000:00:1d.3 USB Controller: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
0000:00:1d.7 USB Controller: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev d3)
0000:00:1f.0 ISA bridge: Intel Corp. 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)
0000:00:1f.1 IDE interface: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
0000:00:1f.2 IDE interface: Intel Corp. 82801FR/FRW (ICH6R/ICH6RW) SATA Controller (rev 03)
0000:00:1f.3 SMBus: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
0000:01:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
0000:01:04.0 Unknown mass storage controller: Integrated Technology Express, Inc. IT/ITE8212 Dual channel ATA RAID controller (PCI version seems to be IT8212, embedded seems (rev 13)
0000:01:09.0 SCSI storage controller: Adaptec ASC-29320A U320 (rev 10)
0000:02:00.0 Ethernet controller: Marvell Technology Group Ltd. Gigabit Ethernet Controller (rev 15)
|
The dmesg is overflowed by the scsi spew at the top. It adds one line to the report:
Quote: | Buffer I/O error on device sda, logical block 15 |
I appreciate ANY help anyone may provide. |
|
Back to top |
|
|
fpujol n00b
Joined: 26 Aug 2005 Posts: 2
|
Posted: Mon Aug 29, 2005 10:05 am Post subject: scsi rejecting I/O offline |
|
|
I have the same problem with adaptec 2932A. The scsi goes offline and I don't understand why.
A friend tell me that it's possible for the ACPI but I desactivate it and I have the same problem.
I'm working with the kernel 2.6.12-r9. |
|
Back to top |
|
|
hamletmun Tux's lil' helper
Joined: 13 Jun 2002 Posts: 111 Location: Buenos Aires, Argentina
|
Posted: Sat Dec 10, 2005 4:09 am Post subject: Me too |
|
|
Same problem here with Adaptec 29160 with gentoo-sources-2.6.14-r2 & 2.6.14-r4
So I'm still using gentoo-sources-2.6.13-r5 and no problem at all |
|
Back to top |
|
|
hamletmun Tux's lil' helper
Joined: 13 Jun 2002 Posts: 111 Location: Buenos Aires, Argentina
|
Posted: Mon Jan 23, 2006 1:24 am Post subject: The problem still remains... |
|
|
Today I tried to update my kernel source to gentoo-sources-2.6.15-r1
But same SCSI problem occured.
The last kernel I can use without problem is gentoo-sources-2.6.13-r5 as I mentioned above.
the aic7xxx driver that this kernel has is 6.2.36, the new kernel 2.6.15-r1 has the version 7.
When I compile the new kernel, I get a message "aic7xxx_osm ahc_linux_register_host"
I don't know if this information is relevant or not. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|