From patchwork Mon Jul 17 16:12:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Marussi X-Patchwork-Id: 13316514 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 foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qLQqh-004Vu9-2k for linux-arm-kernel@lists.infradead.org; Mon, 17 Jul 2023 16:13:25 +0000 From: Cristian Marussi Subject: [PATCH 0/2] Introduce SCMI v3.2 PERF Indexing support Date: Mon, 17 Jul 2023 17:12:44 +0100 Message-ID: <20230717161246.1761777-1-cristian.marussi@arm.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+lwn-linux-arm-kernel=archive.lwn.net@lists.infradead.org List-Archive: To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, f.fainelli@gmail.com, vincent.guittot@linaro.org, aidapala@qti.qualcomm.com, souvik.chakravarty@arm.com, satyakim@qti.qualcomm.com, atouzni@qti.qualcomm.com, Cristian Marussi Hi all, this small series adds support for the upcoming optional support for Performance domains Level Indexing mode. PERF Protocol Level Indexing mode was introduced in SCMI V3.2 [1] as an optional way to describe Performance levels using a non-linear scale. SCMI platform can now optionally declare a Performance domain as supporting Level Indexing and report when queried a level-index and an indicative frequency that do not need to fit into a linear-scale. Platform will then expect such level-indexed domain to be accessed strictly via such indexes. The core SCMI PERF protocol has been modified to support such indexing transparently so that the SCMI driver using the protocol (like cpufreq) do not need to be changed, nor are aware of such mode. Based on v6.5-rc2. Any feedback, welcome. Thanks, Cristian [1]: https://developer.arm.com/documentation/den0056/latest/ --- Cristian Marussi (2): firmware: arm_scmi: Harden PERF domain info access firmware: arm_scmi: Add v3.2 PERF Level Indexing mode support drivers/firmware/arm_scmi/perf.c | 430 +++++++++++++++++++++++++------ 1 file changed, 348 insertions(+), 82 deletions(-)