From patchwork Fri Jul 21 11:40:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13321921 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7117FEB64DC for ; Fri, 21 Jul 2023 11:41:19 +0000 (UTC) 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=G1zL2wPWIhAbc+pXj6UYCg9izp29WQ9CnIgFHeWvEqY=; b=eH60PA1Bkf353J 44EXAC2+6fiz09bUDJSywTyz3AVO4eCDAh1Nos0ThsH3yOuP/5i29Rcz7jRUh1T7JzbXBqaESf2FF mQ5wHkei3STfHZMS5tdg/xCBS5cxMe8VQZE2dutngHx/ysvkU9CB3AI+60iobnfCrV+onWrYsnkHU T0kUmJHoA/HL1hUEiqqde3D0fW5Lhf2XyN64HpUulyxJ3Bq50GdNkPi6/tOBpEDnPsL7cKxCTjpjG H2qjFwzW6K5FPyIi10quz7xXRFfIqdvzkc7BqBHj5iS3MMntgpwJ9nXhmrpuE8DWqflD1wZFbNahA DEsRoaleg6wcSL9wsfsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qMoVI-00DxOO-35; Fri, 21 Jul 2023 11:41:00 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qMoVG-00DxNp-16 for linux-arm-kernel@lists.infradead.org; Fri, 21 Jul 2023 11:40:59 +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 E40A42F4; Fri, 21 Jul 2023 04:41:38 -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 6ECB23F738; Fri, 21 Jul 2023 04:40:54 -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/smccc: Fixes for v6.5 Date: Fri, 21 Jul 2023 12:40:52 +0100 Message-ID: <20230721114052.3371923-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230721_044058_425513_6E70D29C X-CRM114-Status: UNSURE ( 8.43 ) X-CRM114-Notice: Please train this message. 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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi ARM SoC Team, Please pull ! Please note I have included one SMCCC fix as part of my normal SCMI pull request as SMCCC is extremely low traffic normally. Regards, Sudeep -->8 The following changes since commit 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5: Linux 6.5-rc1 (2023-07-09 13:53:13 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-smccc-fixes-6.5 for you to fetch changes up to d1ff11d7ad8704f8d615f6446041c221b2d2ec4d: firmware: arm_scmi: Fix chan_free cleanup on SMC (2023-07-20 13:31:58 +0100) ---------------------------------------------------------------- Arm SCMI and SMCCC fixes for v6.5 Set of fixes addressing issues: 1. Possible use of uninitialised results structure in the SMCCC SOC_ID driver if the driver fails to complete the initialisation 2. Missed signed error return value handling from simple_write_to_buffer() used in scmi_dbg_raw_mode_common_write() 3. The OF node reference obtained is not dropped if node is incompatible with "arm,scmi-shmem" in the mailbox as well as SMC transport channel setup 4. The possibility of a late response to an in-flight pending transaction that could end up triggering the interrupt handler after the SCMI core has cleaned up the transport channel as part of core driver remove ---------------------------------------------------------------- Cristian Marussi (1): firmware: arm_scmi: Fix chan_free cleanup on SMC Krzysztof Kozlowski (1): firmware: arm_scmi: Drop OF node reference in the transport channel setup Punit Agrawal (1): firmware: smccc: Fix use of uninitialised results structure Sukrut Bellary (1): firmware: arm_scmi: Fix signed error return values handling drivers/firmware/arm_scmi/mailbox.c | 4 +++- drivers/firmware/arm_scmi/raw_mode.c | 5 ++++- drivers/firmware/arm_scmi/smc.c | 21 ++++++++++++++------- drivers/firmware/smccc/soc_id.c | 5 ++--- 4 files changed, 23 insertions(+), 12 deletions(-)