Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754719AbdCILvz (ORCPT ); Thu, 9 Mar 2017 06:51:55 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35718 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753158AbdCILvw (ORCPT ); Thu, 9 Mar 2017 06:51:52 -0500 From: Shilpasri G Bhat To: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, svaidy@linux.vnet.ibm.com, ego@linux.vnet.ibm.com, akshay.adiga@linux.vnet.ibm.com, andrew@aj.id.au, clg@kaod.org, maddy@linux.vnet.ibm.com, Shilpasri G Bhat Subject: [RFC 0/2] Add support for OCC inband sensors in P9 Date: Thu, 9 Mar 2017 17:19:13 +0530 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-MML: disable x-cbid: 17030911-0048-0000-0000-0000020FE1BC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17030911-0049-0000-0000-000047B16100 Message-Id: <1489060155-22086-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-09_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703090090 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1696 Lines: 36 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