From patchwork Tue May 17 18:22:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852861 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 752B6C433EF for ; Tue, 17 May 2022 18:31:25 +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=ZdciYtb5pPAmPfm5pZU4pt7Ci8Q4EaXFiqs1WSWi8UA=; b=O21k6UX3lBFB+d n4zgAW6X72ztmcLnzGi871nsqYgLNjnL5T/J3jWHihfVncNDifA45gLm6lLs3zbMz2sDO3I64CbWC V+CGqUk142qSSxFcGyaULUq4DDZViEuOHgp7NWFrRq4jtWfXDnVmK21jMAALmUkULDra2hW7NR3qe 0nHTojTxh4FRpnPnjJyUkIeVq9R3LHPvUFrXi1Z2nLIR8y6Orr4NDUzKEK80/30y55+ej4I7Xlexc Okp7w2qXJFFhad34tU8rvK3v1A7yLHqqaq30SkuNfdwbed8liCT8CPKxZWpeu5BjLr4sQ/MDRU1T4 Xzm+rmLL6DixRpEzDNWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1xf-00FHym-LE; Tue, 17 May 2022 18:30:23 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1wu-00FHez-33 for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:38 +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 ams.source.kernel.org (Postfix) with ESMTPS id 725D3B81B31; Tue, 17 May 2022 18:29:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09525C36AE2; Tue, 17 May 2022 18:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812173; bh=2azfdmztxE0HOqQCUFSIoQDpTzH7C3YTGLOsqdVvT/g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hl6i1k6A9+uBzkuEAVPE318/qaqU/MqESOQGgT8AtY78u2gE6poZWYbn3QuIzWthU 23zix/Ih/v6GIg//vjYavivYNM6PvZeNJRuazRXNoVBpmVcvWVUtqrdMLjR+H+UaOr xvZfwHoMhXMG66UG6NGzdAL0c/KJEQsx81vMcaIeh76L0GAXrx1ju80Lj6SyTDqV1n 5L1n1EH+dpza7bq1+6Q7K9xkbZBc2WF6ZtLOrubUiCGPl2di8hNPm9F8kNNQh4TJ3h OxNh2mFq7QEwuqcPLU7tzDssgob4EXsENvNqxWyOOqaExoswarUGYdG9XudskccsSa P+iLreAr9azlA== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 4/9] arm64/sysreg: Generate definitions for CPACR_ELx Date: Tue, 17 May 2022 19:22:14 +0100 Message-Id: <20220517182219.2171814-5-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=1914; h=from:subject; bh=2azfdmztxE0HOqQCUFSIoQDpTzH7C3YTGLOsqdVvT/g=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fUJAEvN1xAa4p5H0Kbbq7DJeH3FvzWo4wC8+Cg eaTfqM6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn1AAKCRAk1otyXVSH0PT3B/ 4sqAssmll+8gewYwGx8Ipp+SWEgNysIpUcegLxtLBP43Q6stS8KC+aqH7g8NRBZaCiASJxO954EGhp 39+cbwUfriluRUyyDcsY0CiQDN3JSw9ikjXKhoRKmd+G75IwmW6v6FiWwyeB+lXsV3aIIwedaIZl6m 7eSrvkQE9OjsExgCxtursDjvLE6u7v7jTTylxJAHc94UiHy+l1nzKR1zwIFP3L9kVGhvNW0XRc2oVU 0intuzdKwyd5tkjb3mdD0iPC91jUL8/BlV5FeRI0dkId0/T0UZheV6nUXcSU9FllluQdesWr5x2sK7 s4KKG+8S9+eoEI0x9+vAbcABDz7uSs 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_112936_524374_C25758D6 X-CRM114-Status: GOOD ( 13.46 ) 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 the CPACR system register definitions to be automatically generated using the definitions in DDI0487H.a. The kernel does have some additional definitions for subfields of SMEN, FPEN and ZEN which are not identified as distinct subfields in the architecture so the definitions are not updated as part of this patch. No functional change. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 2 -- arch/arm64/tools/sysreg | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 5a5d6bdaa806..c30f5aafde34 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -209,7 +209,6 @@ #define SYS_ID_AA64MMFR2_EL1 sys_reg(3, 0, 0, 7, 2) #define SYS_ACTLR_EL1 sys_reg(3, 0, 1, 0, 1) -#define SYS_CPACR_EL1 sys_reg(3, 0, 1, 0, 2) #define SYS_RGSR_EL1 sys_reg(3, 0, 1, 0, 5) #define SYS_GCR_EL1 sys_reg(3, 0, 1, 0, 6) @@ -613,7 +612,6 @@ /* VHE encodings for architectural EL0/1 system registers */ #define SYS_SCTLR_EL12 sys_reg(3, 5, 1, 0, 0) -#define SYS_CPACR_EL12 sys_reg(3, 5, 1, 0, 2) #define SYS_TTBR0_EL12 sys_reg(3, 5, 2, 0, 0) #define SYS_TTBR1_EL12 sys_reg(3, 5, 2, 0, 1) #define SYS_TCR_EL12 sys_reg(3, 5, 2, 0, 2) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index e938d1117d36..21d5c140fde3 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -185,6 +185,22 @@ Field 1 A Field 0 M EndSysreg +SysregFields CPACR_ELx +Res0 63:29 +Field 28 TTA +Res0 27:26 +Field 25:24 SMEN +Res0 23:22 +Field 21:20 FPEN +Res0 19:18 +Field 17:16 ZEN +Res0 15:0 +EndSysregFields + +Sysreg CPACR_EL1 3 0 1 0 2 +Fields CPACR_ELx +EndSysreg + Sysreg SMPRI_EL1 3 0 1 2 4 Res0 63:4 Field 3:0 PRIORITY