aic7xxx thinks that my tape drive is a disk

Doug Palmer dougal at acm.org
Wed Nov 10 16:17:18 PST 1999


I have a AHA2940U2W card with a Seagate disk attached to the Ultra-LVD bus 
(id 0) and a WangDAT 3200 to the Ultra/Fast-SE bus (id 2). On boot, the aic7xxx 
driver detects the disk drive twice - one at each id - and then gets somewhat 
confused by the tape drive not responding to perfectly reasonable disk drive commands.
The SCSI BIOS detects the tape drive correctly.

Has anyone seen this before? Any suggestions? I'm getting close to my wits end
with this.

Technical details:

kernel: 2.2.12-20 (SMP, compiled with scsi, st, aic7xxx in the  kernel, rather than as 
        modules. No multiple LUNS)
aic7xxx: 5.1.20
Adaptor: AHA2940U2W (ROM v2.20)
   Both terminations are set to auto at the moment.
   On the Ultra-LVD bus, setting termination to 'disable' causes no device errors during the
   BIOS scan, setting it to 'enable' causes timeouts during boot.
   On the Ultra/Fast-SE bus, changing termination seesm to have no effect, apart from
   high-off/low-off which causes the BIOS to pack in.
   The 'negotiate wide' for id 2 is set off, otherwise the boot times out.
   The sync rate for id 2 is set to 5Mb/s

An extract from the messages log:

Nov  8 13:01:16 janus kernel: (scsi0) <Adaptec AHA-294X Ultra2 SCSI host adapter> found at PCI 9/0
Nov  8 13:01:16 janus kernel: (scsi0) Wide Channel, SCSI ID=7, 32/255 SCBs
Nov  8 13:01:16 janus kernel: (scsi0) Downloading sequencer code... 374 instructions downloaded
Nov  8 13:01:16 janus kernel: scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.20/3.2.4
Nov  8 13:01:16 janus kernel:        <Adaptec AHA-294X Ultra2 SCSI host adapter>
Nov  8 13:01:16 janus kernel: scsi : 1 host.
Nov  8 13:01:16 janus kernel: (scsi0:0:0:0) Synchronous at 80.0 Mbyte/sec, offset 15.
Nov  8 13:01:16 janus kernel:   Vendor: SEAGATE   Model: ST39175LW         Rev: 0001
Nov  8 13:01:16 janus kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov  8 13:01:16 janus kernel: Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Nov  8 13:01:16 janus kernel: (scsi0:0:2:0) Using asynchronous transfers.
Nov  8 13:01:16 janus kernel:   Vendor: SEAGATE   Model: ST39175LW         Rev: 0001
Nov  8 13:01:16 janus kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov  8 13:01:16 janus kernel: Detected scsi disk sdb at scsi0, channel 0, id 2, lun 0
Nov  8 13:01:16 janus kernel: scsi : detected 2 SCSI disks total.
Nov  8 13:01:16 janus kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB]
Nov  8 13:01:16 janus kernel: (scsi0:0:2:0) Device is refusing tagged commands, using untagged I/O.
Nov  8 13:01:16 janus kernel: scsi0 channel 0 : resetting for second half of retries.
Nov  8 13:01:16 janus kernel: SCSI bus is being reset for host 0 channel 0.
Nov  8 13:01:16 janus kernel: sdb : sector size 0 reported, assuming 512.
Nov  8 13:01:16 janus kernel: SCSI device sdb: hdwr sector= 512 bytes. Sectors= 1 [0 MB] [0.0 GB]
Nov  8 13:01:16 janus kernel: Partition check:
Nov  8 13:01:16 janus kernel:  sda:<6>(scsi0:0:0:0) Synchronous at 80.0 Mbyte/sec, offset 15.
Nov  8 13:01:16 janus kernel:  sda1 sda2 sda3 sda4 < sda5 sda6 sda7 >
Nov  8 13:01:16 janus kernel:  sdb:scsidisk I/O error: dev 08:10, sector 0
Nov  8 13:01:16 janus kernel:  unable to read partition table


cat /proc/scsi/scsi gives

Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: SEAGATE  Model: ST39175LW        Rev: 0001
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: SEAGATE  Model: ST39175LW        Rev: 0001
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: E-IDE    Model: CD-ROM 48X/AKU   Rev: T30 
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: RICOH    Model: CD-R/RW RW7040A  Rev: 1.1k
  Type:   CD-ROM                           ANSI SCSI revision: 02
 
cat /proc/scsi/aic7xxx/0 gives


Adapter Configuration:
           SCSI Adapter: Adaptec AHA-294X Ultra2 SCSI host adapter
                           Ultra-2 LVD/SE Wide Controller
    PCI MMAPed I/O Base: 0xea100000
 Adapter SEEPROM Config: SEEPROM found and used.
      Adaptec SCSI BIOS: Enabled
                    IRQ: 17
                   SCBs: Active 0, Max Active 8,
                         Allocated 30, HW 32, Page 255
             Interrupts: 6351
      BIOS Control Word: 0x18a6
   Adapter Control Word: 0x1c5d
   Extended Translation: Enabled
Disconnect Enable Flags: 0xffff
     Ultra Enable Flags: 0x0000
 Tag Queue Enable Flags: 0x0001
Ordered Queue Tag Flags: 0x0001
Default Tag Queue Depth: 8
    Tagged Queue By Device array for aic7xxx host instance 0:
      {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
    Actual queue depth per device for aic7xxx host instance 0:
      {8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}

Statistics:

(scsi0:0:0:0)
  Device using Wide/Sync transfers at 80.0 MByte/sec, offset 15
  Transinfo settings: current(10/15/1/0), goal(10/127/1/0), user(10/127/1/0)
  Total transfers 6194 (4728 reads and 1466 writes)
             < 2K      2K+     4K+     8K+    16K+    32K+    64K+   128K+
   Reads:    2177     189    1064     440     279     178     401       0
  Writes:     451     169     762      74      10       0       0       0


(scsi0:0:2:0)
  Device using Narrow/Async transfers.
  Transinfo settings: current(12/0/0/0), goal(0/0/0/0), user(11/127/0/0)
  Total transfers 1 (1 reads and 0 writes)
             < 2K      2K+     4K+     8K+    16K+    32K+    64K+   128K+
   Reads:       1       0       0       0       0       0       0       0
  Writes:       0       0       0       0       0       0       0       0

                 


-- 
Doug Palmer   TARMS
WWW: http://users.orac.net.au/~doug
mail: doug at tarms.com, dougal at acm.org


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