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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 C12B2EE4987 for ; Wed, 11 Sep 2024 10:01:33 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.796362.1205912 (Exim 4.92) (envelope-from ) id 1soK9r-00033N-H7; Wed, 11 Sep 2024 10:01:07 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 796362.1205912; Wed, 11 Sep 2024 10:01:07 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1soK9r-00033G-EH; Wed, 11 Sep 2024 10:01:07 +0000 Received: by outflank-mailman (input) for mailman id 796362; Wed, 11 Sep 2024 10:01:06 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1soK9q-00033A-Iv for xen-devel@lists.xenproject.org; Wed, 11 Sep 2024 10:01:06 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1soK9p-0007tf-Hg; Wed, 11 Sep 2024 10:01:05 +0000 Received: from [15.248.2.235] (helo=[10.24.67.23]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1soK9p-00054J-BN; Wed, 11 Sep 2024 10:01:05 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=dsKhvNBhUALnWUrPmPzJ6i6IPFMiYXal4PtSSvk6H+c=; b=G0o3s4ODA7AFdCcOV6Y6yBW1t/ m9tGVaspT+aqI6+hatFTlanJJbZv5yYd1Gwh1iC/xphVoj+5HLx5UDjTdgtDL8oKXvvOsi+6yzZOH 1Gt2GeiGmUhgP1DoCN23COgK3gEASHGOz10W7ipqzVtOuWNG2pe6Zzg/9blzE9Q8XDNQ=; Message-ID: <2dc23b55-4ecc-4682-9f8f-ceb43763de4e@xen.org> Date: Wed, 11 Sep 2024 11:01:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm/gicv3: Fix ICH_VTR_EL2.ListRegs mask Content-Language: en-GB To: Bertrand Marquis , Michal Orzel Cc: Xen-devel , Stefano Stabellini , Volodymyr Babchuk References: <20240903122147.2226623-1-michal.orzel@amd.com> <024A34D9-7D40-437D-9CC2-2CCC25A5DC57@arm.com> From: Julien Grall In-Reply-To: <024A34D9-7D40-437D-9CC2-2CCC25A5DC57@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/09/2024 09:49, Bertrand Marquis wrote: > Hi Michal, > >> On 3 Sep 2024, at 14:21, Michal Orzel wrote: >> >> According to GIC spec IHI 0069H.b (12.4.9), the ListRegs field of >> ICH_VTR_EL2 can have value between 0b00000..0b01111, as there can >> be maximum 16 LRs (field value + 1). Fix the mask used to extract this >> value which wrongly assumes there can be 64 (case for GICv2). >> >> Fixes: bc183a0235e0 ("xen/arm: Add support for GIC v3") >> Signed-off-by: Michal Orzel > > Nice finding. +1. I guess we haven't seen any issue so far because the bits afterwards are RES0. > > Reviewed-by: Bertrand Marquis Committed. Cheers, -- Julien Grall