From patchwork Wed Jul 6 11:50:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 1652968 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=y/9hQi6K; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LdHtz0vZHz9s1l for ; Wed, 6 Jul 2022 21:51:23 +1000 (AEST) 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=iyk+ones+HMQDZpLDeF1ymti2a1+pBkYhy1d9jUNamQ=; b=y/9hQi6Kz8ijpF ZGa2Q+jnVQX2bbhwnznHP2x7veynjl1xlq6/eDjOX/soAYjDKrrbqikM9iMVkqdprpXkrBHQUncWR ODJRf9ykyomKPLnyZmZrxp3KU3AOsKO14kAgp2Uv3gGdFr3uYmbcfWvJ3cwEujKVoNnfYZPrCZZBx cRpaQHXfxl4xY+Q7Z0BUVToTjExsE0N6Du6aDj4QQgkRQbOD1vzOkdGnKNXpDx9us43oWC1uE+N2M bejq8nHLQG6LJQZh+mkPqiEgNUl38O8vd4d7kRpj9YOS4H/SqHt766Iy3bP0iOSO4S14yyhwo97TI xK5fjKsoqnfn1UfCQWag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o93Yb-009ieL-OH; Wed, 06 Jul 2022 11:51:01 +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 1o93YT-009iaa-Ae for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2022 11:50:55 +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 1751E106F; Wed, 6 Jul 2022 04:50:52 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8807D3F66F; Wed, 6 Jul 2022 04:50:50 -0700 (PDT) From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Cc: Sudeep Holla , Arnd Bergmann , Cristian Marussi , Olof Johansson Subject: [GIT PULL] firmware: arm_scmi: Updates for v5.20 Date: Wed, 6 Jul 2022 12:50:45 +0100 Message-Id: <20220706115045.2272678-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220706_045053_499959_F34DAD93 X-CRM114-Status: GOOD ( 13.25 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi ARM SoC Team, Please pull ! Regards, Sudeep Content analysis details: (-5.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [217.140.110.172 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi ARM SoC Team, Please pull ! Regards, Sudeep -->8 The following changes since commit 4ce7e51dc712f8a006ce6abcc49f788c79287c03: firmware: arm_scmi: Remove usage of the deprecated ida_simple_xxx API (2022-06-27 16:58:14 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-updates-5.20 for you to fetch changes up to b27d04d5a51c28322cadb18d8d2ff5d0fb892fff: firmware: arm_scmi: Use fast channel tracing (2022-07-04 14:28:43 +0100) ---------------------------------------------------------------- Arm SCMI updates for v5.20 The main additions this time around are: 1. The capability to trace full SCMI message headers and payloads. The recent unearthing of chain of old firmware issues motivated this effort so that it is easier to trace them and debug quicker than it took this time around in absence of such tracing. 2. SCMI System power control driver to handle platform's requests for a graceful shutdown. Though the system power control protocol has been around since the begining of SCMI, it lacked the timeout information that was added in SCMI v3.1 that enables kernel to take appropriate action within the timeout and doesn't have to rely on any other user inputs(which was blocking factor for addition of this driver earlier) 3. Support for SCMI Power Capping protocol that was introduced in SCMI v3.1 This protocol is intended for controlling and monitoring the power consumption of power capping domains. The firmware also provides the hierarchy of powercap domains by providing parent domain information. It also contains a bug fix in the old SCPI driver addressing possible user-after-free issues. ---------------------------------------------------------------- Cristian Marussi (12): include: trace: Add SCMI full message tracing firmware: arm_scmi: Use new SCMI full message tracing firmware: arm_scmi: Support only one single system power device firmware: arm_scmi: Add SCMI v3.1 System Power extensions firmware: arm_scmi: Add devm_protocol_acquire helper firmware: arm_scmi: Add SCMI System Power Control driver dt-bindings: firmware: arm,scmi: Add support for powercap protocol firmware: arm_scmi: Add SCMI v3.1 powercap protocol basic support firmware: arm_scmi: Generalize the fast channel support firmware: arm_scmi: Add SCMI v3.1 powercap fast channels support include: trace: Add SCMI fast channel tracing firmware: arm_scmi: Use fast channel tracing Sudeep Holla (1): firmware: arm_scpi: Ensure scpi_info is not assigned if the probe fails .../devicetree/bindings/firmware/arm,scmi.yaml | 10 + drivers/firmware/arm_scmi/Kconfig | 12 + drivers/firmware/arm_scmi/Makefile | 3 +- drivers/firmware/arm_scmi/driver.c | 281 ++++++- drivers/firmware/arm_scmi/perf.c | 225 ++---- drivers/firmware/arm_scmi/powercap.c | 866 +++++++++++++++++++++ drivers/firmware/arm_scmi/protocols.h | 23 + drivers/firmware/arm_scmi/scmi_power_control.c | 362 +++++++++ drivers/firmware/arm_scmi/system.c | 17 +- drivers/firmware/arm_scpi.c | 61 +- include/linux/scmi_protocol.h | 134 ++++ include/trace/events/scmi.h | 56 ++ 12 files changed, 1836 insertions(+), 214 deletions(-) create mode 100644 drivers/firmware/arm_scmi/powercap.c create mode 100644 drivers/firmware/arm_scmi/scmi_power_control.c