From patchwork Tue May 17 18:22:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852863 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 82775C433FE for ; Tue, 17 May 2022 18:31:57 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QgEaWkf2yvsrAlS9kwzDpa5rVWGyL7gs9HI4E6bTga4=; b=e+BJRpIBcYMrcZ f/iO3W0VUHavHC9wRxbdp+m9CpYDai+e9K7803PmgpJSRGMEa5x7Zx5wFbcO+EDXUxTimFYRBxZpH +oBbyyulUAqqnpceRXlmd4E9/nhjU2sGQlbxF0thPnKYIglRvZl+AF0zBQ99hZKLGQFmKqRVE9iwG RnuM3Z7oRnVRG0d9bOD3Map/LTYLqPX0uNqqdeJCTvTwyLcbe9iOqbb3Ncr/exHXVwd01LD8YLTFX qhYP2OF5nfV6LG5R0Dl2z+Cek0N/gZzutDRui/sVWYwuNHfnKT4IFivU3lDJQk85GNuCKIJn8CdQ2 3cfC8T8X0mebSaziJ1bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1yD-00FIET-Ar; Tue, 17 May 2022 18:30:57 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1wv-00FHgV-Ol for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:40 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 18B9761599; Tue, 17 May 2022 18:29:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D65BC34117; Tue, 17 May 2022 18:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812176; bh=G5+O1z+itKqFaWfmkC9gTDaH62EJpZTBsuHs4Eo+pto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u+IgeKmi9sf05KOsUiDMlIpZRPDuCaT4X4dyJ1D/ksGX/+866i87MYWd3leARvcUD AyaPDcXpPPE/AqEpIOOvjyEaDSStyAnSQ4MXwFNeDoPCsZMPQ+EjdbhgLeRQWndbmw krqGaIqXoloq5XF5lGUbxx3nUlDBNjwuBe70fZhuZ7E2WZVgfFycAzGPyKmUJENlKG q8vrGiPdIMpS3Fw3k18wrD4w3pG5xH4xOtWeh53jEzE9A4iS2LdjrUV/ksOBPBPLA3 zOlmrtYvHo0nTNBU3DOYnAUGbN4M1ufhUYN/0WJKq+pZMSg3xsCrVvYQ6nyuHEfEtj HgF1Ye19y8YIQ== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 6/9] arm64/sysreg: Generate definitions for CTR_EL0 Date: Tue, 17 May 2022 19:22:16 +0100 Message-Id: <20220517182219.2171814-7-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220517182219.2171814-1-broonie@kernel.org> References: <20220517182219.2171814-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1272; h=from:subject; bh=G5+O1z+itKqFaWfmkC9gTDaH62EJpZTBsuHs4Eo+pto=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fW0KMt0+0FZIdBao8IIOSDEM1+4ktnIA+I6gDw 43ZWCi6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn1gAKCRAk1otyXVSH0C/MB/ 4p+JvukM/VggoX5Fpi701iVI5aMKC53SC+QSYA28aPCQS9CSvMb4SPIZnDGpNbJQQit5iLCXl05GLN YTdTFUDxrfIsNMBiBFgYOZXtWSPKNlVlWVdhKOvUaN9BpI6kn4ZfERW53y8NzZ86oEFwq/j5Mdl2ic Yb6eYez4tCybnqfsCQ9CfAFb5n/8hsWWQ7pqIm2fna1QHDy+asFMDQLPpyjQLdUbXWLF16bo9wRuNN SuT4Acro2eKLG5bMSk2pVtOvu/YIFBBA8m2L6bEEejqn+kLaoAKQ92yCTrYTlNIn65heqMyliCWjQj ESUPwDeonXKaW1waLvSzC4+WlJU0Ft X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220517_112937_859256_CD84D9C3 X-CRM114-Status: GOOD ( 10.90 ) 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 Convert CTR_EL0 to automatic register generation as per DDI0487H.a, no functional change. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 1 - arch/arm64/tools/sysreg | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 6240149f9818..c77e2310d189 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -461,7 +461,6 @@ #define SMIDR_EL1_SMPS_SHIFT 15 #define SMIDR_EL1_AFFINITY_SHIFT 0 -#define SYS_CTR_EL0 sys_reg(3, 3, 0, 0, 1) #define SYS_DCZID_EL0 sys_reg(3, 3, 0, 0, 7) #define SYS_RNDR_EL0 sys_reg(3, 3, 2, 4, 0) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 47c4c45d5dc3..3971e1fb6af4 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -277,6 +277,21 @@ Field 3:1 Level Field 0 InD EndSysreg +Sysreg CTR_EL0 3 3 0 0 1 +Res0 63:38 +Field 37:32 TminLine +Res1 31 +Res0 30 +Field 29 DIC +Field 28 IDC +Field 27:24 CWG +Field 23:20 ERG +Field 19:16 DminLine +Field 15:14 L1Ip +Res0 13:4 +Field 3:0 IminLine +EndSysreg + Sysreg SVCR 3 3 4 2 2 Res0 63:2 Field 1 ZA