Re: SMART problems in 2.6.22

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kai Makisara <Kai.Makisara@...>
Cc: Bruce Allen <ballen@...>, Mark Lord <liml@...>, David Greaves <david@...>, Tejun Heo <htejun@...>, Alan Cox <alan@...>, Jeff Garzik <jeff@...>, Linux Kernel Mailing List <linux-kernel@...>, Jan Dvorak <fermentol@...>, Klaus Fuerstberger <kfuerstberger@...>, Bruce Allen <bruce.allen@...>, Robert Hancock <hancockr@...>
Date: Tuesday, July 10, 2007 - 12:24 am

Kai Makisara wrote:

Kai,
Thanks for the analysis.
Some background documents for those interested:
The SCSI to ATA Translation (SAT) draft:
   http://www.t10.org/ftp/t10/drafts/sat/sat-r09.pdf
in which the relevant section is 12.2.6 (page 110)
table 93.
A modern descriptor-based SCSI sense buffer is being used
to convey the "ATA (status) return descriptor" back from
the ATA device after the command has been completed.
My SAT code in smartmontools requests this descriptor
so it should be returned irrespective of whether the
ATA command succeeded or failed.

Now from the ATA side the command being executed is
"SMART RETURN STATUS  B0h/DAh, non-data". For
reference I use this draft from www.t13.org :
D1699r3f-ATA8-ACS.pdf . See that command's
_description_ section. That explains that 4f and c2
in the LBA field indicates the disk is healthy. "threshold
exceeded" is indicated by putting f4 and 2c in the same
positions. [Whoever specified that must have hated people
with dyslexia.] No ATA command error is indicated ("abort"
is the only one listed for that ATA command) in the reports
that I have seen.

So when smartmontools sees 0 and 0 in those positions it
pulls out the red card for that device. My guess is that
libata in lk 2.6.22 is corrupting those FIS device to
host register values.


Doug Gilbert


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SMART problems in 2.6.22, Bruce Allen, (Sun Jul 8, 8:32 pm)
Re: SMART problems in 2.6.22, Kai Makisara, (Mon Jul 9, 5:11 pm)
Re: SMART problems in 2.6.22, Kai Makisara, (Mon Jul 16, 6:48 am)
Re: SMART problems in 2.6.22, Tejun Heo, (Mon Jul 16, 7:22 am)
Re: SMART problems in 2.6.22, Kai Makisara, (Mon Jul 16, 7:58 am)
Re: SMART problems in 2.6.22, Klaus Fuerstberger, (Mon Jul 16, 9:12 am)
Re: SMART problems in 2.6.22, Bruce Allen, (Mon Jul 16, 5:27 pm)
Re: SMART problems in 2.6.22, Douglas Gilbert, (Tue Jul 10, 12:24 am)
Re: SMART problems in 2.6.22, Bruce Allen, (Tue Jul 10, 9:31 pm)
Re: SMART problems in 2.6.22, David Greaves, (Mon Jul 9, 7:55 am)
Re: SMART problems in 2.6.22, Bruce Allen, (Mon Jul 9, 1:56 pm)
Re: SMART problems in 2.6.22, Jeff Garzik, (Mon Jul 9, 2:43 pm)
Re: SMART problems in 2.6.22, David Greaves, (Mon Jul 9, 2:00 pm)
Re: SMART problems in 2.6.22, Bruce Allen, (Sun Jul 8, 9:14 pm)
Re: [smartmontools-support] SMART problems in 2.6.22, Adam Spiers, (Mon Jul 9, 7:35 pm)
Re: SMART problems in 2.6.22, Jeff Garzik, (Sun Jul 8, 10:09 pm)
Re: SMART problems in 2.6.22, Bruce Allen, (Mon Jul 9, 1:35 pm)
Re: SMART problems in 2.6.22, Jeff Garzik, (Mon Jul 9, 1:52 pm)
Re: SMART problems in 2.6.22, Bruce Allen, (Mon Jul 9, 2:02 pm)