From: linas@austin.ibm.com (Linas Vepstas)
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [RFT] hpt366: reset DMA state machine on timeouts
Date: Fri, 22 Jun 2007 11:36:47 -0500 [thread overview]
Message-ID: <20070622163646.GG8840@austin.ibm.com> (raw)
In-Reply-To: <467BEB9C.1070407@ru.mvista.com>
On Fri, Jun 22, 2007 at 07:32:44PM +0400, Sergei Shtylyov wrote:
>
> >>Reset HPT36x's DMA state machine on a DMA timeout the way it's done for
> >>HPT370.
> >>drivers/ide/pci/hpt366.c | 24 +++++++++++++++++++++++-
>
> >This worked great!
>
> I hope you meant those messages were preceeded by DMA timeouts
> (otherwise this code wouldn't come into action).
Oops, I was wrong ...
Scads of
Jun 21 20:22:30 localhost kernel: [ 434.574301] hdc: task_out_intr:
status=0x50 { DriveReady SeekComplete }
Jun 21 20:22:30 localhost kernel: [ 434.574318] ide: failed opcode was:
unknown
> >from it (I put in a printk to verify this).
>
> You mean into my ide_dma_timeout() method?
Ooops, I lied. I have so many printk's in there, that I got confused.
No, in fact, it looks like I did NOT see your handler run.
Per Alan Cox, I have to go back and see if dropping the
UDMA speeds and/or replacing the cable will help.
> What's strange is that it never seemed to be necessary before your great
> new drive... ;-)
At $70 for 320GB, how can one say "no"? Frye's had a mound of them,
shoulder-high.
MAXTOR STM3320620A
> So, providing its data certainly wouldn't hurt -- perhaps we just should
> blacklist it instead -- maybe there's a UDMA speed at which this wouldn't
> happen, and we could just limit the drive to it.
I'll experiment with the UDMA settings.
> In fact, it should be turned off after 3 DMA errors (causing PIO
> retries).
I'd like to see this turned into a rate. If the system gets one error
a month, and has been up for 3 months, the third error should not shut
things down. The room that this is in is hot; the machine might be
occasionally bumped. A low error rate is acceptable; its more acceptable
than a mysterious slow-down of performance after 3 months.
--linas
next prev parent reply other threads:[~2007-06-22 16:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 17:54 [RFT] hpt366: reset DMA state machine on timeouts Sergei Shtylyov
2007-06-21 19:31 ` Linas Vepstas
2007-06-22 15:13 ` Linas Vepstas
2007-06-22 15:32 ` Sergei Shtylyov
2007-06-22 16:36 ` Linas Vepstas [this message]
2007-06-23 18:10 ` Sergei Shtylyov
2007-06-25 21:44 ` Linas Vepstas
2007-06-26 13:57 ` Sergei Shtylyov
2007-06-22 15:54 ` Alan Cox
2007-06-22 16:03 ` Linas Vepstas
2007-06-22 16:33 ` Alan Cox
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=20070622163646.GG8840@austin.ibm.com \
--to=linas@austin.ibm.com \
--cc=linux-ide@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
/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;
as well as URLs for NNTP newsgroup(s).