public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: James Bottomley <James.Bottomley@SteelEye.com>,
	willy@debian.org, SCSI Mailing List <linux-scsi@vger.kernel.org>,
	Anton Blanchard <anton@samba.org>
Subject: Re: [PATCH] fix sym2 negotiation
Date: Wed, 25 Aug 2004 11:25:41 +0200	[thread overview]
Message-ID: <20040825092541.GA15466@suse.de> (raw)
In-Reply-To: <20040825065747.GA2275@us.ibm.com>

 On Tue, Aug 24, Mike Anderson wrote:

> Olaf Hering [olh@suse.de] wrote:
> >  On Tue, Aug 24, Mike Anderson wrote:
> > 
> > > I would guess this cdrom is behind a ACARD. We have had issues in
> > > the past with negotiation / interaction between the ACARD and the sym. 
> > 
> > Oh, that would be possible. I will look through our patches and find the
> > one that adds an insane delay. Maybe it helps.
> > 
> 
> Yes increasing scsi_inq_timeout to 27 seconds makes the messages go away
> on my system. Prior to increasing the timeout I bk pulled scsi-misc-2.6
> and received the same ABORT recovery sequence you did.

This patch fixed it. I'm sure this was already discussed on to dead, we
hit this bug initally one year ago with 2.4.21.


....

garloff@suse.de

Workaround

This broken chip seems to be so popular on PPC64 that the arch maintainers
want a PPC64 specific default. Oh well ...

diff -uNrp linux-2.6.5.inq_timeout/drivers/scsi/scsi_scan.c linux-2.6.5.inq_timeout.ppc64/drivers/scsi/scsi_scan.c
--- linux-2.6.5.inq_timeout/drivers/scsi/scsi_scan.c    2004-04-21 14:32:04.000000000 +0200
+++ linux-2.6.5.inq_timeout.ppc64/drivers/scsi/scsi_scan.c      2004-04-21 14:44:05.000000000 +0200
@@ -94,7 +94,17 @@ MODULE_PARM_DESC(max_report_luns,
                 "REPORT LUNS maximum number of LUNS received (should be"
                 " between 1 and 16384)");
 
+/* Some AChip ARC765 based DVD-ROM's take 15 or more seconds
+ * to reset.  A scan will fail if made right after a reset.
+ * It's completely broken device behaviour: SCSI specification
+ * says devices need to be able to respond to INQUIRY always
+ * (after a selection timeout ... of 250ms).
+ */
+#ifdef __powerpc64__
+static unsigned int scsi_inq_timeout = SCSI_TIMEOUT/HZ+25;
+#else
 static unsigned int scsi_inq_timeout = SCSI_TIMEOUT/HZ+3;
+#endif
 
 module_param_named(inq_timeout, scsi_inq_timeout, int, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(inq_timeout, 



-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2004-08-25  9:25 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-21 18:37 [PATCH] fix sym2 negotiation James Bottomley
2004-08-22 17:32 ` Matthias Andree
2004-08-22 18:03   ` James Bottomley
2004-08-24 13:29 ` Olaf Hering
2004-08-24 20:39   ` Mike Anderson
2004-08-24 20:48     ` Vladimir G. Ivanovic
2004-08-24 20:50       ` Matthew Wilcox
2004-08-24 21:39         ` Vladimir G. Ivanovic
2004-08-24 22:12           ` Matthew Wilcox
2004-08-25  0:48             ` Vladimir G. Ivanovic
2004-08-24 20:51     ` Olaf Hering
2004-08-25  6:57       ` Mike Anderson
2004-08-25  9:25         ` Olaf Hering [this message]
2004-08-25 11:58           ` Matthew Wilcox
2004-08-25 12:09             ` Olaf Hering
2004-08-25 12:11             ` Anton Blanchard
2004-08-25 13:43               ` Doug Maxey
2004-08-25 13:23             ` James Bottomley
2004-08-25 19:13               ` Mike Anderson
2004-08-27 16:54 ` Kai Makisara

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=20040825092541.GA15466@suse.de \
    --to=olh@suse.de \
    --cc=James.Bottomley@SteelEye.com \
    --cc=anton@samba.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=willy@debian.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