All of lore.kernel.org
 help / color / mirror / Atom feed
* libATA error message doc
@ 2007-10-03 17:39 Mike Robak
  2007-10-03 17:54 ` Jeff Garzik
  2007-10-03 18:24 ` Alan Cox
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Robak @ 2007-10-03 17:39 UTC (permalink / raw)
  To: linux-kernel

Does a doc exist that provides a detailed description of the different
errors that could be produced by libata and its associated drivers?
The libATA developer's guide provides a very good general description
of the types of messages, but I'm looking for more detail.

For example I got this error message last week:

Sep 27 17:29:26 server kernel: ata2.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x1
Sep 27 17:29:26 server kernel: ata2.00: (irq_stat 0x40000001)
Sep 27 17:29:26 server kernel: ata2.00: tag 0 cmd 0xb0 Emask 0x1 stat
0x51 err 0x4 (device error)

I'd like to know what the following items means?

(irq_stat 0x40000001)
tag 0
cmd 0xb0
emask 0x1
stat 0x51
err 0x4


Can anybody help?

Thanks,
-Mike

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

* Re: libATA error message doc
  2007-10-03 17:39 libATA error message doc Mike Robak
@ 2007-10-03 17:54 ` Jeff Garzik
  2007-10-03 18:24 ` Alan Cox
  1 sibling, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2007-10-03 17:54 UTC (permalink / raw)
  To: Mike Robak; +Cc: linux-kernel

Mike Robak wrote:
> Does a doc exist that provides a detailed description of the different
> errors that could be produced by libata and its associated drivers?
> The libATA developer's guide provides a very good general description
> of the types of messages, but I'm looking for more detail.
> 
> For example I got this error message last week:
> 
> Sep 27 17:29:26 server kernel: ata2.00: exception Emask 0x0 SAct 0x0
> SErr 0x0 action 0x1
> Sep 27 17:29:26 server kernel: ata2.00: (irq_stat 0x40000001)
> Sep 27 17:29:26 server kernel: ata2.00: tag 0 cmd 0xb0 Emask 0x1 stat
> 0x51 err 0x4 (device error)
> 
> I'd like to know what the following items means?
> 
> (irq_stat 0x40000001)
> tag 0
> cmd 0xb0
> emask 0x1
> stat 0x51
> err 0x4

It's pretty much all defined in the ATA or controller specifications...

Well, except for emask, which is a libata-only invention.

	Jeff




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

* Re: libATA error message doc
  2007-10-03 17:39 libATA error message doc Mike Robak
  2007-10-03 17:54 ` Jeff Garzik
@ 2007-10-03 18:24 ` Alan Cox
  2007-10-05 19:13   ` Andi Kleen
  1 sibling, 1 reply; 5+ messages in thread
From: Alan Cox @ 2007-10-03 18:24 UTC (permalink / raw)
  To: Mike Robak; +Cc: linux-kernel

> (irq_stat 0x40000001)	

	IRQ status of the chip
> tag 0
	Tag (or zero for non NCQ commands)
> cmd 0xb0
	The ATA command number issued
> emask 0x1
	Internal libata error category (used to decide what to do to
recover)
> stat 0x51
	Status register of drive
> err 0x4
	Error register of drive


You want the ATA specification document from T13 (www.t13.org)

Alan

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

* Re: libATA error message doc
  2007-10-03 18:24 ` Alan Cox
@ 2007-10-05 19:13   ` Andi Kleen
  2007-10-05 20:51     ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2007-10-05 19:13 UTC (permalink / raw)
  To: Alan Cox; +Cc: Mike Robak, linux-kernel

Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

> > (irq_stat 0x40000001)	
> 
> 	IRQ status of the chip
> > tag 0
> 	Tag (or zero for non NCQ commands)
> > cmd 0xb0
> 	The ATA command number issued
> > emask 0x1
> 	Internal libata error category (used to decide what to do to
> recover)
> > stat 0x51
> 	Status register of drive
> > err 0x4
> 	Error register of drive
> 
> 
> You want the ATA specification document from T13 (www.t13.org)

The ISDN driver documentation always listed the numbers in the kernel documentation
even though people in theory could have gotten it from the specification too.

I always found that quite convenient. Putting at least a summary in Documentation
would probably user-friendly. It tends to be hard to find stuff in specifications,
especially if you're not very familiar with the standard.

-Andi

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

* Re: libATA error message doc
  2007-10-05 19:13   ` Andi Kleen
@ 2007-10-05 20:51     ` Alan Cox
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 2007-10-05 20:51 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Mike Robak, linux-kernel

> I always found that quite convenient. Putting at least a summary in Documentation
> would probably user-friendly. It tends to be hard to find stuff in specifications,
> especially if you're not very familiar with the standard.

There are over 100 commands, and the status bits can only be read in
combination and according to some interpretation rules - it would be
quite a long document. The standards are also all publically available in
this case, albeit not neccessarily the most interesting read

AFAIK there is a patch queued to print some of the data in a more user
friendly format.

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

end of thread, other threads:[~2007-10-05 20:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-03 17:39 libATA error message doc Mike Robak
2007-10-03 17:54 ` Jeff Garzik
2007-10-03 18:24 ` Alan Cox
2007-10-05 19:13   ` Andi Kleen
2007-10-05 20:51     ` Alan Cox

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.