linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-ide@vger.kernel.org
Subject: Re: PATA timeouts on old thinkpad
Date: Thu, 11 Jun 2009 12:29:44 +0100	[thread overview]
Message-ID: <20090611112944.GA7050@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20090611120508.6779a8d8@lxorguk.ukuu.org.uk>

On Thu, Jun 11, 2009 at 12:05:08PM +0100, Alan Cox wrote:
> > ata1.00: status: { DRDY }
> > 
> > which seems to suggest that it's sitting there waiting for the data to
> > be transferred... but for some reason it's just not happening.
> 
> Yes - it indicates the two ends have probably fallen out over the
> transfer length. It could also however be the drive took so long to
> respond we got bored of waiting for DF to appear.

Hmm, is there a way to get a dump of the host side registers when a
timeout occurs?

> > The IDE interface on this is:
> 
> Utterly generic aging PIIX4. Thinkpad 600 kind of era, no known bugs.

Indeed, it's my old 380XD "brick".

> Two things to check
> 
> - disable the SMART stuff
> - turn off drive side power saving (hdparm)
> 
> see if that makes any difference.

I don't have any smart process running, and although I do have hdparm
installed, I don't have any reference to it in any script in /etc/rc.d.

As far as the drive power saving goes, that seems to be managed (somewhat
randomly) by the BIOS - while I can use hdparm to change the settings,
the BIOS at some random point will change them back to what it wants.
It's something this laptop has always done, even back in the days of
2.4 kernels.  To give an example, I used 'hdparm -S0 /dev/sda' before
typing the following paragraph, but by the end of it, the disk has been
spun back down.

| What I would say is that turning off the drive side power management
| (-S0) will prevent the problem occuring - it only appears to occur when
| the drive has already been spun down.

which I would now delete because I can't keep it in -S0 mode! ;(

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

  reply	other threads:[~2009-06-11 11:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21  0:25 PATA timeouts on old thinkpad Russell King
2008-11-21  0:37 ` Alan Cox
2008-11-21  8:31   ` Russell King
2008-11-24 12:48     ` Russell King
2009-06-10 23:36   ` Russell King
2009-06-11 11:05     ` Alan Cox
2009-06-11 11:29       ` Russell King [this message]
2009-06-11 11:40         ` 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=20090611112944.GA7050@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=alan@lxorguk.ukuu.org.uk \
    --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 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).