[lkml]   [2020]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2] hwmon: Driver for temperature sensors on SATA drives
Hi Martin,

On 12/18/19 4:15 PM, Martin K. Petersen wrote:
> Guenter,
>> This driver solves this problem by adding support for reading the
>> temperature of SATA drives from the kernel using the hwmon API and
>> by adding a temperature zone for each drive.
> My working tree is available here:
> A few notes:
> - Before applying your patch I did s/satatemp/drivetemp/
> - I get a crash in the driver core during probe if the drivetemp module
> is loaded prior to loading ahci or a SCSI HBA driver. This crash is
> unrelated to my changes. Haven't had time to debug.

Any idea how I might be able to reproduce this ? So far I have been

Building drivetemp into the kernel, with ahci and everything SCSI
built as module, doesn't trigger the crash for me. This is with the
drivetemp patch (v3) as well as commit d188b0675b ("scsi: core: Add
sysfs attributes for VPD pages 0h and 89h") applied on top of v5.4.7.


> - I tweaked your ATA detection heuristics and now use the cached VPD
> page 0x89 instead of fetching one from the device.
> - I also added support for reading the temperature log page on SCSI
> drives.
> - Tested with a mixed bag of about 40 SCSI and SATA drives attached.
> - I still think sensor naming needs work. How and where are the
> "drivetemp-scsi-8-140" names generated?
> I'll tinker some more but thought I'd share what I have for now.

 \ /
  Last update: 2020-01-01 18:47    [W:0.130 / U:1.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site