From patchwork Wed Nov 2 14:01:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 1698171 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@legolas.ozlabs.org Authentication-Results: legolas.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=) Authentication-Results: legolas.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=vxPUU0qy; dkim-atps=neutral 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N2T9w0lCcz23l6 for ; Thu, 3 Nov 2022 01:03:00 +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=KpLpVVCOZ4uLdLABOQ+K/8iXBPmE4Fz4kB5Jp9t5UNk=; b=vxPUU0qyNaIYiJ 4S71b0jdYyvyojz19UoQsADJp+QzUBZgjcrGFPIk0p8n1p4RFbWLL3o1U9ghMdvykxMCioeeHopLP Mr2paZVB0FPSW5aAitx83zDS9uPCRmXNOg+tZLnqIDn6pPAV/0I5vhGI2Pc5aB1yrtU9SKuzC05Cr Vr9L5MN+RHRgn9xTgCikFYHmV3Om68+aEB6vMtjfyClzUN5W9MgprPfAcZdHTMkoOiLJ/PeYyUlF9 kkE0nhA5j0pM/dZQh3Ef1N+0a2kip1lD0nhkBrptxeHJCFUP7JeC+GojSWCerPbkrlDAcKbWcqJMn pw7lrdiNEQTeJb8wDf0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqEJb-00BP6a-79; Wed, 02 Nov 2022 14:01:59 +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 1oqEJX-00BP4K-SM for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2022 14:01: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 D41231FB; Wed, 2 Nov 2022 07:01:53 -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 8D1033F534; Wed, 2 Nov 2022 07:01:46 -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: Fixes for v6.1 Date: Wed, 2 Nov 2022 14:01:42 +0000 Message-Id: <20221102140142.2758107-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221102_070156_000093_B19496D1 X-CRM114-Status: GOOD ( 12.62 ) X-Spam-Score: -2.3 (--) 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: (-2.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender 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 9abf2313adc1ca1b6180c508c25f22f9395cc780: Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-fixes-6.1 for you to fetch changes up to 1eff6929aff594fba3182660f7b6213ec0ceda0c: firmware: arm_scmi: Fix deferred_tx_wq release on error paths (2022-11-01 11:36:20 +0000) ---------------------------------------------------------------- Arm SCMI fixes for v6.1 A bunch of fixes to handle: 1. A possible resource leak in scmi_remove(). The returned error value gets ignored by the driver core and can remove the device and free the devm-allocated resources. As a simple solution to be able to easily backport, the bind attributes in the driver is suppressed as there is no need to support it. Additionally the remove path is cleaned up by adding device links between the core and the protocol devices so that a proper and complete unbinding happens. 2. A possible spin-loop in the SCMI transmit path in case of misbehaving platform firmware. A timeout is added to the existing loop so that the SCMI stack can bailout aborting the transmission with warnings. 3. Optional Rx channel correctly by reporting any memory errors instead of ignoring the same with other allowed errors. 4. The use of proper device for all the device managed allocations in the virtio transport. 5. Incorrect deferred_tx_wq release on the error paths by using devres API(devm_add_action_or_reset) to manage the release in the error path. ---------------------------------------------------------------- Cristian Marussi (6): firmware: arm_scmi: Cleanup the core driver removal callback firmware: arm_scmi: Suppress the driver's bind attributes firmware: arm_scmi: Make tx_prepare time out eventually firmware: arm_scmi: Make Rx chan_setup fail on memory errors firmware: arm_scmi: Fix devres allocation device in virtio transport firmware: arm_scmi: Fix deferred_tx_wq release on error paths drivers/firmware/arm_scmi/bus.c | 11 ++++++++++ drivers/firmware/arm_scmi/common.h | 5 ++++- drivers/firmware/arm_scmi/driver.c | 41 ++++++++++++++++++++++++------------- drivers/firmware/arm_scmi/mailbox.c | 2 +- drivers/firmware/arm_scmi/optee.c | 2 +- drivers/firmware/arm_scmi/shmem.c | 31 ++++++++++++++++++++++++---- drivers/firmware/arm_scmi/smc.c | 2 +- drivers/firmware/arm_scmi/virtio.c | 26 ++++++++++++++--------- 8 files changed, 88 insertions(+), 32 deletions(-)