From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Linas Vepstas <linas@austin.ibm.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [RFT] hpt366: reset DMA state machine on timeouts
Date: Tue, 26 Jun 2007 17:57:56 +0400 [thread overview]
Message-ID: <46811B64.4080406@ru.mvista.com> (raw)
In-Reply-To: <20070625214434.GA4482@austin.ibm.com>
Hello.
Linas Vepstas wrote:
>> Now I'm confused too -- did you get any DMA timeouts this time?
> No. And yes, this is confusing, as the initial hang that I was seeing
> was preceeded by DMA timeout messages on the screen (as posted in the
> initial email). Now, with the patched kernel, I'm not seeing any
> DMA timeouts; and, instead, I'm seeing lots of hdc: task_out_intr:
> status=0x50 { DriveReady SeekComplete } I don't know why.
Looks like the state machine reset didn't do it much good... but wait --
you're saing that it didn't even occur. :-)
> However, I have now learned how to make all of my problems go
> away: lower the UDMA level. So its seems that this has been
> a humbling experience in (re-)learning about bus glitches.
Also, this is not just glitches... normally, UDMA errors introduced by
cabling should manifest themselves as CRC errors.
> I'm currently doing an /sbin/hdparm -X 67 /dev/hdc to drop
> the udma mode to mode3 == 44 MHz (-X udma_mode + 64) from
> the default of mode4 for this controller (the hard drive itself is
> supposedly udma100 capable, according to the box). This has cured
> all of the ide driver problems.
> The disk that caused all the problems was:
> Device Model: MAXTOR STM3320620A
Good, time to prepare a patch then...
> A quick look through ide-dma.c shows that there is no way to
> blacklist a drive to the "highest suported" level; the blacklist
> is UDMA on or UDMA off.
Actually, there are DMA white/black lists to force all DMA on/off.
But hpt366.c has its own UltraDMA specific blacklists. :-)
> ===============
> I have not yet tried playing any udma mode games with libata yet,
> to see if I could get that working.
> ===============
> I'd like to propose that, for a system is seeing a fair number of
> drive errors, that, perhaps it should automatically lower the mode,
> in the hope of clearing up the problem.
It already does so for UDMA CRC errors. Maybe it's worth considering to do
this for DMA timeouts as well...
> --linas
MBR, Sergei
next prev parent reply other threads:[~2007-06-26 13:56 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
2007-06-23 18:10 ` Sergei Shtylyov
2007-06-25 21:44 ` Linas Vepstas
2007-06-26 13:57 ` Sergei Shtylyov [this message]
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=46811B64.4080406@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=linas@austin.ibm.com \
--cc=linux-ide@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.