From mboxrd@z Thu Jan 1 00:00:00 1970 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 8F860CA0EF8 for ; Wed, 20 Aug 2025 01:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GTp9BgRWGtOvPkN0iyFQp8eqJy14GfSK7HDnNWLZEkc=; b=zrbKCUVa3YAbpWj9NrI7iXY5r8 HNHgZlMwKgz+7kqspgTMmqrqpiidYRn+tRbfsuz2hheyl752+aJ9mke9OTETWCV+7MIn3yvrHNPDZ UFTQkDC/hZipdwJvO5n2oz+GPVGrd8wNOgQbF3ESMyyMvnqsXsmEkWgMqvNxXkhTIzdV+d7uN6gNa g7IISEXMRAx9gaOzTLBdshM7QITZ7jVlq7uQC1JuvfOM6UQfGTfX/9Ew3oQ1LeX70rS7LMCyKMAQ9 5O2jk4LE/qJ0+MdIG6d5/fMwF63NLZ1BGEqSf89am5b80bcyRCtnnBLPz0kALoey02N2W5mj5hT5o B0wOxuhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uoXQU-0000000C45S-26NB; Wed, 20 Aug 2025 01:15:42 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uoXLB-0000000C30O-3wBI for linux-arm-kernel@lists.infradead.org; Wed, 20 Aug 2025 01:10:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 0AC9A46531; Wed, 20 Aug 2025 01:10:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9DD26C2BCAF; Wed, 20 Aug 2025 01:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755652212; bh=91Dm3OaQoci0blezXj2osVi2Hwa4r5Z+TXwDN3DncVc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=F+CJel44zHKB1+Jj5dIcJyp8aaAvojvp7l8Qoi050VOasAModbJqaCPMAn/vYCF/A A5FXWV76ybQvAez/8dXlAoWhn0jDpRN0R48lQMOyFHShP/WiQMKUhsXxYn00km9jvc Um+FZqwgW3ZoSDEcPOBu98Y2h9WzPTSN9Ecjy5z6Z57A6UjT0sO/gcI50Wzaxdds0j qApjVpQJSmLJnpxJ6SL4PHVpcUlKEakakvPU+vmqGe4/SH/QOKsQVWRgk7jhe81VyZ Kx2+lp27ar+4d116moMbXn+Qn6fr1ETX3LbVTfy836SH5Yy7YckH+zdSJhTNhGThTt alGo5yGvy3nug== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9486DCA0EF8; Wed, 20 Aug 2025 01:10:12 +0000 (UTC) From: Per Larsen via B4 Relay Date: Wed, 20 Aug 2025 01:10:10 +0000 Subject: [PATCH v11 6/6] KVM: arm64: Bump the supported version of FF-A to 1.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250820-virtio-msg-ffa-v11-6-497ef43550a3@google.com> References: <20250820-virtio-msg-ffa-v11-0-497ef43550a3@google.com> In-Reply-To: <20250820-virtio-msg-ffa-v11-0-497ef43550a3@google.com> To: Marc Zyngier , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Sudeep Holla Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, ahomescu@google.com, armellel@google.com, arve@android.com, ayrton@google.com, qperret@google.com, sebastianene@google.com, qwandor@google.com, Per Larsen X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755652211; l=1485; i=perlarsen@google.com; s=20250508; h=from:subject:message-id; bh=sIp58KQQ8EflePxKp11J+AU7g2DrDyk3wz9EOd9cxBI=; b=lj+3dEbL13Pvy/tWvzCZlmQ7YHuFzNRWcXR2BqWeAoOCSrdWmNgd6zvx3JAb+58XElapFUzLE gZ5HXR0KqnhBRsLBMVQVRsH8Rsc+edAI5GbW5Hz9O9TkFjLcr3vDva0 X-Developer-Key: i=perlarsen@google.com; a=ed25519; pk=jjc/Ta4VmrLRmMoahP6d1mBcKzvWU+nsmdtYe2oS2kQ= X-Endpoint-Received: by B4 Relay for perlarsen@google.com/20250508 with auth_id=402 X-Original-From: Per Larsen X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250819_181014_028248_74BC8B9D X-CRM114-Status: GOOD ( 10.42 ) 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: , Reply-To: perlarsen@google.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Per Larsen FF-A version 1.2 introduces the DIRECT_REQ2 ABI. Bump the FF-A version preferred by the hypervisor to enable implementation of the 1.2-only FFA_MSG_SEND_DIRECT_REQ2 and FFA_MSG_SEND_RESP2 messaging interfaces. Co-developed-by: Ayrton Munoz Signed-off-by: Ayrton Munoz Acked-by: Will Deacon Signed-off-by: Per Larsen --- arch/arm64/kvm/hyp/nvhe/ffa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kvm/hyp/nvhe/ffa.c b/arch/arm64/kvm/hyp/nvhe/ffa.c index a8ec1a94f3f8a86551895f4606918246c4ac1f39..4e16f9b96f637599873b16148c6e40cf1210aa3e 100644 --- a/arch/arm64/kvm/hyp/nvhe/ffa.c +++ b/arch/arm64/kvm/hyp/nvhe/ffa.c @@ -936,7 +936,7 @@ int hyp_ffa_init(void *pages) arm_smccc_1_2_smc(&(struct arm_smccc_1_2_regs) { .a0 = FFA_VERSION, - .a1 = FFA_VERSION_1_1, + .a1 = FFA_VERSION_1_2, }, &res); if (res.a0 == FFA_RET_NOT_SUPPORTED) return 0; @@ -957,10 +957,10 @@ int hyp_ffa_init(void *pages) if (FFA_MAJOR_VERSION(res.a0) != 1) return -EOPNOTSUPP; - if (FFA_MINOR_VERSION(res.a0) < FFA_MINOR_VERSION(FFA_VERSION_1_1)) + if (FFA_MINOR_VERSION(res.a0) < FFA_MINOR_VERSION(FFA_VERSION_1_2)) hyp_ffa_version = res.a0; else - hyp_ffa_version = FFA_VERSION_1_1; + hyp_ffa_version = FFA_VERSION_1_2; tx = pages; pages += KVM_FFA_MBOX_NR_PAGES * PAGE_SIZE; -- 2.51.0.rc1.167.g924127e9c0-goog