linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] Add support for OCC inband sensors in P9
@ 2017-03-09 11:49 Shilpasri G Bhat
  2017-03-09 11:49 ` [RFC 1/2] powerpc/powernv: Enable support for OCC inband platform sensors Shilpasri G Bhat
  2017-03-09 11:49 ` [RFC 2/2] hwmon: powernv: Hwmon driver for OCC inband power and temperature sensors Shilpasri G Bhat
  0 siblings, 2 replies; 6+ messages in thread
From: Shilpasri G Bhat @ 2017-03-09 11:49 UTC (permalink / raw)
  To: linux-kernel, linuxppc-dev
  Cc: benh, mpe, paulus, svaidy, ego, akshay.adiga, andrew, clg, maddy,
	Shilpasri G Bhat

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-03-12 22:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-09 11:49 [RFC 0/2] Add support for OCC inband sensors in P9 Shilpasri G Bhat
2017-03-09 11:49 ` [RFC 1/2] powerpc/powernv: Enable support for OCC inband platform sensors Shilpasri G Bhat
2017-03-09 11:49 ` [RFC 2/2] hwmon: powernv: Hwmon driver for OCC inband power and temperature sensors Shilpasri G Bhat
2017-03-09 12:10   ` Guenter Roeck
2017-03-09 13:30     ` Shilpasri G Bhat
2017-03-12 22:53       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).