[smartmontools-support] [PATCH v5] scsi: Add hwmon support for SMART temperature sensors

Christian Franke Christian.Franke at t-online.de
Tue Oct 16 13:53:42 CEST 2018

Hi Linus,

Linus Walleij wrote:
> thanks a lot for your feedback!
you're welcome.

>> If there is ATA/SATA temperature detection support in the kernel, it
>> should IMO also be mapped to SCSI/SAS commands as suggested by SAT (see
>> also the mail from Douglas Gilbert):
>> If SCSI Temperature Log page is requested (SCSI LOG SENSE cmd) for an
>> ATA/SATA device, read SMART attributes and return a Log page with
>> Temperature field set from attribute 194.
>> Does your patch support this?
> Not yet. I have nothing to test with, else I would try to take a
> stab. I try to start by fixing the small need I have but leave space
> and placeholders for improvements.
>> SAT requires "SCT Status" or "Device Statistics" access method for
>> temperature. In practice, SMART attribute 194 is supported by much more
>> devices.
> If something like this is used by USB attached drives I could try it,
> because I do have a USB cradle.

USB is a different story as the SAT-Layer addressed by SCSI commands is 
not in the Kernel but in the USB-SATA bridge itself. I'm not aware of 
any USB bridge which maps SATA temperature to SCSI Temperature Log page. 
IIRC, the SAT-Layers of some RAID controllers do.


More information about the Smartmontools-support mailing list