Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1845898lqm; Fri, 3 May 2024 08:08:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0tVo9HXE1TqY/2j8thyQPeXJlNXmZ+64YXADSzCKG4cN9MG9Zjrh5X0zA/33dXThY461jK+fgdh3tIrKzOZRvB9DMGc0/KIWDTLqteQ== X-Google-Smtp-Source: AGHT+IGy1zLCZwNTqUrEA5ywYmSU5WGMJPEh0fM6k8BdsUjdXWpnnyKZmBGNH3BNm4Jlha2GTDON X-Received: by 2002:a05:622a:47:b0:437:c572:5979 with SMTP id y7-20020a05622a004700b00437c5725979mr3119956qtw.53.1714748880563; Fri, 03 May 2024 08:08:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714748880; cv=pass; d=google.com; s=arc-20160816; b=PFqtItDICtMm2AHFG3KN/sASQhzOGZedptCTK9tYAiXzXYrHGEAWSXZORHYObv9tDk g6EXK6aYahuZ3kn+p6+t4LKuGu1RFbPt0MQUNnTO6Yixj1vWAzB9EnX1QIy2wEeKzThz b5CvvtJWf2/zvvQrCfcdMNr4WRjltYv63o5env+vwkCmPYlyPdTCAt/BobDByXD4LzPt CN4bij2AX58APPgpkiCA3C54HAGcHEU4Ayn8mfB8KoqkE4TJrth3xxFP24816J+xxcm/ vOUi/TdKVPoZ/BVi2xC+Qs2jCYdaDTAQ88gtZfuGZK4k0c3xyarHwOwmAk/L4bchJrFu +d4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=P/m1fSaGjNDXkRtnYdxlhYXwTanVrGsDxXhJMeqT3BQ=; fh=I8HrMqQTkKl9bWVciC319zbIizBOqxvOhpad7KqKv4s=; b=HlQ0GDLOJhtQ7qSFo048gap+XhVwX16RTsf1eHOknUFLL5AoA/EAGTvDZWTHCvtX1R vuwURYODxe2VjP6fd0jbqe+aDAqq3wnlC9S617gyNbl3k0Pt8nPRLtEaDbfnob4l2SLW K/JTa4gOPX7ll+td9vyV9lrmhgYZB+cSPmCuYwRUFVylcc5WiRuWFl1ZLHOmkyVDjb+9 B/pRjwoK6vMlAAOPA+EBRZ2Ut5qLIlsqDyIQkJWxzzdghwufHBAdKYSr/+6roOFSWI+W qE6z4Aknyz7eCX3I/G/2TYALc537cnUxe3wNm5e/r30uqlvoW6l/KOWTjiNKFP1Td25G 2k0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JmQj3FgQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167805-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167805-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v12-20020a05622a130c00b0043c60ba81a4si2374353qtk.241.2024.05.03.08.08.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 08:08:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167805-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JmQj3FgQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167805-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167805-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 45BCD1C2162D for ; Fri, 3 May 2024 15:08:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0866E4B5AE; Fri, 3 May 2024 15:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JmQj3FgQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29B842B9C0; Fri, 3 May 2024 15:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714748874; cv=none; b=uYkfFSBtyqg/iY6dft88D6dzTnfEJZZ1sjDTTpMp+ULp9enj/09o7p5PL4WO60RyvZ/6KN1gwRIA6tqEb2UBL72JjjZQsRuZDY4cAvfmzGWjKa56C/SWG61Sqk8lidmWaUSyKzkBw4Q882Y5puDqw+XMtG0xkJim8zdJQ1p8i70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714748874; c=relaxed/simple; bh=KHw1jpQWTItXJP+LUq93GYr6K3+KcdpxHjWxkmV9Pds=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ef2dmMXjxX4RshJSrkdHAD0xJbv51/j7l2h+SG8+bEYm7WZbkPKMpaS1cedE6OK9xtTql0mdEfNsavIz6IqG90kkkE7n+BlHS4ji2Ax22Dn4Cog5opmyv2koTSA8w7zKeFDIyvKPi1uE0BCuJ+U3KPMXG0j5wl/RchcGbMFAiww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JmQj3FgQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5BD9C116B1; Fri, 3 May 2024 15:07:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714748874; bh=KHw1jpQWTItXJP+LUq93GYr6K3+KcdpxHjWxkmV9Pds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JmQj3FgQVSSyr+5lMGK3XaET7pSMaT0s4Jmne7pm4HMvunyevBMEUGfxk5LZi6T7f Go79Q8UTu8Bp3RIGm6VlJ9gD/SZXSnF4+sLD39F/nKlHaO+TUxpJU98fpHvAcORjWo Fd7+URG7ISR4qdOEDb/RD+VvFF52Jn077CRVRphUk9MklqhDNr7fSOalgIEyeZYSEo 0gKXBgy+rX0i1wsu3yZ145HxLWDUuD8TxbeEHKhJ+jFYagi5L9548nzXl/GE87Kbx5 G1iA3AZEZMq0zcgx6Gftwa5POW+2x3fc/kVpz1+HCfvPGWTC7a/Mke7uMf2aYAdqGY LStSg2BMKWsAg== Date: Fri, 3 May 2024 16:07:47 +0100 From: Will Deacon To: Sebastian Ene Cc: catalin.marinas@arm.com, james.morse@arm.com, jean-philippe@linaro.org, maz@kernel.org, oliver.upton@linux.dev, qperret@google.com, qwandor@google.com, sudeep.holla@arm.com, suzuki.poulose@arm.com, tabba@google.com, yuzenghui@huawei.com, lpieralisi@kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH 3/4] KVM: arm64: Fix the identification range for the FF-A smcs Message-ID: <20240503150747.GC18656@willie-the-truck> References: <20240418163025.1193763-2-sebastianene@google.com> <20240418163025.1193763-5-sebastianene@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240418163025.1193763-5-sebastianene@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) On Thu, Apr 18, 2024 at 04:30:25PM +0000, Sebastian Ene wrote: > The FF-A spec 1.2 reserves the following ranges for identifying FF-A > calls: > 0x84000060-0x840000FF: FF-A 32-bit calls > 0xC4000060-0xC40000FF: FF-A 64-bit calls. > > Use the range identification according to the spec and allow calls that > are currently out of the range(eg. FFA_MSG_SEND_DIRECT_REQ2) to be > identified correctly. > > Signed-off-by: Sebastian Ene > --- > arch/arm64/kvm/hyp/include/nvhe/ffa.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kvm/hyp/include/nvhe/ffa.h b/arch/arm64/kvm/hyp/include/nvhe/ffa.h > index d9fd5e6c7d3c..146e0aebfa1c 100644 > --- a/arch/arm64/kvm/hyp/include/nvhe/ffa.h > +++ b/arch/arm64/kvm/hyp/include/nvhe/ffa.h > @@ -9,7 +9,7 @@ > #include > > #define FFA_MIN_FUNC_NUM 0x60 > -#define FFA_MAX_FUNC_NUM 0x7F > +#define FFA_MAX_FUNC_NUM 0xFF > > int hyp_ffa_init(void *pages); > bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id); > -- > 2.44.0.769.g3c40516874-goog Acked-by: Will Deacon Will