Feature #13079

Add ksensor support for voltage and current sensors

Added by Robert Mustacchi 8 months ago. Updated 7 months ago.

Start date:
Due date:
% Done:


Estimated time:
Gerrit CR:


When the ksensor framework was introduced, it as designed such that we could add sensors for other types of peripherals. I've found a couple of devices that expose additional sensors such as current and voltage ranging from the AMD CPUs to the Chelsio parts. It'd be nice if we could add these to the framework.

As part of this, I've renamed the temperature sensor to be a scalar, to represent the core type of sensor that this is (a single discrete value) and fixed a few other minor inconsistencies in what we have. While I don't think it makes sense to commit to this yet, after this we can probably write some manual pages to describe the current, evolving interfaces.


Updated by Electric Monk 8 months ago

  • Gerrit CR set to 874

Updated by Robert Mustacchi 7 months ago

I tested this in a couple different ways:

  • I used the ksensor os-tests and verified that they old passed, which were updated to include current and voltage sensors.
  • I checked a couple of existing driver that were updated because of this, in particular the igb and amdf17nbdf changes.
  • I had the testing that went on through #13080 and #13081 which helped verify the fmtopo paths for the new sensors.

Updated by Electric Monk 7 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 1045e13a248d94941f864998aa859970ae3a4154

commit  1045e13a248d94941f864998aa859970ae3a4154
Author: Robert Mustacchi <>
Date:   2020-09-14T15:27:28.000Z

    13079 Add ksensor support for voltage and current sensors
    Reviewed by: Andy Fiddaman <>
    Reviewed by: Paul Winder <>
    Approved by: Dan McDonald <>

Also available in: Atom PDF