Re: 2.3.48, NCR53C81a and CD-ROM

From: Gerard Roudier (groudier@club-internet.fr)
Date: Tue Feb 29 2000 - 17:38:24 EST


The sym53c8xx driver now trusts the data transfer direction of SCSI
commands supplied by upper layers. If this information is wrong, this will
not work. (I will try to let the driver detect properly bad data phase in
some further driver version).

My-be, the application you are using sends an IOCTL_SEND_COMMAND to some
drivers and if a non zero input buffer length is provided direction is
assumed WRITE by scsi_ioctl.c, which is wrong for INQUIRY (just guessing).

You can revert previous sym53c8xx driver behaviour by manually changing
the following line in sym53c8xx.c:

-#ifdef SCSI_DATA_UNKNOWN
+#if 0

If hacking the driver this way fixes the problem, then either scsi_ioctl.c
or the `xmdc' program may have to be fixed.

Gérard.

On Tue, 29 Feb 2000, Lech Szychowski wrote:

> 2.3.48, SMP, AIC-7890, NCR 53c810a (using sym53c8xx driver),
> CD-ROMs Toshiba XM-3501TA and Toshiba XM-6201TA attached
> to 53c810a. Whenever I try to use xmdc to play an audio CD
> in XM-3501TA all I get is a lot of SCSI bus resets:
>
> Feb 28 21:10:26 lech kernel: scsi : aborting command due to timeout : pid 0, scsi1, channel 0, id 5, lun 0 Inquiry 00 00 00 24 00
> Feb 28 21:10:26 lech kernel: sym53c8xx_abort: pid=0 serial_number=163480 serial_number_at_timeout=163480
> Feb 28 21:10:27 lech kernel: SCSI host 1 abort (pid 0) timed out - resetting
> Feb 28 21:10:27 lech kernel: SCSI bus is being reset for host 1 channel 0.
> Feb 28 21:10:27 lech kernel: sym53c8xx_reset: pid=0 reset_flags=2 serial_number=163480 serial_number_at_timeout=163480
> Feb 28 21:10:39 lech kernel: SCSI host 1 abort (pid 0) timed out - resetting
> Feb 28 21:10:39 lech kernel: SCSI bus is being reset for host 1 channel 0.
> Feb 28 21:10:39 lech kernel: sym53c8xx_reset: pid=0 reset_flags=2 serial_number=163500 serial_number_at_timeout=163500
> Feb 28 21:10:51 lech kernel: SCSI host 1 abort (pid 0) timed out - resetting
> Feb 28 21:10:51 lech kernel: SCSI bus is being reset for host 1 channel 0.
> Feb 28 21:10:51 lech kernel: sym53c8xx_reset: pid=0 reset_flags=2 serial_number=163521 serial_number_at_timeout=163521
> Feb 28 21:11:03 lech kernel: SCSI host 1 abort (pid 0) timed out - resetting
> Feb 28 21:11:03 lech kernel: SCSI bus is being reset for host 1 channel 0.
> Feb 28 21:11:03 lech kernel: sym53c8xx_reset: pid=0 reset_flags=2 serial_number=163580 serial_number_at_timeout=163580
>
> With 2.3.48pre2 there's no resets but xmcd keeps saying "cd busy"
> and never plays a sound.
> With 2.3.47pre3 all seems to work fine. 2.3.49pre1 - just like 2.3.48.
>
> --
> Leszek.
>
> -- lech7@pse.pl 2:480/33.7 -- REAL programmers use INTEGERS --
> -- speaking just for myself...

-
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 : Tue Feb 29 2000 - 21:00:23 EST