From patchwork Wed Aug 11 07:57:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 1515627 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org 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=) Authentication-Results: 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=ImSo45jh; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4Gl2Jm5k3nz9sRN for ; Wed, 11 Aug 2021 17:59:04 +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=hqeUzHWGBffu7+TJhj02UyUXfmiHc7vk2BadhdMAakY=; b=ImSo45jhTFtEzE rRhByPBawjTk0NbUF+N7KnEeXnvIADMCKFTyQwJdiHql5YlKHXQMtZWhZv0NbMuPaDUg6THbFFjbc m0R3m7zQcnwh4t9J0OPhD/VOL+YLDtziZR2vaWTG0GH6qDdwSnEV3tmFxmj+R+Tz/Wbw9pDgZH1zI m4K5RXBhfbWaDObEAbbAIH6KompFJsWllBbWPWvv8TGTWZ0xM18BL1V7AkcuaPvC4h1IWoXsurOnp Db0HDkskNTWf7B+DkXIQp8g/KvKUTFgbKSpgOP9x2h9/POAqO6jdFzhIjEzjOUd7dy9aArs7K3gYQ OCMvHhUkrQUfHBGm9ibA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDj7v-005wmN-Fi; Wed, 11 Aug 2021 07:58:15 +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 1mDj7o-005wkS-DE for linux-arm-kernel@lists.infradead.org; Wed, 11 Aug 2021 07:58:12 +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 C10EB6D; Wed, 11 Aug 2021 00:58:04 -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 A51CC3F70D; Wed, 11 Aug 2021 00:58:03 -0700 (PDT) From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Cc: Sudeep Holla , Arnd Bergmann , Arnd Bergmann , Cristian Marussi , Olof Johansson Subject: [GIT PULL] firmware: arm_scmi: Updates for v5.15 Date: Wed, 11 Aug 2021 08:57:43 +0100 Message-Id: <20210811075743.707961-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-20210811_005808_583218_36FB4ABC X-CRM114-Status: GOOD ( 13.30 ) 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 bdb8742dc6f7c599c3d61959234fe4c23638727b: firmware: arm_scmi: Fix range check for the maximum number of pending messages (2021-07-13 11:42:20 +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.15 for you to fetch changes up to c0397c85b53d0bc6b081ff22d0d07e8eae149bba: firmware: arm_scmi: Use WARN_ON() to check configured transports (2021-08-09 11:43:32 +0100) ---------------------------------------------------------------- SCMI Updates for v5.15 The bulk of the addition this time is mainly refactoring to add support for Virtio transport for SCMI and the addition of the support itself. The refactoring includes allowing transport specific init/exit calls, making each transport as compile time configurable, supporting monotonically increasing tokens instead of using the next available free buffer index as the token for scmi messages which eases handling concurrent and out-of-order messages which is a must have for virtio transport. Virtio support itself is conformant to the virtio SCMI device spec [1]. Virtio device id 32 has been reserved for the SCMI device [2]. Other than the virtio support, there is one bug fix in the probe failure clean up path. [1] https://github.com/oasis-tcs/virtio-spec/blob/master/virtio-scmi.tex [2] https://www.oasis-open.org/committees/ballot.php?id=3496 ---------------------------------------------------------------- Cristian Marussi (10): firmware: arm_scmi: Add support for type handling in common functions firmware: arm_scmi: Remove scmi_dump_header_dbg() helper firmware: arm_scmi: Add optional transport_init/exit support firmware: arm_scmi: Introduce monotonically increasing tokens firmware: arm_scmi: Handle concurrent and out-of-order messages firmware: arm_scmi: Make .clear_channel optional firmware: arm_scmi: Make polling mode optional firmware: arm_scmi: Make SCMI transports configurable firmware: arm_scmi: Add priv parameter to scmi_rx_callback firmware: arm_scmi: Use WARN_ON() to check configured transports Igor Skalkin (4): firmware: arm_scmi: Make shmem support optional for transports firmware: arm_scmi: Add method to override max message number dt-bindings: arm: Add virtio transport for SCMI firmware: arm_scmi: Add virtio transport Peter Hilber (2): firmware: arm_scmi: Add message passing abstractions for transports firmware: arm_scmi: Add optional link_supplier() transport op Rishabh Bhatnagar (1): firmware: arm_scmi: Free mailbox channels if probe fails kernel test robot (1): firmware: arm_scmi: Fix boolconv.cocci warnings .../devicetree/bindings/firmware/arm,scmi.yaml | 8 +- MAINTAINERS | 1 + drivers/firmware/Kconfig | 34 +- drivers/firmware/arm_scmi/Kconfig | 95 +++ drivers/firmware/arm_scmi/Makefile | 8 +- drivers/firmware/arm_scmi/common.h | 113 +++- drivers/firmware/arm_scmi/driver.c | 686 +++++++++++++++++---- drivers/firmware/arm_scmi/mailbox.c | 2 +- drivers/firmware/arm_scmi/msg.c | 111 ++++ drivers/firmware/arm_scmi/smc.c | 3 +- drivers/firmware/arm_scmi/virtio.c | 491 +++++++++++++++ include/uapi/linux/virtio_ids.h | 1 + include/uapi/linux/virtio_scmi.h | 24 + 13 files changed, 1429 insertions(+), 148 deletions(-) create mode 100644 drivers/firmware/arm_scmi/Kconfig create mode 100644 drivers/firmware/arm_scmi/msg.c create mode 100644 drivers/firmware/arm_scmi/virtio.c create mode 100644 include/uapi/linux/virtio_scmi.h