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 1BA5CC83F1A for ; Sat, 19 Jul 2025 02:27: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: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=fLs4v7kzdF96IVpHy0tn3TmUJ6jzGkZ/9GYWBWIq6XI=; b=lF9lzr+WyNETNqc3YeiMFH2NcK 2luPi5gNcKjvxcIaC2U8SsL47h26Hnnjoj9ooGQQaHvygHTpz86608dg8Co66HFIoa8Je4Fgvtdnz 6X2UYaGEMCMXLCQ22itoOW9Q3SnUmDIP8Tfn6c90z/puT4HS8enagytBB+pZ8W1Lo2uLiBlQqWVJ7 vSZzVZeYaR4Fk8rpcgNUcasVZ2OPxUpwS8lE8tYfPAPpPd4TeqcB3hl8Vz1EywLzpu+b3Jqyman6T RVrv8XyCWGqR/FxM+nLCtOhhVWh87hZZO5DbLN/A0JtNELZy8raNwktQESGfXIaIFuwx/jtCZofBe ocUueuew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ucxHs-0000000DkRi-3ui4; Sat, 19 Jul 2025 02:26:56 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ucx3L-0000000DjJU-24zF for linux-arm-kernel@lists.infradead.org; Sat, 19 Jul 2025 02:11:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 860F3A577EE; Sat, 19 Jul 2025 02:11:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E1F57C113CF; Sat, 19 Jul 2025 02:11:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752891113; bh=iD6hxJrjXS0zgg4c0EA8e0gUqO8fQd33QdXRgVaGfds=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DrWSt6DUreCWlGuacQiROAKsz7Oced+Lk9MpuCiuYDOy8QXTGG+h8W2oeB2+HXnly VUHjwXXi9jwFtEgNwOWwo9chnFvUvecpa8WZsn/XrFl8TZCcoHaNFIaD4FoHxBcxBI o7FqBbCr1NnFtDQBWYKP3FfIcrnbXfQSZl1zoi0gFjd/tdub4JVUao4DCC9wop/IVd Dc70dKoU+DrmBPLbLVnoy+611VoCYs0lOgI3/CZS+GHoBd0XVyP21vUilF/kprlL7n CFjGp2AY6xRG3bIWhuSRJhYFmIFh8fxYdsFEBkVEPwzH9C6y4vLJ4eUMIcr3e77l+M bCYCwkgP/gZ1w== 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 D7A90C83F34; Sat, 19 Jul 2025 02:11:53 +0000 (UTC) From: Per Larsen via B4 Relay Date: Sat, 19 Jul 2025 02:11:28 +0000 Subject: [PATCH v8 6/7] 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: <20250719-virtio-msg-ffa-v8-6-03e8e8dbe856@google.com> References: <20250719-virtio-msg-ffa-v8-0-03e8e8dbe856@google.com> In-Reply-To: <20250719-virtio-msg-ffa-v8-0-03e8e8dbe856@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=1752891112; l=1443; i=perlarsen@google.com; s=20250508; h=from:subject:message-id; bh=txfowO+ukMF1cKRkbyV9oZR3idRq8KAQfVviP632O2Y=; b=NmwH2Kl37jGkp56jhbSbjWyVhPM0UcN4v1fv/oFMEnt32iE+WCcBK521NsQkGB53tMdYwe3+b NYM1hXaTEcXBUsHjEqgsfXeqjbpo/+wdUCh2HaU7CK5szV0s45uKG7y 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-20250718_191155_673323_CC556C8F 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 as a precursor to implementing 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 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 2cbecc9af5d27a9e7c8497001cf9b0987c72bdb4..f6d964df53c3e21ba85984f35cc7b6859012d1b0 100644 --- a/arch/arm64/kvm/hyp/nvhe/ffa.c +++ b/arch/arm64/kvm/hyp/nvhe/ffa.c @@ -930,7 +930,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; @@ -951,10 +951,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.50.0.727.gbf7dc18ff4-goog