test2 & ide-scsi & DMA

From: Klaus Kudielka (klaus.kudielka@ieee.org)
Date: Sat Jun 24 2000 - 05:58:15 EST


Hello,

ide-scsi still times out at the very first command when DMA is enabled.
ide-scsi with PIO works ok, so does ide-cd (PIO and DMA).
Hardware is ALi M1543C and Sony CD-RW CRX140E.

With the following patch, ide-scsi also works with DMA enabled (both read and
write):

--- ide-scsi.c.ORIG Sat Jun 24 09:45:03 2000
+++ ide-scsi.c Sat Jun 24 10:11:39 2000
@@ -436,7 +436,6 @@
         OUT_BYTE (dma_ok,IDE_FEATURE_REG);
         OUT_BYTE (bcount >> 8,IDE_BCOUNTH_REG);
         OUT_BYTE (bcount & 0xff,IDE_BCOUNTL_REG);
- OUT_BYTE (drive->select.all,IDE_SELECT_REG);
 
         if (dma_ok) {
                 set_bit (PC_DMA_IN_PROGRESS, &pc->flags);

I have no idea whether this is the right thing - I only compared
ide-cd.c and ide-scsi.c.

BTW, these were the kernel messages with the original ide-scsi:

***
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
  Vendor: SONY Model: CD-RW CRX140E Rev: 1.0n
  Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
VFS: Disk change detected on device sr(11,0)
scsi : aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0x28 00 00 00 00 00 00 00 20 00
hdc: timeout waiting for DMA
ide_dmaproc: chipset supported ide_dma_timeout func only: 14
hdc: irq timeout: status=0x7f { DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index Error }
hdc: irq timeout: error=0x7f
hdc: DMA disabled
scsi : aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0x28 00 00 00 00 20 00 00 20 00
hdc: ATAPI reset complete
hdc: irq timeout: status=0x80 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0x80 { Busy }
scsi0 channel 0 : resetting for second half of retries.
SCSI bus is being reset for host 0 channel 0.
hdc: irq timeout: status=0xd0 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0x80 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0x80 { Busy }
Device b00 not ready.
 I/O error: dev 0b:00, sector 0
Device b00 not ready.
 I/O error: dev 0b:00, sector 128
***

-Klaus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:04 EST