From patchwork Mon Jan 22 16:16:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13525718 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 83BDCC47DAF for ; Mon, 22 Jan 2024 16:17:27 +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=yedr2DaLScj2eWaFX1CiSRcNQQ+mZbSIT+Z5i0mTr2U=; b=2JLRjQs13Y1cL2 n3Cdy/BBH+C7sTHO5p4kDyZihU0lXh8p34TKR+qI/UptOOWqkq5sylg/kUMIDaay9N/t4qE9+Mzf+ OUYXR+pD6mu3+s0n7qNJwVPqPRnjbttl0FSgksoRuFBlApl/fop87rBvK4ZVCIMQ1/j6DkwEgZcLc 41cfvzVfwr5DH4J8G0RAwKLUxQOp2IhT6/jPXhLv57QbbeXw9n2uC8k45s6xUEgkmxxrh5cLJQlp4 iig58JmNILhLMzhmkziwG7iMozqnC0CtW6M2WKnVnNdONI/+Clszc7AVMdo8RyYFVzhvBZkaSsZYQ XDwO3juAtXj+MNrHt/qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRwyt-00CuKA-0x; Mon, 22 Jan 2024 16:17:03 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRwyp-00CuIJ-30 for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 16:17:01 +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 29DB51FB; Mon, 22 Jan 2024 08:17:43 -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 2D5353F5A1; Mon, 22 Jan 2024 08:16:56 -0800 (PST) From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Cc: Sudeep Holla , Arnd Bergmann , Olof Johansson Subject: [GIT PULL] firmware: arm_ffa: Fixes for v6.8 Date: Mon, 22 Jan 2024 16:16:50 +0000 Message-ID: <20240122161652.3551159-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240122_081700_297782_4B2B76C8 X-CRM114-Status: UNSURE ( 5.78 ) 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 ! Regards, Sudeep -->8 The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d: Linux 6.8-rc1 (2024-01-21 14:11:32 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/ffa-fixes-6.8 for you to fetch changes up to 0c565d16b80074e57e3e56240d13fc6cd6ed0334: firmware: arm_ffa: Handle partitions setup failures (2024-01-22 10:07:12 +0000) ---------------------------------------------------------------- Arm FF-A fixes for v6.8 Quite a few fixes addressing issues around missing RW lock initialisation in ffa_setup_partitions(), missing check for xa_load() return value, use of xa_insert instead of xa_store to flag case of duplicate insertion. It also simplifies ffa_partitions_cleanup() with xa_for_each() and xa_erase() instead of xa_extract() and kfree(). Finally it includes fixes around handling of partitions setup failures during initialisation. ---------------------------------------------------------------- Cristian Marussi (6): firmware: arm_ffa: Add missing rwlock_init() in ffa_setup_partitions() firmware: arm_ffa: Add missing rwlock_init() for the driver partition firmware: arm_ffa: Check xa_load() return value firmware: arm_ffa: Simplify ffa_partitions_cleanup() firmware: arm_ffa: Use xa_insert() and check for result firmware: arm_ffa: Handle partitions setup failures drivers/firmware/arm_ffa/driver.c | 85 ++++++++++++++++++++++++++------------- 1 file changed, 57 insertions(+), 28 deletions(-)