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 3E004C9EC8D for ; Mon, 12 Jan 2026 14:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To: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=sVORYiGzozd8PgS1TYW2hZdt+MykAODXljoXpk9UEaQ=; b=nLnCwntMXCzTD2fJdF2oOHxyai 934rNTycZ54OW3nC5x15AcK+JAXnOmcu8+e9/20XyOPk/CSnImfqqxYIk+4kekZnbdx9jTOTcYoZY Dqmgi/nvvszRW91Kv4u02dXuKR3gI+YHKPtx/X6xBmJroggElfZgcGEa+hdMe2s0keX78+nYSnsn/ o7UQ89j6Ge9cTSr55mTsDL796pdLSqa+2Hy3bOKN8WvtP3Y8iVSqeS8Kj2dTT1/F9x+9nn4rmEGBj 3N1IgDz2WuG3/S7yVxATW54Fk0NXZR1pXrmswaMoVVRD6lvSak9VcfcdLo4LACM8Ehwpy+WlyagiK 0WC/Zb4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vfIWK-00000005U1w-08W4; Mon, 12 Jan 2026 14:03:48 +0000 Received: from sinmsgout02.his.huawei.com ([119.8.177.37]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vfIWH-00000005Tzu-0THi for linux-arm-kernel@lists.infradead.org; Mon, 12 Jan 2026 14:03:46 +0000 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=sVORYiGzozd8PgS1TYW2hZdt+MykAODXljoXpk9UEaQ=; b=toi4ve4Z2YYpRNsPIV2dweYIRTGBe599kg+jTzANbb/ias1DEO500ep4ZgH1QtdPd3R49OT93 u4G0RrtSgZGBzpuIcxHXFejABhcHZbs6RjM9MdjNuGPDKx8P3Ai7SzyNsSNdePXNE9nSG8/fSDt 2I9owLIb/+SJ3CiCeaOSNWA= Received: from frasgout.his.huawei.com (unknown [172.18.146.33]) by sinmsgout02.his.huawei.com (SkyGuard) with ESMTPS id 4dqYvN68Hkz1vnsZ; Mon, 12 Jan 2026 22:01:20 +0800 (CST) Received: from mail.maildlp.com (unknown [172.18.224.107]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4dqYxj63G8zJ46ZP; Mon, 12 Jan 2026 22:03:21 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id 51C8340584; Mon, 12 Jan 2026 22:03:33 +0800 (CST) Received: from localhost (10.203.177.15) by dubpeml100005.china.huawei.com (7.214.146.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Mon, 12 Jan 2026 14:03:31 +0000 Date: Mon, 12 Jan 2026 14:03:30 +0000 From: Jonathan Cameron To: Sascha Bischoff CC: "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.linux.dev" , "kvm@vger.kernel.org" , nd , "maz@kernel.org" , "oliver.upton@linux.dev" , Joey Gouly , Suzuki Poulose , "yuzenghui@huawei.com" , "peter.maydell@linaro.org" , "lpieralisi@kernel.org" , Timothy Hayes Subject: Re: [PATCH v3 03/36] arm64/sysreg: Drop ICH_HFGRTR_EL2.ICC_HAPR_EL1 and make RES1 Message-ID: <20260112140330.0000205c@huawei.com> In-Reply-To: <20260109170400.1585048-4-sascha.bischoff@arm.com> References: <20260109170400.1585048-1-sascha.bischoff@arm.com> <20260109170400.1585048-4-sascha.bischoff@arm.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.203.177.15] X-ClientProxiedBy: lhrpeml100009.china.huawei.com (7.191.174.83) To dubpeml100005.china.huawei.com (7.214.146.113) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260112_060345_567324_261E80DA X-CRM114-Status: GOOD ( 15.54 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 9 Jan 2026 17:04:39 +0000 Sascha Bischoff wrote: > The GICv5 architecture is dropping the ICC_HAPR_EL1 and ICV_HAPR_EL1 > system registers. These registers were never added to the sysregs, but > the traps for them were. > > Drop the trap bit from the ICH_HFGRTR_EL2 and make it Res1 as per the > upcoming GICv5 spec change. Additionally, update the EL2 setup code to > not attempt to set that bit. > > Signed-off-by: Sascha Bischoff I'll take your word on it wrt to the spec change. For completeness. Reviewed-by: Jonathan Cameron > --- > arch/arm64/include/asm/el2_setup.h | 1 - > arch/arm64/tools/sysreg | 2 +- > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/arm64/include/asm/el2_setup.h b/arch/arm64/include/asm/el2_setup.h > index cacd20df1786e..07c12f4a69b41 100644 > --- a/arch/arm64/include/asm/el2_setup.h > +++ b/arch/arm64/include/asm/el2_setup.h > @@ -225,7 +225,6 @@ > ICH_HFGRTR_EL2_ICC_ICSR_EL1 | \ > ICH_HFGRTR_EL2_ICC_PCR_EL1 | \ > ICH_HFGRTR_EL2_ICC_HPPIR_EL1 | \ > - ICH_HFGRTR_EL2_ICC_HAPR_EL1 | \ > ICH_HFGRTR_EL2_ICC_CR0_EL1 | \ > ICH_HFGRTR_EL2_ICC_IDRn_EL1 | \ > ICH_HFGRTR_EL2_ICC_APR_EL1) > diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg > index 8921b51866d64..dab5bfe8c9686 100644 > --- a/arch/arm64/tools/sysreg > +++ b/arch/arm64/tools/sysreg > @@ -4579,7 +4579,7 @@ Field 7 ICC_IAFFIDR_EL1 > Field 6 ICC_ICSR_EL1 > Field 5 ICC_PCR_EL1 > Field 4 ICC_HPPIR_EL1 > -Field 3 ICC_HAPR_EL1 > +Res1 3 > Field 2 ICC_CR0_EL1 > Field 1 ICC_IDRn_EL1 > Field 0 ICC_APR_EL1