[Skiboot] [RFC V3] sensors: occ: Add support for OCC inband sensors
Cédric Le Goater
clg at kaod.org
Thu Mar 30 23:24:42 AEDT 2017
On 03/30/2017 02:13 PM, Shilpasri G Bhat wrote:
> Add support to parse and export OCC inband sensors which are copied
> by OCC to main memory in P9. Each OCC writes three buffers which
> includes one names buffer for sensor meta data and two buffers for
> sensor readings. While OCC writes to one buffer the sensor values
> can be read from the other buffer. The sensors are updated every
> 100ms.
>
> This patch adds power, temperature, current and voltage sensors to
> /ibm,opal/sensors device-tree node which can be exported by the
> ibmpowernv-hwmon driver in Linux.
>
> Signed-off-by: Shilpasri G Bhat <shilpa.bhat at linux.vnet.ibm.com>
> ---
> Changes from V2:
> - Added current and voltage sensors
> - Removed 'struct occ_sensor_info' which was used to store sensor
> offset address values
> - Added sensor attributes like MIN and MAX
> - Moved the header sanity checks to a separate routine
> 'occ_sensor_sanity()'
> - Added a mapping for OCC sensor name to userspace label. If the
> mapping is not found we fall back to OCC name.
Could you give us a sample output of the command 'sensors' ?
and also the result of :
lsprop /proc/device-tree/ibm,opal/sensors/
Thanks,
C.
More information about the Skiboot
mailing list