Kernel Driver IBMPOWERNV

Supported systems:

  • Any recent IBM P servers based on POWERNV platform

Author: Neelesh Gupta

Description

This driver implements reading the platform sensors data like temperature/fan/voltage/power for ‘POWERNV’ platform.

The driver uses the platform device infrastructure. It probes the device treefor sensor devices during the __init phase and registers them with the ‘hwmon’.‘hwmon’ populates the ‘sysfs’ tree having attribute files, each for a givensensor type and its attribute data.

All the nodes in the DT appear under “/ibm,opal/sensors” and each valid node inthe DT maps to an attribute file in ‘sysfs’. The node exports unique ‘sensor-id’which the driver uses to make an OPAL call to the firmware.

Usage notes

The driver is built statically with the kernel by enabling the configCONFIG_SENSORS_IBMPOWERNV. It can also be built as module ‘ibmpowernv’.

Sysfs attributes

fanX_inputMeasured RPM value.
fanX_minThreshold RPM for alert generation.
fanX_fault
  • 0: No fail condition
  • 1: Failing fan
tempX_inputMeasured ambient temperature.
tempX_maxThreshold ambient temperature for alert generation.
tempX_highestHistorical maximum temperature
tempX_lowestHistorical minimum temperature
tempX_enable

Enable/disable all temperature sensors belonging to thesub-group. In POWER9, this attribute corresponds toeach OCC. Using this attribute each OCC can be asked todisable/enable all of its temperature sensors.

  • 1: Enable
  • 0: Disable
inX_inputMeasured power supply voltage (millivolt)
inX_fault
  • 0: No fail condition.
  • 1: Failing power supply.
inX_highestHistorical maximum voltage
inX_lowestHistorical minimum voltage
inX_enable

Enable/disable all voltage sensors belonging to thesub-group. In POWER9, this attribute corresponds toeach OCC. Using this attribute each OCC can be asked todisable/enable all of its voltage sensors.

  • 1: Enable
  • 0: Disable
powerX_inputPower consumption (microWatt)
powerX_input_highestHistorical maximum power
powerX_input_lowestHistorical minimum power
powerX_enable

Enable/disable all power sensors belonging to thesub-group. In POWER9, this attribute corresponds toeach OCC. Using this attribute each OCC can be asked todisable/enable all of its power sensors.

  • 1: Enable
  • 0: Disable
currX_inputMeasured current (milliampere)
currX_highestHistorical maximum current
currX_lowestHistorical minimum current
currX_enable

Enable/disable all current sensors belonging to thesub-group. In POWER9, this attribute corresponds toeach OCC. Using this attribute each OCC can be asked todisable/enable all of its current sensors.

  • 1: Enable
  • 0: Disable
energyX_inputCumulative energy (microJoule)