[RFC 0/2] Add support for OCC inband sensors in P9

Shilpasri G Bhat shilpa.bhat at linux.vnet.ibm.com
Thu Mar 9 22:49:13 AEDT 2017


On-Chip-Controller(OCC) is an embedded chip in POWER processors which
maintains the thermal and power safety of the chip. OCC measures
power and temperature sensors and various performance counters to
maintain healthy activity of the chip. In POWER9, OCC copies these
measured sensors periodically to main memory which can be consumend by
the host.

This patch-set provides support to export power and temperature
sensors in OCC inband sensors as standard hwmon sensors.

The skiboot patch for to add device-tree properties for this feature
is posted here:
https://lists.ozlabs.org/pipermail/skiboot/2017-March/006652.html

Shilpasri G Bhat (2):
  powerpc/powernv: Enable support for OCC inband platform sensors
  hwmon: powernv: Hwmon driver for OCC inband power and temperature
    sensors

 .../devicetree/bindings/hwmon/ibmpowernv-occ.txt   |   4 +
 Documentation/hwmon/ibmpowernv-occ                 |  24 ++
 arch/powerpc/include/asm/opal-api.h                |  36 +++
 arch/powerpc/platforms/powernv/Makefile            |   2 +-
 arch/powerpc/platforms/powernv/opal-occ-sensors.c  | 302 +++++++++++++++++++++
 arch/powerpc/platforms/powernv/opal.c              |   3 +
 drivers/hwmon/Kconfig                              |  11 +
 drivers/hwmon/Makefile                             |   1 +
 drivers/hwmon/ibmpowernv-occ.c                     | 302 +++++++++++++++++++++
 9 files changed, 684 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/hwmon/ibmpowernv-occ.txt
 create mode 100644 Documentation/hwmon/ibmpowernv-occ
 create mode 100644 arch/powerpc/platforms/powernv/opal-occ-sensors.c
 create mode 100644 drivers/hwmon/ibmpowernv-occ.c

-- 
1.8.3.1



More information about the Linuxppc-dev mailing list