linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Raz <raziebe@gmail.com>
Cc: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
	Jeff Garzik <jgarzik@pobox.com>
Subject: Re: ata error codes
Date: Mon, 21 Jan 2008 17:04:18 +0900	[thread overview]
Message-ID: <47945202.8090107@gmail.com> (raw)
In-Reply-To: <5d96567b0801150939y3802a73aqcbab553af5fe6015@mail.gmail.com>

Raz wrote:
> Mr Garzik Hello
> ata errors are some times cryptic. I am refering to this line, in the
> ata_qc_timeout which holds lots of information.
> printk(KERN_ERR "ata%u: command 0x%x timeout, stat 0x%x host_stat 0x%x\n",
>  ap->id,
>  qc->tf.command,
>  drv_stat,
>  host_stat)
> 
> These errors varries , and many times SMART cannot help. Is there a
> repository for these error codes, (  ata_dump_status isn't enough ).
> Is there an API to get these error codes translated to human readable format ?
> thank you

Those values are directly from hardware registers and can be decoded
with information from ATA and SFF specs.  It could be nice to have
decoded strings but I'm not too sure.  Even when decoded, they're pretty
cryptic and don't carry too much information by themselves.

-- 
tejun

  reply	other threads:[~2008-01-21  8:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-15 17:39 ata error codes Raz
2008-01-21  8:04 ` Tejun Heo [this message]
2008-01-25 11:13   ` Raz
2008-01-26  1:54     ` Tejun Heo

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=47945202.8090107@gmail.com \
    --to=htejun@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=raziebe@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).