From patchwork Fri Apr 26 10:50:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13644634 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 54D79C4345F for ; Fri, 26 Apr 2024 10:52:35 +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=GwlvFrG/QEEMiIf78uEu2/c9Fe43ctSr/vbGgjIVtUc=; b=1GiZCd5R0FzGPt 3nKmXYD1soJUkpa/ECjHqTbAIf7aOPIK9o3QUGXBL/5wyFcXO2vErPRpQZDc/wN4Vw+d8IeRGerVm 6B4PzDx+EcIoqr83s405/8ESM9mqHuP8XbkeVd0Pabc4zK8N72yXRXxJ3q5ONZaYQwP0iipoNVUWI rDCjqffQQP3DOuo1VcPhzRyfa7KmGBwly7KsU/kKBzgxZhgkjKvg+XSWwIokU/aPvXXUPRlz6wi26 2yLruf6cCB5eB4FLquixvx8q0+UMmkkCXJPLxMqaDYsO+1B9boZ7DGWOHZTup997kd+9c9lAc4byh hzi1PR+B9VxOLkBQf5Qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0JBn-0000000CEbs-2IIv; Fri, 26 Apr 2024 10:52:23 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0JAQ-0000000CDuj-3FBT for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2024 10:51: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 C99DF1007; Fri, 26 Apr 2024 03:51:25 -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 D7B6D3F64C; Fri, 26 Apr 2024 03:50:56 -0700 (PDT) From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Cc: Sudeep Holla , Arnd Bergmann , Olof Johansson Subject: [GIT PULL] firmware: arm_ffa: Updates for v6.10 Date: Fri, 26 Apr 2024 11:50:48 +0100 Message-ID: <20240426105051.1527016-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_035059_361480_4D2F3E46 X-CRM114-Status: GOOD ( 10.80 ) 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 4cece764965020c22cff7665b18a012006359095: Linux 6.9-rc1 (2024-03-24 14:10:05 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/ffa-updates-6.10 for you to fetch changes up to 3a3e2b83e8059679e92be4273c601ea21e105a89: firmware: arm_ffa: Avoid queuing work when running on the worker queue (2024-04-25 12:27:55 +0100) ---------------------------------------------------------------- Arm FF-A updates for v6.10 1. Support for handling notification pending interrupt(NPI) The FF-A uses the notification pending interrupt to inform the receiver that it has a pending notification. This is a virtual interrupt and is used by the following type of receivers: - A guest/VM running under a hypervisor(normal world usecase) - An S-EL1 SP running under a S-EL2 SPMC(secure world only usecase) Also, when the FF-A driver is running inside a guest VM under an hypervisor, the driver/guest VM doesn't have the permission/capability to request the creation of notification bitmaps. For a VM, the hypervisor reserves memory for its VM and hypervisor framework notification bitmaps and the SPMC reserves memory for its SP and SPMC framework notification bitmaps before the hypervisor initializes it. These changes include skipping of creation of notification bitmaps, some refactoring around schedule receiver interrupt(SRI) handling and addition of support for NPI. 2. Support for FF-A indirect messaging The FFA_MSG_SEND2 can be used to transmit a partition message from the Tx buffer of the sender(the driver in this case) endpoint to the Rx buffer of the receiver endpoint and inform the scheduler that the receiver endpoint must be run. Apart from these two main features, there is an optimisation to avoid queuing of a work when already running on the worker queue. ---------------------------------------------------------------- Dan Carpenter (1): firmware: arm_ffa: Fix memory corruption in ffa_msg_send2() Jens Wiklander (2): firmware: arm_ffa: Skip creation of the notification bitmaps firmware: arm_ffa: Add support for handling notification pending interrupt(NPI) Sudeep Holla (5): firmware: arm_ffa: Refactor SRI handling in prepartion to add NPI support firmware: arm_ffa: Fix kernel warning about incorrect SRI/NPI firmware: arm_ffa: Stash the partition properties for query purposes firmware: arm_ffa: Add support for FFA_MSG_SEND2 firmware: arm_ffa: Avoid queuing work when running on the worker queue drivers/firmware/arm_ffa/driver.c | 187 +++++++++++++++++++++++++++++--------- include/linux/arm_ffa.h | 27 ++++++ 2 files changed, 169 insertions(+), 45 deletions(-)