hpsa: hpsa decode sense data for io and tmf
authorStephen Cameron <stephenmcameron@gmail.com>
Thu, 23 Apr 2015 14:32:16 +0000 (09:32 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Sun, 31 May 2015 18:23:58 +0000 (11:23 -0700)
commit9437ac43ed0536efb3ede6c034a0b6f36c19a693
tree2be93d1793424a980b54956e212e86eb6af2088f
parent433b5f4dba2307e33ea65169009965f26496b6df
hpsa: hpsa decode sense data for io and tmf

In hba mode, we could get sense data in descriptor format so
we need to handle that.

It's possible for CommandStatus to have value 0x0D
"TMF Function Status", which we should handle.  We will get
this from a P1224 when aborting a non-existent tag, for
example.  The "ScsiStatus" field of the errinfo field
will contain the TMF function status value.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa_cmd.h