Re: Apparent MPT ata pass-through bug SAS1068 and SAS1068E - WAS SMART causes disks to go offline on an LSI SAS1068 controller - Dell SAS 5/iR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Small wrote:
Desai, Kashyap wrote:
Can you try doing the same test upgrading our driver to 3.04.13?
You can find relevant patches at
http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fjejb%2Fscsi-misc-2.6.git&a=search&h=993340e8ab4e856bf0fc7818cdca1a92f6e8ed38&st=commit&s=kashyap

Have just compiled a kernel package from James' tree directly, rather than attempting to back-port and manually patch, so I'm now running 2.6.32-rc4 with mptsas 3.04.13. I'm running the smartctl -a in a loop at the moment and will leave it running over-night, but with this kernel I get a pair of messages like this:

[ 1045.130560] scsi 2:0:0:0: [sg1] Sense Key : Recovered Error [current] [descriptor]
[ 1045.145751] Descriptor sense data with sense descriptors (in hex):
[ 1045.158107]         72 01 00 1d 00 00 00 0e 09 0c 00 00 00 00 00 00
[ 1045.171010]         00 4f 00 c2 00 50
[ 1045.178585] scsi 2:0:0:0: [sg1] Add. Sense: ATA pass through information available [ 1045.280318] scsi 2:0:0:0: [sg1] Sense Key : Recovered Error [current] [descriptor]
[ 1045.284311] Descriptor sense data with sense descriptors (in hex):
[ 1045.284311]         72 01 00 1d 00 00 00 0e 09 0c 00 00 00 00 00 00
[ 1045.284311]         00 4f 00 c2 00 50
[ 1045.284311] scsi 2:0:0:0: [sg1] Add. Sense: ATA pass through information available

for every 'smartctl -a /dev/sg1' command which is run.

Tim,
This is _not_ an error. If the CK_COND bit is set in the SCSI
ATA PASS-THROUGH (12 or 16 byte) cdb and the ATA command
succeeds then what is shown above is correct.

The whole point is to get the ATA registers after the command
is complete. The register values are placed in a ATA (status)
return descriptor encapsulated in sense data with that sense key
and those additional sense codes. The ATA return descriptor
starts with the "09" value in the sense buffer shown above.

smartmontools needs to set CK_COND on some ATA commands (e.g.
to get the SMART status) because the result can only be found
in the ATA registers after completion.

Now it is annoying, distracting and wasteful to log the sense
data in this particular situation. Perhaps the SCSI mid level
error reporting should filter out that particular combination:
  Sense key: RECOVERED ERROR
  Additional sense: ATA PASS THROUGH INFORMATION AVAILABLE (0x0,0x1d)

References: sat-r09.pdf sat2r09.pdf


Doug Gilbert
--
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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux