CD Writer writes without errors only when boot drive is IDE, why?

John Park park at hal9000.ul.bawue.de
Mon Jun 29 13:36:13 PDT 1998


Hi,

Sorry for the reposting but 2 people suggested that it would make
finding the solution much easier if I added more info for my setup.
They are now at the end.

I have an Adaptec 2940UW running under Linux 2.0.34 with version 5.0.19 of the
aic7xxx driver. I installed Linux on the IDE drive originally but subsequently
on my SCSI drives.  The systems are nearly identical (I reinstalled everything)
with the obvious exception of fstab, etc., but when I try to write a CD, it
inevitably fails partway through (scsi getcmd or some such error) if I boot from
the scsi drive sda1 as root, and sda2 as usr, etc. Otherwise, everything 
(including reading CDs from the CD writer) works. 

If I boot with hda1 (IDE drive) as root (and hda2 as usr, etc.) writing a CD 
*never* fails, even at full speed (2x). In both cases, the CD image is on 
sdb3 (!), so, in principle, writing from one scsi drive to another works. I 
did everything suggested in the xcdroast docs (reducing transfer rate, write 
rate, etc.) to no avail.

Any ideas?

jp

SCSI setup: Two SCSI disks, one on the 50 pin internal interface, other on the 68 pin
internal interface. 50 pin cable is actively terminated; 68 pin drive is the only (and 
last) drive on the 68 pin cable. CD writer is on the 50 pin cable. To write CDs, I use
cdrecord (part of xcdroast). Enable disconnect is on for all devices.

more /proc/scsi/aic7xxx/0 :

Adaptec AIC7xxx driver version: 5.0.19/3.2.4
Compile Options:
  AIC7XXX_RESET_DELAY    : 5
  AIC7XXX_TAGGED_QUEUEING: Adapter Support Enabled
                             Check below to see which
                             devices use tagged queueing
  AIC7XXX_PAGE_ENABLE    : Enabled (This is no longer an option)
  AIC7XXX_PROC_STATS     : Disabled

Adapter Configuration:
           SCSI Adapter: Adaptec AHA-294X Ultra SCSI host adapter
                           Ultra Wide Controller
    PCI MMAPed I/O Base: 0xe4000000
      Adaptec SCSI BIOS: Enabled
                    IRQ: 15
                   SCBs: Active 0, Max Active 1,
                         Allocated 30, HW 16, Page 255
             Interrupts: 532
      BIOS Control Word: 0x18a6
   Adapter Control Word: 0x005f
   Extended Translation: Enabled
Disconnect Enable Flags: 0xffff
     Ultra Enable Flags: 0xfffe
 Tag Queue Enable Flags: 0x0000
Ordered Queue Tag Flags: 0x0000
Default Tag Queue Depth: 8
    Tagged Queue By Device array for aic7xxx host instance 0:
      {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
    Actual queue depth per device for aic7xxx host instance 0:
      {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} 

more /var/log/messages :

Jun 28 19:37:08 hal9000 kernel: aic7xxx: Warning - detected auto-termination on controller:
Jun 28 19:37:08 hal9000 kernel: aic7xxx: <Adaptec AHA-294X Ultra SCSI host adapter> at PCI 9/0
Jun 28 19:37:08 hal9000 kernel: aic7xxx: Please verify driver detected settings are correct.
Jun 28 19:37:08 hal9000 kernel: aic7xxx: If not, then please properly set the device termination
Jun 28 19:37:08 hal9000 kernel: aic7xxx: in the Adaptec SCSI BIOS by hitting CTRL-A when prompted
Jun 28 19:37:08 hal9000 kernel: aic7xxx: during machine bootup.
Jun 28 19:37:08 hal9000 kernel: aic7xxx: Cables present (Int-50 YES, Int-68 NO, Ext-68 NO)
Jun 28 19:37:08 hal9000 kernel: aic7xxx: Termination (Low ON, High ON)
Jun 28 19:37:08 hal9000 kernel: (scsi0) <Adaptec AHA-294X Ultra SCSI host adapter> found at PCI 9/0
Jun 28 19:37:08 hal9000 kernel: (scsi0) Wide Channel, SCSI ID=7, 16/255 SCBs
Jun 28 19:37:08 hal9000 kernel: (scsi0) BIOS enabled, IO Port 0x6000, IRQ 15
Jun 28 19:37:08 hal9000 kernel: (scsi0) IO Memory at 0xe4000000, MMAP Memory at 0x4805000
Jun 28 19:37:08 hal9000 kernel: (scsi0) Resetting channel
Jun 28 19:37:08 hal9000 kernel: (scsi0) Downloading sequencer code... 413 instructions downloaded
Jun 28 19:37:08 hal9000 kernel: scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.0.19/3.2.4
Jun 28 19:37:08 hal9000 kernel:        <Adaptec AHA-294X Ultra SCSI host adapter>
Jun 28 19:37:08 hal9000 kernel: scsi : 1 host.
Jun 28 19:37:08 hal9000 kernel: (scsi0:0:-1:-1) Scanning channel for devices.
Jun 28 19:37:08 hal9000 kernel:   Vendor: QUANTUM   Model: LIGHTNING 365S    Rev: 241E
Jun 28 19:37:08 hal9000 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Jun 28 19:37:08 hal9000 kernel: Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Jun 28 19:37:08 hal9000 kernel: (scsi0:0:1:0) Using wide (16 bit) transfers.
Jun 28 19:37:08 hal9000 kernel: (scsi0:0:1:0) Synchronous at 20.0MHz, offset 8.
Jun 28 19:37:08 hal9000 kernel:   Vendor: COMPAQ    Model: 4345SS            Rev: C424
Jun 28 19:37:08 hal9000 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Jun 28 19:37:08 hal9000 kernel: Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
Jun 28 19:37:08 hal9000 kernel:   Vendor: SCSI-CD   Model: ReWritable-2x2x6  Rev: 1.00
Jun 28 19:37:08 hal9000 kernel:   Type:   CD-ROM                             ANSI SCSI revision: 02
Jun 28 19:37:08 hal9000 kernel: scsi : detected 2 SCSI disks total.
Jun 28 19:37:08 hal9000 kernel: (scsi0:0:0:0) Synchronous at 10.0MHz, offset 8.
Jun 28 19:37:08 hal9000 kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 715880 [349 MB] [0.3 GB]
Jun 28 19:37:08 hal9000 kernel: SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8386000 [4094 MB] [4.1 GB]
Jun 28 19:37:08 hal9000 kernel: Partition check:
Jun 28 19:37:08 hal9000 kernel:  sda: sda1 sda2 sda3
Jun 28 19:37:08 hal9000 kernel:  sdb: sdb1 < sdb5 sdb6 sdb7 > sdb2 sdb3

.... (stuff deleted) ...

Jun 28 19:37:08 hal9000 kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun 0
--
park at hal9000.ul.bawue.de John Park


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