From: James Bottomley <James.Bottomley@SteelEye.com>
To: "Moore, Eric" <Eric.Moore@lsi.com>
Cc: Doug Chapman <doug.chapman@hp.com>, linux-scsi@vger.kernel.org
Subject: RE: [PATCH] fix for BZ 8426 - massive slowdown on SCSI CD/DVDdrive connected to mptspi driver
Date: Tue, 29 May 2007 17:02:32 -0500 [thread overview]
Message-ID: <1180476152.3700.91.camel@mulgrave.il.steeleye.com> (raw)
In-Reply-To: <664A4EBB07F29743873A87CF62C26D70787EAA@NAMAIL4.ad.lsil.com>
On Tue, 2007-05-29 at 15:40 -0600, Moore, Eric wrote:
> On Tuesday, May 22, 2007 3:27 PM, James Bottomley wrote:
>
> > On Tue, 2007-05-22 at 14:25 -0600, Doug Chapman wrote:
> > > Eric,
> > >
> > > Sorry to bother you on this again, I realize you are very busy.
> > >
> > > >From our off-list email and from your comments to Chip Coldwell in
> > > redhat BZ 225177 it sounded like you were prepared to ACK this. Any
> > > chance you could send your official ACK so this can be committed?
> > >
> > > much appreciated,
> >
> > Actually I'd like a little analysis of why first, please Eric.
> >
> > It seems to me, with the current wrong ordering in the initialisation
> > results in a large queue depth being given to the DVD (which are
> > habitually very low queue depth ... or even untagged beasts). So does
> > the slowdown result from the fusion accepting N commands for
> > the DVD and
> > then rejecting N-1 of them resulting in ping pong between the
> > mid-layer
> > and driver?
> >
> > If so, we probably want to fix the command throttling in the driver.
> >
>
> James - Sorry, for delay, somehow I missed this email.
>
> I approve the patch that was submitted by Doug Chapman. Here is the
> reasoning: The DVD device that Doug is using is either a SCSI_1
> device, or it doesn't support Q-tags. The problem is the driver is
> setting the Queue depth to 32, when it should of been 1. With the
> queue depth set larger than one, this device doesn't work properly.
The device is presumably returning BUSY when you try to send a second
command when it's already processing the first ... that should be
propagated back to the mid-layer causing it to throttle the queue ... it
seems this wasn't happening for some reason to get such a massive
slowdown. Is this a more generic problem in the fusion or is it a
simple issue only affecting the untagged case?
> This bug came about when I reorganized some spi functions by moving them
> from mptscsih.c over to mptspi.c. When I did that, there were some
> flags not set correctly in mptscsih_change_queue_depth. The function
> that sets these flags is mptspi_setTargetNegoParms. Prior to
> reorganizing the code, I was calling mptscsi_setTargetNegoParms before I
> set the queue depth, the current code does it after. If you accept
> this patch, then it sets the flags properly.
James
next prev parent reply other threads:[~2007-05-29 22:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-07 19:59 [PATCH] fix for BZ 8426 - massive slowdown on SCSI CD/DVD drive connected to mptspi driver Doug Chapman
2007-05-10 13:30 ` Doug Chapman
2007-05-22 20:25 ` Doug Chapman
2007-05-22 21:27 ` James Bottomley
2007-05-29 21:40 ` [PATCH] fix for BZ 8426 - massive slowdown on SCSI CD/DVDdrive " Moore, Eric
2007-05-29 22:02 ` James Bottomley [this message]
2007-05-29 22:46 ` [PATCH] fix for BZ 8426 - massive slowdown on SCSI CD/DVDdriveconnected " Moore, Eric
2007-05-31 15:40 ` Moore, Eric
2007-05-31 16:14 ` James Bottomley
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=1180476152.3700.91.camel@mulgrave.il.steeleye.com \
--to=james.bottomley@steeleye.com \
--cc=Eric.Moore@lsi.com \
--cc=doug.chapman@hp.com \
--cc=linux-scsi@vger.kernel.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