From: linas@austin.ibm.com
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-kernel@vger.kernel.org, linuxppc64-dev@lists.linuxppc.org
Subject: Re: [2.4 PATCH:] Lengthen SCSI timeouts to deal with broken hardware
Date: Tue, 30 Sep 2003 13:12:56 -0500 [thread overview]
Message-ID: <20030930131256.A24532@forte.austin.ibm.com> (raw)
In-Reply-To: <20030930171619.GA22314@gtf.org>; from jgarzik@pobox.com on Tue, Sep 30, 2003 at 01:16:19PM -0400
On Tue, Sep 30, 2003 at 01:16:19PM -0400, Jeff Garzik wrote:
> On Tue, Sep 30, 2003 at 12:09:44PM -0500, linas@austin.ibm.com 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.
Hi Jeff,
Easier said than done. I could add a new bit to the device blacklist that
covers timeouts. However, one of the timeouts pops during the scsi
inquiry, before we've even identified the device type.
Let me review the changes to make this patch device-dependent:
-- add a new bitfield to the blacklist (in scsi_scan.c) for timeouts
-- add new fields to struct scsi_device that hold timeout values
-- make changes in various places to use the timeout value that
was stored in Scsi_Device, including, possibly, no longer passing
the timeout as a subroutine arg.
This would be a consderably larger, possibly controversial patch.
I suppose I can do it if that's what is needed, but I thought I'd opt
for the minimal, 'tactical' first, dirty as it is.
My goal is to get the fix in there, and make everybody happy in the
process. How should I proceed?
--linas
prev parent reply other threads:[~2003-09-30 18:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-30 17:09 linas
2003-09-30 17:16 ` Jeff Garzik
2003-09-30 18:12 ` linas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030930131256.A24532@forte.austin.ibm.com \
--to=linas@austin.ibm.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc64-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®