From patchwork Wed Dec 22 14:13:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 1572209 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=3JYpsPhJ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::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:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JJwLS38GSz9sCD for ; Thu, 23 Dec 2021 01:14:24 +1100 (AEDT) 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=H4Nd1eFnMJK12GRqaMMum+dHhcmzFRoBrAM7hONQBBU=; b=3JYpsPhJXxoGbX TB9SxDaJg3DutAVcu03F6RbmbPHl+mvauTG3lSiko6oIyIci2NoUYkZHf5Iy8OebZp8pU1f3orzZu 8wnxznY+ausMPKtvagOwdS1jZkdaP0Qki0WIaoCEZRjfScGq+WkNvR1sEt7AY1664EEer+6560+xs d7Y3Vhy/waV9nmvk+P2wYdVJcne6LQosKRJzpHo7mjZgzjKi6wuvPZ+AKh0QBMdIIwEVZ3u9XWpiI HDzwdXEwjk+pCl7DCB2hoC3WhQXB+jBQBCoekGDeagvshD3yqS7OO7+xmfv6D8vMOvn67TL54nc0U r5OohKy5oXdUagk5Ietg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n02NU-00Ae1t-Iw; Wed, 22 Dec 2021 14:14:00 +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 1n02NR-00Ae1c-4r for linux-arm-kernel@lists.infradead.org; Wed, 22 Dec 2021 14:13:58 +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 873C7D6E; Wed, 22 Dec 2021 06:13:55 -0800 (PST) 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 827973F774; Wed, 22 Dec 2021 06:13:54 -0800 (PST) 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.17 Date: Wed, 22 Dec 2021 14:13:42 +0000 Message-Id: <20211222141342.56395-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_061357_319432_1C8FFD2B X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. 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 026d9835b62bba34b7e657a0bfb76717822f9319: firmware: arm_scmi: Fix type error assignment in voltage protocol (2021-11-17 11:24:50 +0000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-updates-5.17 for you to fetch changes up to 94d0cd1da14af0042c8ee7c2cf401dfc321c575c: firmware: arm_scmi: Add new parameter to mark_txdone (2021-12-21 10:59:38 +0000) ---------------------------------------------------------------- Arm SCMI firmware interface updates for v5.17 Couple of main additions: - Support for OPTEE based SCMI transport to enable using SCMI service provided by OPTEE on some platforms - Support for atomic SCMI transports which enables few SCMI transactions to be completed in atomic context. This involves other refactoring work associated with it. It also marks SMC and OPTEE as atomic transport as the commands are completed once the return Other changes involves some trace and log enhancements and a miscellaneous bug fix. ---------------------------------------------------------------- Cristian Marussi (15): firmware: arm_scmi: Review some virtio log messages firmware: arm_scmi: Make virtio Version_1 compliance optional firmware: arm_scmi: Perform earlier cinfo lookup call in do_xfer firmware: arm_scmi: Set polling timeout to max_rx_timeout_ms firmware: arm_scmi: Refactor message response path include: trace: Add new scmi_xfer_response_wait event firmware: arm_scmi: Use new trace event scmi_xfer_response_wait firmware: arm_scmi: Add configurable polling mode for transports firmware: arm_scmi: Make smc transport use common completions firmware: arm_scmi: Add sync_cmds_completed_on_ret transport flag firmware: arm_scmi: Make smc support sync_cmds_completed_on_ret firmware: arm_scmi: Make optee support sync_cmds_completed_on_ret firmware: arm_scmi: Add support for atomic transports firmware: arm_scmi: Add atomic mode support to smc transport firmware: arm_scmi: Add new parameter to mark_txdone Etienne Carriere (2): dt-bindings: arm: Add OP-TEE transport for SCMI firmware: arm_scmi: Add optee transport Sudeep Holla (1): firmware: arm_scmi: optee: Drop the support for the OPTEE shared dynamic buffer Wei Yongjun (1): firmware: arm_scmi: optee: Fix missing mutex_init() .../devicetree/bindings/firmware/arm,scmi.yaml | 65 +++ drivers/firmware/arm_scmi/Kconfig | 41 ++ drivers/firmware/arm_scmi/Makefile | 1 + drivers/firmware/arm_scmi/common.h | 26 +- drivers/firmware/arm_scmi/driver.c | 207 ++++++-- drivers/firmware/arm_scmi/mailbox.c | 3 +- drivers/firmware/arm_scmi/optee.c | 567 +++++++++++++++++++++ drivers/firmware/arm_scmi/smc.c | 98 +++- drivers/firmware/arm_scmi/virtio.c | 22 +- include/linux/scmi_protocol.h | 8 + include/trace/events/scmi.h | 28 + 11 files changed, 986 insertions(+), 80 deletions(-) create mode 100644 drivers/firmware/arm_scmi/optee.c