Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752233AbdHJDbs (ORCPT ); Wed, 9 Aug 2017 23:31:48 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56514 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752095AbdHJDbr (ORCPT ); Wed, 9 Aug 2017 23:31:47 -0400 From: Shilpasri G Bhat To: stewart@linux.vnet.ibm.com, cyrilbur@gmail.com, mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, benh@kernel.crashing.org, paulus@samba.org, ego@linux.vnet.ibm.com, svaidy@linux.vnet.ibm.com, Shilpasri G Bhat Subject: [PATCH V11 0/3] powernv : Add support for OPAL-OCC command/response interface Date: Thu, 10 Aug 2017 09:01:17 +0530 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-MML: disable x-cbid: 17081003-0048-0000-0000-000002580741 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17081003-0049-0000-0000-0000480B86FE Message-Id: <1502335880-30686-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-10_01:,, 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-1706020000 definitions=main-1708100056 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1950 Lines: 41 In P9, OCC (On-Chip-Controller) supports shared memory based commad-response interface. Within the shared memory there is an OPAL command buffer and OCC response buffer that can be used to send inband commands to OCC. The following commands are supported: 1) Set system powercap 2) Set CPU-GPU power shifting ratio 3) Clear min/max for OCC sensor groups Changes from V10: - Rebased on powerpc-next - Add sysfs interface instead of IOCTL (Skiboot patch for Patch3 is posted below: https://lists.ozlabs.org/pipermail/skiboot/2017-August/008553.html ) Shilpasri G Bhat (3): powernv: powercap: Add support for powercap framework powernv: Add support to set power-shifting-ratio powernv: Add support to clear sensor groups data .../ABI/testing/sysfs-firmware-opal-powercap | 31 +++ Documentation/ABI/testing/sysfs-firmware-opal-psr | 18 ++ .../bindings/powerpc/opal/sensor-groups.txt | 27 +++ arch/powerpc/include/asm/opal-api.h | 6 + arch/powerpc/include/asm/opal.h | 10 + arch/powerpc/platforms/powernv/Makefile | 2 +- arch/powerpc/platforms/powernv/opal-powercap.c | 244 +++++++++++++++++++++ arch/powerpc/platforms/powernv/opal-psr.c | 175 +++++++++++++++ .../powerpc/platforms/powernv/opal-sensor-groups.c | 212 ++++++++++++++++++ arch/powerpc/platforms/powernv/opal-wrappers.S | 5 + arch/powerpc/platforms/powernv/opal.c | 10 + 11 files changed, 739 insertions(+), 1 deletion(-) create mode 100644 Documentation/ABI/testing/sysfs-firmware-opal-powercap create mode 100644 Documentation/ABI/testing/sysfs-firmware-opal-psr create mode 100644 Documentation/devicetree/bindings/powerpc/opal/sensor-groups.txt create mode 100644 arch/powerpc/platforms/powernv/opal-powercap.c create mode 100644 arch/powerpc/platforms/powernv/opal-psr.c create mode 100644 arch/powerpc/platforms/powernv/opal-sensor-groups.c -- 1.8.3.1