Message ID | 20230919-ffa_v1-1_notif-v2-0-6f3a3ca3923c@arm.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 DB063CE79AB for <linux-arm-kernel@archiver.kernel.org>; Tue, 19 Sep 2023 17:42:01 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=9gENVe4cCVdHFcLtNOQloDMyMbTd/K/uZYmbIdtzJNA=; b=3emQrd6EgUFjB6 zm9gHBbV+rZA5ZU4d70nNfzHQ416C7T1xI7xmpcIXSJ7NwO9GIfFuTbbUc2SQtH3A3do4mJh9m65Z rdC7aGsnkh7YklHZLI1KH0JwMry99OyDZsdjrdYZVM1FxY4Ig82jb+kZYiRDEEymuLKhY1jGd5Ksr K/xvY66Z5B/Nj10jF4HpmDAjL5MrjE9SDuXChZM1YZJvIffUaimRytsHQRLRZIz79XZbYyfV9D0Jl Bxxg71tJebvc8vk4tOwHr/ngLPlELucog6dEXLxk3sOIVERMsjLitM2Rtmnk5Y9UGAcYo34uOw7S0 g3A7TRHyb0xN2Beke1yA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qiej1-000xDG-0W; Tue, 19 Sep 2023 17:41:27 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qieiw-000xAs-34 for linux-arm-kernel@lists.infradead.org; Tue, 19 Sep 2023 17:41:25 +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 0DBF71FB; Tue, 19 Sep 2023 10:41:56 -0700 (PDT) Received: from e103737-lin.cambridge.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2F9363F5A1; Tue, 19 Sep 2023 10:41:17 -0700 (PDT) From: Sudeep Holla <sudeep.holla@arm.com> Subject: [PATCH RFT v2 00/18] firmware: arm_ffa: Add FF-A v1.1 support(notification + new memory descriptor format) Date: Tue, 19 Sep 2023 18:40:48 +0100 Message-Id: <20230919-ffa_v1-1_notif-v2-0-6f3a3ca3923c@arm.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACTdCWUC/x3NQQrCMBCF4auUWTuQpCrGA3gAcSclTOLEzsK0J LUUSu9u6vLn8fFWKJyFC1ybFTLPUmRINcyhgdBTejPKqzYYZVp1US3GSG7WqF0aJonIWvtgjyd rzwYq8lQYfaYU+p19xzJlpo+rbJ/HzFGW/98T7rcHdNv2AyVfOb6EAAAA To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sudeep Holla <sudeep.holla@arm.com>, Jens Wiklander <jens.wiklander@linaro.org>, Marc Bonnici <marc.bonnici@arm.com>, Coboy Chen <coboy.chen@mediatek.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, Olivier Deprez <olivier.deprez@arm.com> Cc: Joao Alves <joao.alves@arm.com>, Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, Will Deacon <will@kernel.org>, Quentin Perret <qperret@google.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3511; i=sudeep.holla@arm.com; h=from:subject:message-id; bh=3CdSSoesTcz29vvfc5L+ng97FLRT56WZCuNfC2ibU9k=; b=owEBbQKS/ZANAwAIAQBBurwxfuKYAcsmYgBlCd05xRMXBVY1vZARS6YM2GhjcVPopPYKCEnyU Ve6Aqnft0iJAjMEAAEIAB0WIQS6ceUSBvMeskPdk+EAQbq8MX7imAUCZQndOQAKCRAAQbq8MX7i mCJ7EAC2Wsss473OlrNKXReqyET8abWdDKGxJfdv93aw34Di8aMfO2CyZe8bCg7MesM7pNDPEUb o1pykg98tHgMbp2DrYgDmFm3Uc9X127f+gXGjHTuT0yDlJ3JdvnOwoZuRBN24Hwge81XL6J4L3M iUNCBF97UyWOhdS+y20YIpp5M5/VTaQyD/ehmyrtK7XWqrqvkB26ahiVx/6z0WsUnqFclgxehHu BtWbXQZnw1Z4EBFoo0t4uJff1LPhz5iOuwJbQdhWVAMupUuI1hNMPD3q7rDuIBimW94KaLCEaqr WSHYn/JAe67WbTCZv8EVoCeLFv74wiqDoGE1pLS3WfusEGOqGX7Ma4AX1O/LoJ4/Mc5fCiATlui 1pjDNuPkEy3YAl03JFjaq8Ct9DxADKr2K3Yq1ZRobmLZSZ74hkfzPuC6CGb1GidlJmn1F6IuA9e xtQMFCTwP8tWJ6Bc7ooVoKK5EuBN+8Crzgsrrana/PKHnIoYvWK7aie6vEYhnze4Apah+4yv3ur BxDy+WF0jqxNwgh5EjLNeSbvLpVs7a+lk67pam5Y9lP0jDUuv7I7GU3mEDDpcbshOwa4qQTetJM Xmx4BGkc5GSZiDcN+hr6GvZMyQM9zMnHLrEjatt8g1TwTvZSXj+AN7j5V9JufVqB5Q79bFLi1uK fR7fqtN1ijbNdxA== X-Developer-Key: i=sudeep.holla@arm.com; a=openpgp; fpr=7360A21742ADF5A11767C1C139CFD4755FE2D5B4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230919_104123_108846_80FC232E X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
firmware: arm_ffa: Add FF-A v1.1 support(notification + new memory descriptor format)
|
expand
|
The series adds initial support for the notifications and memory transaction descriptor changes added in FF-A v1.1 specification. The notification mechanism enables a requester/sender endpoint to notify a service provider/receiver endpoint about an event with non-blocking semantics. A notification is akin to the doorbell between two endpoints in a communication protocol that is based upon the doorbell/mailbox mechanism. The framework is responsible for the delivery of the notification from the sender to the receiver without blocking the sender. The receiver endpoint relies on the OS scheduler for allocation of CPU cycles to handle a notification. OS is referred as the receiver’s scheduler in the context of notifications. The framework is responsible for informing the receiver’s scheduler that the receiver must be run since it has a pending notification. The series also includes support for the new format of memory transaction descriptors. It also contains one fix for MEMORY LEND operation. v1[1]->v2: - Added a fix for MEMORY LEND operation - Upgraded the driver version - Added support for the new format of memory transaction descriptors - Remove unnecessary partition ID information in the notification callbacks - Fixed setting up drv_info->sched_recv_irq before enabling the SGIs - Added missing resetting of bitmap_created in notifications_cleanup() - Added some comments about GICv3 and SGI assumption - Removed partition ID from the notification hash table entries as they are redundant/incorrect. Added the notification type instead (SP/VM/Framework) - [1] https://lore.kernel.org/all/20230803-ffa_v1-1_notif-v1-0-6613ff2b1f81@arm.com/ Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> --- Sudeep Holla (18): firmware: arm_ffa: Update the FF-A command list with v1.1 additions firmware: arm_ffa: Implement notification bitmap create and destroy interfaces firmware: arm_ffa: Implement the notification bind and unbind interface firmware: arm_ffa: Implement the FFA_RUN interface firmware: arm_ffa: Implement the FFA_NOTIFICATION_SET interface firmware: arm_ffa: Implement the FFA_NOTIFICATION_GET interface firmware: arm_ffa: Implement the NOTIFICATION_INFO_GET interface firmware: arm_ffa: Initial support for scheduler receiver interrupt firmware: arm_ffa: Add schedule receiver callback mechanism firmware: arm_ffa: Add interfaces to request notification callbacks firmware: arm_ffa: Add interface to send a notification to a given partition firmware: arm_ffa: Add notification handling mechanism firmware: arm_ffa: Don't set the memory region attributes for MEM_LEND firmware: arm_ffa: Simplify the computation of transmit and fragment length KVM: arm64: FFA: Remove access of endpoint memory access descriptor array firmware: arm_ffa: Switch to using ffa_mem_desc_offset() accessor firmware: arm_ffa: Update memory descriptor to support v1.1 format firmware: arm_ffa: Upgrade the driver version to v1.1 arch/arm64/kvm/hyp/nvhe/ffa.c | 8 +- drivers/firmware/arm_ffa/driver.c | 769 +++++++++++++++++++++++++++++++++++++- include/linux/arm_ffa.h | 76 +++- 3 files changed, 827 insertions(+), 26 deletions(-) --- base-commit: ce9ecca0238b140b88f43859b211c9fdfd8e5b70 change-id: 20230803-ffa_v1-1_notif-e11bc9459962 Best regards,