ide-scsi and real scsi problem?

ide-scsi and real scsi problem?

Post by Russ Radk » Sat, 05 Jan 2002 14:57:22



I am trying to get an aopen 24x10x40 IDE CDRW to work in Linux, and am
having an interesting problem.  It works fine under windoze, but when I
try to access it in Linux (mount, cat, dd, cdrecord, etc.), the process
doesn't respond (not even to ^c), and the machine hangs about 15 seconds
later, requiring a HARD reboot.  I just removed a 2x2x4 SCSI cd burner
from this system (worked fine, but SLOW), so I know the problem is with
the way the new drive is being accessed, not with the burning software.

I'm running kernel 2.4.16

Here are my drive highlights:

hda: WD 2GB (windoze)
hdb: nothing
hdc: aopen 24x10x40 CDRW
hdd: nothing

SCSI0: Adaptec 2940UW
SCSI0,0: IBM 4GB (Linux)
SCSI0,1: Iomega ZIP
SCSI0,3: Toshiba CDROM

I have followed all the instructions in the CD-Writing HOWTO, with the
following highlights:

1.  I explicitly jumpered the drive to PIO-4 mode, and set its IDE
interface (secondary master) to PIO-4.

2.  I compiled my kernel with: IDE-ATAPI CDROM, SCSI emulation, SCSI,
SCSI CDROM, vendor specific SCSI, generic SCSI, and all the other
regular stuff... (I tried both modules and direct compiles)

3.  I call my kernel with the command line option hdc=ide-scsi.

Here are the pertinent lines from the ring buffer (dmesg):

Kernel command line: ro root=/dev/sda1 hdc=ide-scsi
ide_setup: hdc=ide-scsi
...
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
...
hdc: 24X10X40 CD-RW, ATAPI CD/DVD-ROM drive
...
SCSI subsystem driver Revision: 1.00
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.4
        <Adaptec 2940 Ultra SCSI adapter>
        aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

  Vendor: IBM       Model: DDRS-34560D       Rev: DC1B
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: IOMEGA    Model: ZIP 100           Rev: J.03
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: TOSHIBA   Model: CD-ROM XM-5701TA  Rev: 0167
  Type:   CD-ROM                             ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled.  Depth 253
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor:           Model: 24X10X40 CD-RW    Rev: 2.00
  Type:   CD-ROM                             ANSI SCSI revision: 02
...
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0
(scsi0:A:3): 10.000MB/s transfers (10.000MHz, offset 8)
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray

So I think all of that looks good?

Here's the output of "cdrecord -scanbus" before I have tried to mount a
CD in the CDRW drive:

Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling

Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) 'IBM     ' 'DDRS-34560D     ' 'DC1B' Disk
        0,1,0     1) 'IOMEGA  ' 'ZIP 100         ' 'J.03' Removable Disk

        0,2,0     2) *
        0,3,0     3) 'TOSHIBA ' 'CD-ROM XM-5701TA' '0167' Removable
CD-ROM
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) '        ' '24X10X40 CD-RW  ' '2.00' Removable
CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *

and here is the output of "cdrecord -scanbus" in the ~15 seconds between
when I have tried to access the CDRW and when the system locks up:

Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling

Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) 'IBM     ' 'DDRS-34560D     ' 'DC1B' Disk
        0,1,0     1) 'IOMEGA  ' 'ZIP 100         ' 'J.03' Removable Disk

        0,2,0     2) *
        0,3,0     3) 'TOSHIBA ' 'CD-ROM XM-5701TA' '0167' Removable
CD-ROM
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:

So it seems to die trying to access the emulated SCSI bus...

Does IDE-SCSI emulation not work with real SCSI?

Does anyone have any ideas?

Thanks,

Russ

 
 
 

1. 2.5.1-pre2 compile error in ide-scsi.o ide-scsi.c

You patch is reverted and I don't think it will cut it,
since I tries this myself and it didn't work out.

BTW>. Anybody out there who managed to make
SCSI gogin on 2.5.1-pre2... I only have PPA ZIP and
IDE-SCSI at my home machine, and both fail with a bad
pointer derefference...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Stop write to stderr

3. PROBLEM: 2.4.20 on ICH4 : ide-cdrom/ide-scsi problems reading cds

4. Anyone using Hypermail 1.02?

5. SCSI card and ide-scsi emulation: should they work together?

6. root passord expirating

7. SCSI controler and ide-scsi emulation

8. How to make a patch file

9. ide-scsi, 1394-sbp2 and usb-storage scsi host ids

10. : 2.5.48 SCSI Host - No Error Handling (ide-scsi)?

11. lk 2.5.3-pre3 drivers/scsi/ide-scsi typo

12. IDE & SCSI (IDE vs. SCSI)?

13. using ide-scsi & scsi devices