linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Hancock <hancockrwd@gmail.com>
To: Matt Grice <mcjgrice@gmail.com>
Cc: Jeff Garzik <jgarzik@pobox.com>, linux-ide@vger.kernel.org
Subject: Re: libata errors
Date: Tue, 07 Apr 2009 20:06:57 -0600	[thread overview]
Message-ID: <49DC06C1.9040700@gmail.com> (raw)
In-Reply-To: <4b215b9d0904071340w16a65b5bs64f6161b6042b4f1@mail.gmail.com>

Matt Grice wrote:
> Dear Mr Garzik,
> 
> I am currently having trouble with the new libata kernel subsystem (My
> system broke after 2.6.21 I believe). After much fruitless googling
> and trawling through the libata code (I am *no* kernel programmer!) I
> took the serious, final step of bugging you.
> 
> Ten or so minutes after boot (long enough for my two IDE Sony DW-G120A
> DVD writers to spin down) I start getting these error messages in my
> kernel logs:
> 
> [ 6317.817041] ata4.01: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
> [ 6317.817057] ata4.01: cmd a0/00:00:00:08:00/00:00:00:00:00/b0 tag 0
> pio 16392 in
> [ 6317.817058]          cdb 4a 01 00 00 10 00 00 00  08 00 00 00 00 00 00 00
> [ 6317.817059]          res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask
> 0x4 (timeout)
> [ 6317.817064] ata4.01: status: { DRDY }
> [ 6317.817087] ata4: soft resetting link
> [ 6318.221356] ata4.00: configured for PIO0
> [ 6318.253533] ata4.01: configured for PIO0
> [ 6318.253567] ata4: EH complete
> [ 6335.817039] ata4.00: qc timeout (cmd 0xa0)
> [ 6335.817059] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
> [ 6335.817069] ata4.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
> [ 6335.817070]          cdb 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> [ 6335.817071]          res 51/20:03:00:00:00/00:00:00:00:00/a0 Emask
> 0x5 (timeout)
> 
> ad nauseam.
> 
> (I am running kernel 2.6.27-11, amd64. I have also tried 2.6.29, and
> the messages are the same)
> 
> My DVD writers then cease to function.
> 
> 
> My initial thoughts are that my spun-down devices are taking too long
> to respond to requests from the kernel. I braced myself and then dived
> in to the icy waters of the kernel sources to see if there was a
> timeout I could increase. However, there are several structs with
> timeouts in libata-eh.c, and the last thing my poor kernel needs is a
> moron like myself twiddling random constants.
> 
> Could you please let me know if you think I am on the right track? Or
> maybe suggest a timeout to twiddle?

ATA command timeouts are usually pretty long (like 30 seconds) so 
usually if they time out something is wrong, or the drive has really 
gone into the weeds.

It looks like your drives are running at PIO mode 0 after the fault 
happens. What are they running at before? Full dmesg output from bootup 
might be useful..

> 
> 
> Many thanks, and many apologies for interrupting you.
> 
> 
> Kind Regards,
> 
> 
> Matt Grice
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ide" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


      parent reply	other threads:[~2009-04-08  2:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07 20:40 libata errors Matt Grice
2009-04-07 21:41 ` Jeff Garzik
2009-04-08  8:14   ` Mikael Pettersson
2009-04-08 13:25     ` Jeff Garzik
2009-04-08 17:52       ` Matt Grice
2009-04-11 18:00     ` Robert Hancock
2009-04-12 18:15       ` Tejun Heo
2009-04-13  9:30         ` Jeff Garzik
2009-04-14  0:56           ` Robert Hancock
2009-04-08  2:06 ` Robert Hancock [this message]

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=49DC06C1.9040700@gmail.com \
    --to=hancockrwd@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mcjgrice@gmail.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).