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 C4CE2C4345F for ; Fri, 3 May 2024 15:08:20 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CDd9AngwHQzEoCR9AaZX3uFgXSlcuJ+beXKAIHkX9Dc=; b=4VumeSdaozwdKl R4DgvakFC4quinjxBG+/y6tMHZtRsOyUH3/3ZLAt9j5vVJzHi0BJk1eauYPrE7FCe0cIQFVd9IwJl 86W65RQRQz73uSHqKvtO6GbCr06EVIho8L7HzZ2byUDq6Hh/kJ8UWho9bgwizQrClwl1CvZ1BH4gL NToG6ehZgrxXIIP9gJ7xWxz8m5jX5leddSqlkyWKw3d+H16dOtjDxNPM2tcamNwtWtlKtuFh1oIA7 BykfgNuT36bqq7BHTkLoVLNODZQjP8bDscmBT3KDwMsrMwnYYGoK4xzayatbGChNRqY8yMc+Zdnd8 6zt0DH35BQrQgByPcPYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2uW5-0000000GyEl-3ThQ; Fri, 03 May 2024 15:08:05 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2uW2-0000000GyBH-0Unn for linux-arm-kernel@lists.infradead.org; Fri, 03 May 2024 15:08:04 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 99CAECE198B; Fri, 3 May 2024 15:07:56 +0000 (UTC) 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240418163025.1193763-5-sebastianene@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240503_080802_380957_C14301F4 X-CRM114-Status: GOOD ( 15.76 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel