From patchwork Wed Aug 14 13:48:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13763518 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 973D7C3DA4A for ; Wed, 14 Aug 2024 13:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:To:Content-Transfer-Encoding :Content-Type:MIME-Version:Message-Id:Date:Subject:From:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=g+K203wjEq7mcpuEL1Q6bS3g3UV4hkTR736eXZyF2Vk=; b=l9XX2YNN4Mu/FG+xmfL7izGLeH rr+Thy4FbWpYUNsqrwXtWlMVKifPG7aExr2i5R0666vYDA59rqwTDbOGEK5wA0QZINZN5BcBbSnk9 7op51h/bV2Wfq/e9pp7k9C90QncBTROWMtibs+u+N9iszGuSEewYQS/UB4D1M8zecOVXWTIKxwqfa u4g5FzZ1mcxSYWzbEwEZeFpIexSogDcpkBPei3KQyHrWU+j2fUMpNC9j5ORF7Gcs5o/iXEYifqxMM 0bGHoQpSZKCQ3THUPS9YL7bI98htiP9y0maN2WpfZurh+s00gBiXZwfZXMoGylTiiHuFo1GKezQBJ mPrwU5bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seENp-000000079Cg-4A84; Wed, 14 Aug 2024 13:49:49 +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 1seENB-0000000793q-2K35 for linux-arm-kernel@lists.infradead.org; Wed, 14 Aug 2024 13:49:11 +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 951D4DA7; Wed, 14 Aug 2024 06:49:34 -0700 (PDT) Received: from [127.0.1.1] (e107155-lin.cambridge.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 18C853F6A8; Wed, 14 Aug 2024 06:49:07 -0700 (PDT) From: Sudeep Holla Subject: [PATCH 0/7] firmware: arm_ffa: FF-A basic v1.2 support Date: Wed, 14 Aug 2024 14:48:49 +0100 Message-Id: <20240814-ffa_v1-2-v1-0-9e9abef69b21@arm.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMO1vGYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDC0MT3bS0xPgyQ10jXbNkY2NzSwtzE+M0YyWg8oKi1LTMCrBR0bG1tQD X510DWgAAAA== To: linux-arm-kernel@lists.infradead.org, Sudeep Holla , op-tee@lists.trustedfirmware.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1256; i=sudeep.holla@arm.com; h=from:subject:message-id; bh=w+vZult3Gr5Up1lh6krI3Hap8lMZF6Xwg2+wom6Y29Y=; b=owEBbQKS/ZANAwAIAQBBurwxfuKYAcsmYgBmvLXSSmacWCdf4PLrtGsznnepYdb7sTtvZ6a15 VNvjTMza6eJAjMEAAEIAB0WIQS6ceUSBvMeskPdk+EAQbq8MX7imAUCZry10gAKCRAAQbq8MX7i mL9wD/wKSdFNei2Y6PPiahntG58NUVLAFigJegxeVHg24u+1Brirnd3YnflTCc7g6WCaRdBoQ3H qiix9X3nKZDTe0RLxqJ1ztBZVwbUnKlGQzcVw47pF5w9rsTaH7YCgk5gOJkZVvJ1kKPgYyyzH1g XzW7mTNZyssc6qjrc0JTM6qs9AShmSu8DZ+8isbhFvxjKzejZbOt0Lye3BB/+fmE05EM/vhr+UE 03ssO2Yd/wvW2AprYqQ547ok1w2mXTktqi3afY/2WvoiWjaFEJlcxocPJYLZTXYAz2wmQw/U/6F BB+oSDcqNBXgQySlEEPrlZnWh3ukbl+PPHQ9nuAemE0d6j+OZcl94zfDgiKCgA3YE0vtOhat2F2 y5dqGZVlkIAVPo8Ry2JxI1vQF20LL0yTm9jP7weX+gkn7xLcwRqxVi6olVEgmlG4KDaKfmWNTXi 5o9R1hQ4EmDOabW/LnKAaXgi0aXTLEshxaCND990ADq61LggcTVNEKntOfzN/LWkVpPZ8jAFUgM KW7ckUog1XkaerVePILLDEFR1/lpziIXSiZc0Y8NyPPunXlt+iO8tnyiuWiSjNi/xFvHqgZfGGq q+DLBpANqm+fJTQrG/uo3WhK+xNShpFoJqjgha4eLm3SbsgljSjasH9xH/dNBfe0IpEACu4Wt4m 77oa1SH+35PTWuw== 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-20240814_064909_689292_E0B2112B X-CRM114-Status: UNSURE ( 6.50 ) 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 This series add basic support for FF-A v1.2. It mainly includes support for newly added: 1. FFA_MSG_SEND_DIRECT_{REQ,RESP}2 2. FFA_PARTITION_INFO_GET_REGS 3. FFA_YIELD support in direct messaging Apart from these, the changes include support to fetch the Rx/Tx buffer size using FFA_FEATURES, addition of the FF-A FIDs for v1.2 and some coding style cleanups. Signed-off-by: Sudeep Holla --- Sudeep Holla (7): firmware: arm_ffa: Some coding style fixes firmware: arm_ffa: Update the FF-A command list with v1.2 additions firmware: arm_ffa: Move the function ffa_features() earlier firmware: arm_ffa: Add support for FFA_PARTITION_INFO_GET_REGS firmware: arm_ffa: Add support for FFA_MSG_SEND_DIRECT_{REQ,RESP}2 firmware: arm_ffa: Add support for FFA_YIELD in direct messaging firmware: arm_ffa: Fetch the Rx/Tx buffer size using ffa_features() drivers/firmware/arm_ffa/driver.c | 240 +++++++++++++++++++++++++++++--------- include/linux/arm_ffa.h | 12 ++ 2 files changed, 195 insertions(+), 57 deletions(-) --- base-commit: 7c626ce4bae1ac14f60076d00eafe71af30450ba change-id: 20240814-ffa_v1-2-6c33798743f3 Best regards,