From patchwork Thu Nov 16 19:16:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13458278 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 8C198C54E76 for ; Thu, 16 Nov 2023 21:46:17 +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=FPL1+29QFR0yGj4bQv3K6I3mVLwRK40KnGR6WkHNeQo=; b=i02bbs7P8I8hSv 37MiJi4AdsnimUzeSIKAJ37XBe4EqXMb6GoT7ztkHXvx5wCXN+XwJln8OObXfDPK4uhEBclOQFlqS MyBps0vjNw3g5BBQ/Cd/NZiwPKEqf2ATON3snehc2g9amBWgcD2IJPgCGwI0CO6HjS5DJD6vrYPpT Ya8HFea4lRo19wXAzbCA0kLvBG8WZ8WijPuJD2cm9/AJJmvVmgXSVcdEw6FKRy2Mq64un9A/FF5Rd 4m1EUv/6GCYEs4oUTtqv6iG9652bIm9FgnxqmVqqJ1+sFZ2+g18NWh7WISVPbmHY9lEb+Q7GS4+I4 dMeqrzTwqnKeXZu5Dzkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r3kBM-004wfy-1b; Thu, 16 Nov 2023 21:45:52 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r3hqY-004Sqk-2Q for linux-arm-kernel@bombadil.infradead.org; Thu, 16 Nov 2023 19:16:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=HiaCB9FtH/0iZiw0DWS22wqTDwf5hKNd9bqPc2lcyFQ=; b=q/jy1ugsY7ENfLJp7cjbdEEDHl KpBHbDlAdECxj0++2zWZuYdbxo8u6Ld/DyQv3cohb9amyVYqcMb4PxbQh129CIgwUH/cw7OimhSZw xi7F5Dm9U/Vv/rFLN9OE842n3Vi/+FVIRvmU9UEVatCY75nFPNtCDXCYt3y0SP2CMiKTQ8lZoUcSz KZCpiIvLsB4QQAXCnVOQDvbUlzLeFaOhwOEy8k2HK+5+Cshn3kqi39sojlt14AuaGArV8swH3Byq6 OnTgo2XfRLiS2vALj859EPYsQS1nXiBV50k067KlPvPAV285Dj3Jy1FEa9ZDob+i92C3h6MQRcDWp FpJjKToQ==; Received: from foss.arm.com ([217.140.110.172]) by desiato.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r3hqU-005mjs-21 for linux-arm-kernel@lists.infradead.org; Thu, 16 Nov 2023 19:16:13 +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 716321595; Thu, 16 Nov 2023 11:16:54 -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 7658A3F6C4; Thu, 16 Nov 2023 11:16:07 -0800 (PST) From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Cc: Sudeep Holla , Arnd Bergmann Subject: [GIT PULL] firmware: arm_ffa: Fixes for v6.7 Date: Thu, 16 Nov 2023 19:16:03 +0000 Message-ID: <20231116191603.929767-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231116_191611_192777_AEAD71ED X-CRM114-Status: GOOD ( 10.04 ) 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 b85ea95d086471afb4ad062012a4d73cd328fa86: Linux 6.7-rc1 (2023-11-12 16:19:07 -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.7 for you to fetch changes up to f1ed48ef97e2d12dee21e42db4a6ebb895ed3a79: firmware: arm_ffa: Fix ffa_notification_info_get() IDs handling (2023-11-13 11:51:26 +0000) ---------------------------------------------------------------- Arm FF-A fixes for v6.7 A bunch of fixes addressing issues around the notification support that was added this cycle. They address issue in partition IDs handling in ffa_notification_info_get(), notifications cleanup path and the size of the allocation in ffa_partitions_cleanup(). It also adds check for the notification enabled state so that the drivers registering the callbacks can be rejected if not enabled/supported. It also moves the partitions setup operation after the notification initialisation so that the driver has the correct state for notification enabled/supported before the partitions are initialised/setup. It also now allows FF-A initialisation to complete successfully even when the notification initialisation fails as it is an optional support in the specification. Initial support just allowed it only if the firmware didn't support notifications. Finally, it also adds a fix for smatch warning by declaring ffa_bus_type structure in the header. ---------------------------------------------------------------- Lorenzo Pieralisi (1): firmware: arm_ffa: Fix ffa_notification_info_get() IDs handling Sudeep Holla (6): firmware: arm_ffa: Declare ffa_bus_type structure in the header firmware: arm_ffa: Allow FF-A initialisation even when notification fails firmware: arm_ffa: Setup the partitions after the notification initialisation firmware: arm_ffa: Add checks for the notification enabled state firmware: arm_ffa: Fix FFA notifications cleanup path firmware: arm_ffa: Fix the size of the allocation in ffa_partitions_cleanup() drivers/firmware/arm_ffa/driver.c | 70 +++++++++++++++++++++++++-------------- include/linux/arm_ffa.h | 2 ++ 2 files changed, 48 insertions(+), 24 deletions(-)