From patchwork Mon Jan 23 14:26:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Marussi X-Patchwork-Id: 13112291 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8258DC54E94 for ; Mon, 23 Jan 2023 14:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=sSNyTIBoaogyUq92OIw5sgbpsXWcGb0GrZe/AFhkuFE=; b=E08BnvDQI8dihO Uk9NsWs0pY8JBxShRLfVIluQ2bkbOIrIW6KapWlHUPWYxzj61wibL3GnvNOnXu2bcIycsQITABH5O uB7c9REEcxa+IeCjaXeXrGTQBxZAEGjXnfpxcM7zrfTc2FgOogBXzoMqO1U/8JFv2AAaZ98BD1hBH NvdiTOSgWGxj1iTP4pmBjHZWAaC9SFQjMEzrte/rDA8iV9YmIWCh4oVvB7fXL3ceYsJXuD5zcbjxD +PnuU6y+G0wfshPiB/tpbnVjiXxum0FzlRn/FE3KuLvHPq3FViRs0lHYnqIl1k3jkI+qqAeFDuhAF XTYHh1tKLVZZXezOXSGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJxn6-00HZMA-DZ; Mon, 23 Jan 2023 14:27:20 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJxn2-00HZKS-I1 for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2023 14:27:18 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1E333C14; Mon, 23 Jan 2023 06:27:53 -0800 (PST) Received: from e120937-lin.. (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A563B3F64C; Mon, 23 Jan 2023 06:27:09 -0800 (PST) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: sudeep.holla@arm.com, Jonathan.Cameron@Huawei.com, f.fainelli@gmail.com, vincent.guittot@linaro.org, tarek.el-sherbiny@arm.com, nicola.mazzucato@arm.com, souvik.chakravarty@arm.com, wleavitt@marvell.com, wbartczak@marvell.com, Cristian Marussi Subject: [PATCH 0/3] Add SCMI v3.2 Powercap disable support Date: Mon, 23 Jan 2023 14:26:37 +0000 Message-Id: <20230123142640.1895975-1-cristian.marussi@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230123_062716_677830_C054FFA4 X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Upcoming SCMI v3.2 specification (publicly available as BETA at [1]) introduces support to disable powercapping as a whole on the desired zones. This small series at first add the needed support to the core SCMI Powercap protocol, exposing a couple more enable/disable protocol operations, and then wires such new ops in the related Powercap framework helpers. Based on v6.2-rc5. Thanks, Cristian [1]: https://developer.arm.com/documentation/den0056/e Cristian Marussi (3): firmware: arm_scmi: Refactor powercap get/set helpers firmware: arm_scmi: Add Powercap protocol enable support powercap: arm_scmi: Add support for disabling powercaps on a zone drivers/firmware/arm_scmi/powercap.c | 173 +++++++++++++++++++++++---- drivers/powercap/arm_scmi_powercap.c | 16 +++ include/linux/scmi_protocol.h | 18 +++ 3 files changed, 182 insertions(+), 25 deletions(-)