linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ata error codes
@ 2008-01-15 17:39 Raz
  2008-01-21  8:04 ` Tejun Heo
  0 siblings, 1 reply; 4+ messages in thread
From: Raz @ 2008-01-15 17:39 UTC (permalink / raw)
  To: linux-ide@vger.kernel.org; +Cc: Jeff Garzik

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
-- 
Raz

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ata error codes
  2008-01-15 17:39 ata error codes Raz
@ 2008-01-21  8:04 ` Tejun Heo
  2008-01-25 11:13   ` Raz
  0 siblings, 1 reply; 4+ messages in thread
From: Tejun Heo @ 2008-01-21  8:04 UTC (permalink / raw)
  To: Raz; +Cc: linux-ide@vger.kernel.org, Jeff Garzik

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ata error codes
  2008-01-21  8:04 ` Tejun Heo
@ 2008-01-25 11:13   ` Raz
  2008-01-26  1:54     ` Tejun Heo
  0 siblings, 1 reply; 4+ messages in thread
From: Raz @ 2008-01-25 11:13 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide@vger.kernel.org

I saw in Jeff Garzik the link to http://www.t13.org/ for the ata 's
documentation. Unfortunately , I do seem to be able to correlate the
errors in the specs to the errors appear in dmesg. If you would be
kind to direct me a little, I would write a code that dumps more
information, something like ata_error err = <error code > utility.

thank you

On Jan 21, 2008 10:04 AM, Tejun Heo <htejun@gmail.com> wrote:
>
> 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
>



-- 
Raz

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ata error codes
  2008-01-25 11:13   ` Raz
@ 2008-01-26  1:54     ` Tejun Heo
  0 siblings, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2008-01-26  1:54 UTC (permalink / raw)
  To: Raz; +Cc: linux-ide@vger.kernel.org

Raz wrote:
> I saw in Jeff Garzik the link to http://www.t13.org/ for the ata 's
> documentation. Unfortunately , I do seem to be able to correlate the
> errors in the specs to the errors appear in dmesg. If you would be
> kind to direct me a little, I would write a code that dumps more
> information, something like ata_error err = <error code > utility.

What do you mean by 'utility'?  A separate program to interpret kernel
error message?

-- 
tejun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-26  1:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 17:39 ata error codes Raz
2008-01-21  8:04 ` Tejun Heo
2008-01-25 11:13   ` Raz
2008-01-26  1:54     ` Tejun Heo

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).