Re: [2.4 PATCH:] Lengthen SCSI timeouts to deal with broken hardware

From: Jeff Garzik
Date: Tue Sep 30 2003 - 12:21:55 EST


On Tue, Sep 30, 2003 at 12:09:44PM -0500, linas@xxxxxxxxxxxxxx wrote:
>
>
> --- drivers/scsi/scsi_obsolete.c.orig 2003-09-29 17:47:26.000000000 -0500
> +++ drivers/scsi/scsi_obsolete.c 2003-09-29 17:51:40.000000000 -0500
> @@ -118,10 +118,19 @@ static void scsi_dump_status(void);
> #define ABORT_TIMEOUT SCSI_TIMEOUT
> #define RESET_TIMEOUT SCSI_TIMEOUT
> #else
> +#if defined(__powerpc64__)
> +/* Some Achip ARC765-based DVD-ROM's can take 15 seconds or more to reset.
> + * All commands (sense, abort) will not get a response until the reset
> + * completes. Lengthen timeouts to make up for this. */
> +#define SENSE_TIMEOUT (20*HZ)
> +#define RESET_TIMEOUT (2*HZ)
> +#define ABORT_TIMEOUT (25*HZ)

This should be device-dependent, not platform-dependent.

Jeff



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