Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2003 15:55:57 +0900 (KST)
From:      CHOI Junho <cjh@kr.freebsd.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   i386/52668: AIC7902 problem when large data transferring
Message-ID:  <200305250655.h4P6tvLl062713@gradius.wdb.co.kr>
Resent-Message-ID: <200305250700.h4P70Wrv021089@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         52668
>Category:       i386
>Synopsis:       AIC7902 problem when large data transferring
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 25 00:00:31 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     CHOI Junho
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Web Data Bank
>Environment:
FreeBSD k10000.wdb.co.kr 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Fri May 23 17:35:53 KST 2003     root@www.wdb.co.kr:/src/sys/compile/DOWNLOAD-HTT  i386

 - Intel SR2300 Server platform
 http://www.intel.com/cd/channel/reseller/asmo-na/eng/products/box_server_products/server_chassis/ser_chassis_sr2300/index.htm

ahd0: <Adaptec AIC7902 Ultra320 SCSI adapter> port 0x4000-0x40ff,0x3800-0x38ff mem 0xfe8f0000-0xfe8f1fff irq 18 at device 7.0 on pci4
aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
ahd1: <Adaptec AIC7902 Ultra320 SCSI adapter> port 0x3400-0x34ff,0x3000-0x30ff mem 0xfe9f0000-0xfe9f1fff irq 19 at device 7.1 on pci4
aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
da1 at ahd1 bus 0 target 3 lun 0
da1: <FUJITSU MAP3367NC 0105> Fixed Direct Access SCSI-3 device
da1: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing Enabled
da1: 35046MB (71775284 512 byte sectors: 255H 63S/T 4467C)
da0 at ahd1 bus 0 target 0 lun 0
da0: <SEAGATE ST336607LC 0004> Fixed Direct Access SCSI-3 device
da0: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 35003MB (71687372 512 byte sectors: 255H 63S/T 4462C)

>Description:

When large and long transfering between ahd device, it hangs with the
following message:

(da1:ahd1:0:3:0): SCB 0x34 - timed out
>How-To-Repeat:

/home -> 30G partition in da0
/home2 -> 30G partition in da1

cp -r /home /home2
(or tar, rsync, etc...)

>Fix:

I don't know how to fix. As a workaround, I disabled tagged queueing
(found somewhere in freebsd-scsi mailing list) and copying can be done.

# camcontrol negotiate da0 negotiate -T disabled
# camcontrol negotiate da1 negotiate -T disabled
>Release-Note:
>Audit-Trail:
>Unformatted:
 >>>>>>>>>>>>>>>>>> Dump Card State Begins <<<<<<<<<<<<<<<<<
 ahd1: Dumping Card State at program address 0x1a4 Mode 0x0
 Card was paused
 HS_MAILBOX[0x0] INTCTL[0x80] SEQINTSTAT[0x0] SAVED_MODE[0x11]
 DFFSTAT[0x30] SCSISIGI[0x0] SCSIPHASE[0x0] SCSIBUS[0x0]
 LASTPHASE[0xa0] SCSISEQ0[0x0] SCSISEQ1[0x12] SEQCTL0[0x10]
 SEQINTCTL[0x0] SEQ_FLAGS[0x0] SEQ_FLAGS2[0x0] SSTAT0[0x0]
 SSTAT1[0x8] SSTAT2[0x0] SSTAT3[0x0] PERRDIAG[0x8]
 SIMODE1[0xa4] LQISTAT0[0x0] LQISTAT1[0x0] LQISTAT2[0x0]
 LQOSTAT0[0x0] LQOSTAT1[0x0] LQOSTAT2[0x1]
 
 SCB Count = 128 CMDS_PENDING = 1 LASTSCB 0x34 CURRSCB 0x34 NEXTSCB 0xff40
 qinstart = 7321 qinfifonext = 7323
 QINFIFO: 0x2e 0x66
 WAITING_TID_QUEUES:
 Pending list:
 102 SCB_CONTROL[0x68] SCB_SCSIID[0x37] SCB_TAG[0x66]
  46 SCB_CONTROL[0x68] SCB_SCSIID[0x37] SCB_TAG[0x2e]
   52 SCB_CONTROL[0x60] SCB_SCSIID[0x37] SCB_TAG[0x34]
   Total 3
   Kernel Free SCB list: 39 19 104 61 29 127 27 92 37 23 4 76 24 81 2 72 99 22 21 42 91 88 109 106 110 65 62 93 56 108 12 55 97 66 9 40 43 28 11 73 38 86 101 3 10 45 34 79 84 49 96 6 30 47 8 111 94 5 0 74 71 100 36 98 14 53 35 26 85 18 89 13 7 25 68 64 15  77 95 70 80 105 103 44 67 82 107 69 33 60 51 48 16 1 83 87 20 75 17 41 50 32 78 31 90 57 54 58 59 63 126 112 113 114 115 116 117 118 119 120 121 122 123 124 125
   Sequencer Complete DMA-inprog list:
   Sequencer Complete list:
   Sequencer DMA-Up and Complete list:
 
   ahd1: FIFO0 Free, LONGJMP == 0x8255, SCB 0x34, LJSCB 0x34
   SEQIMODE[0x3f] SEQINTSRC[0x0] DFCNTRL[0x0] DFSTATUS[0x89]
   SG_CACHE_SHADOW[0x2] SG_STATE[0x0] DFFSXFRCTL[0x0]
   SOFFCNT[0x0] MDFFSTAT[0x5] SHADDR = 0x00, SHCNT = 0x0
   HADDR = 0x00, HCNT = 0x0 CCSGCTL[0x10]
   ahd1: FIFO1 Free, LONGJMP == 0x8055, SCB 0x2e, LJSCB 0xff00
   SEQIMODE[0x3f] SEQINTSRC[0x0] DFCNTRL[0x0] DFSTATUS[0x89]
   SG_CACHE_SHADOW[0x2] SG_STATE[0x0] DFFSXFRCTL[0x0]
   SOFFCNT[0x0] MDFFSTAT[0x5] SHADDR = 0x00, SHCNT = 0x0
   HADDR = 0x00, HCNT = 0x0 CCSGCTL[0x10]
   LQIN: 0x4 0x0 0x0 0x34 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x0 0x2 0x0
   ahd1: LQISTATE = 0x0, LQOSTATE = 0x0, OPTIONMODE = 0x42
   ahd1: OS_SPACE_CNT = 0x20 MAXCMDCNT = 0x1
   SIMODE0[0xc]
   CCSCBCTL[0x4]
   ahd1: REG0 == 0x8f00, SINDEX = 0x1e0, DINDEX = 0xe1
   ahd1: SCBPTR == 0x34, SCB_NEXT == 0xffc0, SCB_NEXT2 == 0xff9a
   CDB a8 f 0 0 8 e
   STACK: 0x120 0x2a 0xf 0x120 0x120 0x0 0x255 0x255
   >>>>>>>>>>>>>>>>>
   Copied 18 bytes of sense data offset 12: 0x70 0x0 0x6 0x0 0x0 0x0 0x0 0xa 0x0 0x0 0x0 0x0 0x29 0x2 0x2 0x0 0x0 0x0
   Copied 32 bytes of sense data offset 12: 0x70 0x0 0x6 0x0 0x0 0x0 0x0 0x28 0x0 0x0 0x0 0x0 0x29 0x2 0x0 0x0 0x0 0x0 0x3 0x28 0x0 0x1 0x5 0xa 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
 
 


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