From nobody Sat May 4 20:46:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1611142061; cv=none; d=zohomail.com; s=zohoarc; b=ISZ7tqYCx+Ln9cQ1Gb9KY5r/nvkqZK/TLqLqGhXZs6Bh6W6vD7PZB1zQ4OsuKfUWXLFDM1pFn0auCFBIO5FUqoc5qlZd1r/KALlkympFi7r5LOPSUATQsgHF8H533fIpGLpKC5kuGySEdId6E31jgfK/EIA1XjWK3mWcVG6f5/A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611142061; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=0zj/cEgR8rjOjDz70/Tm5h+jN5er+kopqLJWwY+SRyw=; b=OUvAO4RvF1ZfTQmUBu1gJQuoLYssncvmjBVyIp9C/iBRJrnMaUseZsTAYCnQjV7iFT91FYJDtcKty8hrPOHHViG7H9mK+35zaWi4ybMi621dLtFvZvTp2vnJowSjyWlonrGREmdIt1w93F96C0G6MApCjEHdXdh1hS605aVmOHM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1611142061900608.5718732748567; Wed, 20 Jan 2021 03:27:41 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.71336.127643 (Exim 4.92) (envelope-from ) id 1l2Bdk-0002q1-Pv; Wed, 20 Jan 2021 11:27:08 +0000 Received: by outflank-mailman (output) from mailman id 71336.127643; Wed, 20 Jan 2021 11:27:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l2Bdk-0002pu-Mp; Wed, 20 Jan 2021 11:27:08 +0000 Received: by outflank-mailman (input) for mailman id 71336; Wed, 20 Jan 2021 11:27:06 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l2Bdi-0002pp-KO for xen-devel@lists.xenproject.org; Wed, 20 Jan 2021 11:27:06 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 74181906-3f67-489b-8699-8c5538c15a25; Wed, 20 Jan 2021 11:27:04 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 666E231B; Wed, 20 Jan 2021 03:27:04 -0800 (PST) Received: from login2.euhpc.arm.com (login2.euhpc.arm.com [10.6.27.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AD6F53F719; Wed, 20 Jan 2021 03:27:03 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version 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" X-Inumbo-ID: 74181906-3f67-489b-8699-8c5538c15a25 From: Vladimir Murzin To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, julien@xen.org, Volodymyr_Babchuk@epam.com Subject: [XEN PATCH] xen/arm: Relax GIC version check Date: Wed, 20 Jan 2021 11:26:44 +0000 Message-Id: <20210120112644.8882-1-vladimir.murzin@arm.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Supported values are 0b0000 GIC CPU interface system registers not implemented. 0b0001 System register interface to versions 3.0 and 4.0 of the GIC CPU interface is supported. 0b0011 System register interface to version 4.1 of the GIC CPU interface is supported. 4.1 is still backward compatible with 4.0/3.0, moreover ARM ARM guarantees that future versions of the GIC CPU interface retain backwards compatible. Signed-off-by: Vladimir Murzin Acked-by: Julien Grall Reviewed-by: Bertrand Marquis --- xen/include/asm-arm/cpufeature.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-arm/cpufeature.h b/xen/include/asm-arm/cpufeat= ure.h index 13a2739a6..c6e5711b2 100644 --- a/xen/include/asm-arm/cpufeature.h +++ b/xen/include/asm-arm/cpufeature.h @@ -17,7 +17,7 @@ #define cpu_has_el3_64 (boot_cpu_feature64(el3) >=3D 1) #define cpu_has_fp (boot_cpu_feature64(fp) < 8) #define cpu_has_simd (boot_cpu_feature64(simd) < 8) -#define cpu_has_gicv3 (boot_cpu_feature64(gic) =3D=3D 1) +#define cpu_has_gicv3 (boot_cpu_feature64(gic) >=3D 1) #endif =20 #define cpu_feature32(c, feat) ((c)->pfr32.feat) --=20 2.24.0