This is intriguing. And you found a bug in our version of the decode_sense_data function, the ASC/ASCQ bytes are reversed for the descriptor formatted sense data. Cool. I'll try to work this in... > -----Original Message----- > From: Christoph Hellwig [mailto:hch@xxxxxxxxxxxxx] > Sent: Monday, February 23, 2015 2:18 PM > To: Don Brace > Cc: Scott Teel; Kevin Barnett; james.bottomley@xxxxxxxxxxxxx; > hch@xxxxxxxxxxxxx; Justin Lindley; brace; linux-scsi@xxxxxxxxxxxxxxx > Subject: Re: [PATCH 06/43] hpsa: hpsa decode sense data for io and tmf > > On Sat, Feb 21, 2015 at 04:18:03PM -0600, Don Brace wrote: > > +/* extract sense key, asc, and ascq from sense data. -1 means invalid. */ > > +static void decode_sense_data(const u8 *sense_data, int sense_data_len, > > + int *sense_key, int *asc, int *ascq) > > +{ > > Can't you just use scsi_normalize_sense()? -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html