Linux SCSI subsystem development
 help / color / mirror / Atom feed
* Need help with handling failed ATA pass-through command and sense data
@ 2017-05-18 14:35 Alan Stern
  2017-05-18 15:34 ` Ewan D. Milne
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Stern @ 2017-05-18 14:35 UTC (permalink / raw)
  To: SCSI development list; +Cc: GeekGirl1

This is in reference to

	https://bugzilla.redhat.com/show_bug.cgi?id=1351305

The problem is that some program (probably udisks2) periodically sends
the following ATA pass-through command to a USB-ATA bridge attached to
a Western Digital drive:

	85062000 00000000 00000000 0000e500

I don't know what this command does (some sort of reset?).  The command
fails and the device returns the following sense data:

	72000000 0000000e 090c0000 00ff0000 00000000 0050

I don't know how to decode this -- I don't have copies of the relevant
documents.  Can anybody decode this for me?

Anyway, the SCSI core treats it as a Hardware Error and puts warning
messages in the kernel log:

[17244.280612] sd 7:0:0:0: [sdd] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
[17244.280614] sd 7:0:0:0: [sdd] tag#0 Sense Key : Hardware Error [current] [descriptor] 
[17244.280616] sd 7:0:0:0: [sdd] tag#0 Add. Sense: No additional sense information
[17244.280618] sd 7:0:0:0: [sdd] tag#0 CDB: ATA command pass through(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00

Is this really the right thing to do?  Could it be that we are failing 
to interpret this sense data correctly?

Other commands provoke similar responses from the device, but without 
obnoxious log messages.  For example, the command:

	85082e00 00000100 00000000 0000ec00

fails with the following sense data:

	72000000 0000000e 090c0000 00000000 00000000 0050

and no output to the log.  I don't know why the behavior is different.  
There are other similar examples, with and without log messages.

Any help would be appreciated.

Alan Stern

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

end of thread, other threads:[~2017-05-24  3:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18 14:35 Need help with handling failed ATA pass-through command and sense data Alan Stern
2017-05-18 15:34 ` Ewan D. Milne
2017-05-18 16:48   ` Ewan D. Milne
2017-05-18 17:37     ` Alan Stern
2017-05-18 20:01       ` Ewan D. Milne
2017-05-23 18:34         ` Alan Stern
2017-05-24  3:13           ` mail1

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox