From patchwork Tue May 17 18:22:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852858 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 26674C433F5 for ; Tue, 17 May 2022 18:30:37 +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=an5baEEMf2239nfbRW+kTSdDeZvw/nkfzbB2M/xvBiA=; b=QLZDP+0alt2pXt oB8JqKHVlmqYgl4zYK1SwLy3dFARbVYEDbVcQWEqyHilMDvbbAhhSbkLX2ERCChTeDE0ZXdwE4Y7a e9+NkZVTBPgbBwYkSaMemGGJtg1/FJRPVwCvaaYT1QVfLNRepHeiurY5hu5QgrwyE2Z0VRMxmGlMe CW6yPykWD1IKDC798ieqdTKiZIeeGRMG3Enguedv//ZJpTV9/kV8Q/62y9XtUpRNdqoAx5qCQY9LO h0Lc0XPBDyrJvKU9UEab9sLdDk5BN5EcKQztpSjSE2y4ZMn4eyDye+NeP/LSuYgkO3BrGHGfGSObw yZ1GOX4OYV+NZL1l+EWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1wr-00FHdY-EN; Tue, 17 May 2022 18:29:33 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1wn-00FHcI-Gq for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:30 +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 DA1DD61586; Tue, 17 May 2022 18:29:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16198C385B8; Tue, 17 May 2022 18:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812168; bh=RjwI0HMVmuYU/R/wUjTvwjnJP3xCcMIBACKale1iKAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ORdYq/+OZxE4nSToXMrsFM+ICukcHr9kK4BHs1Latc/nnmPy1nDHRuKETOlb/5A2G On0bARek+DzlNEO6LQzGjRshjKpZeWQvo/q76UJ0vwf9tcXznWFwepktitltjZ7iNv 6EPMZVNJ72jL579GeSwe0TmFMmAJo1ImVe9ptTkkmLRF2GgN78qkT1E6wrz9G1Q3Dq 3Vn1W4F83lUmXaoQgxL0ANm25hw3xpNjLfLbMdRihBqcuB1PoTTQ2Nz3+hpAPwTIgI zVN6a0HHnqdfyOQ38JuvcxEvlEBr+nLvRdHkSGMoRPbZYe9Y4Aba/v0eddBwxjckIP 2B6HdL5u+ieuA== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 1/9] arm64/sysreg: Generate definitions for CCSIDR2_EL1 Date: Tue, 17 May 2022 19:22:11 +0100 Message-Id: <20220517182219.2171814-2-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=1230; h=from:subject; bh=RjwI0HMVmuYU/R/wUjTvwjnJP3xCcMIBACKale1iKAQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fSYvww/uhYmeWiuKrYq93mxNbD/XvAP7JeLwgx zC17gXWJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn0gAKCRAk1otyXVSH0PGWB/ 4h8CFKkQiZFU9h95NnDrLleorPW3E9EFsL2CEkBK47EJplQa/U0k3bJZ7Ezeutx4lbuej8d6Q7ubjv 7KR/N5itzxG7GJsiT8ydjOuQgeHC+dNazbclcuT/fQFJVBzitu9qoUoTFxYAlu5V+8MlcdvPHDPYUk JOD0KsxuhgqRlYLTkvtAj/U3JqC/3GqRekAcIDImrIcRDPwvrxPIVDVi/0aLrcjJry333KqcwAxdzl lKqROakGDsj20godyUc1CMPWVYJOXy0lCFaPmIzqJjLPLX8tSXeREiD3TvZBd0CTSRUHNTozZjgydC +6tTawsAy9m3W1DWHKZKXNqTUjFrYJ 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_112929_648475_373661D1 X-CRM114-Status: GOOD ( 11.67 ) 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 CCSIDR2_EL1 to be automatically generated as per DDI0487H.a. No functional change. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 1 - arch/arm64/tools/sysreg | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 91e4f8601393..45d29f34d9b3 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -456,7 +456,6 @@ #define SYS_CNTKCTL_EL1 sys_reg(3, 0, 14, 1, 0) -#define SYS_CCSIDR_EL1 sys_reg(3, 1, 0, 0, 0) #define SYS_CLIDR_EL1 sys_reg(3, 1, 0, 0, 1) #define SYS_GMID_EL1 sys_reg(3, 1, 0, 0, 4) #define SYS_AIDR_EL1 sys_reg(3, 1, 0, 0, 7) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index a236d7a821b4..db395dabc9e9 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -212,6 +212,14 @@ Sysreg SMCR_EL1 3 0 1 2 6 Fields SMCR_ELx EndSysreg +Sysreg CCSIDR_EL1 3 1 0 0 0 +Res0 63:56 +Field 55:32 NumSets +Res0 31:24 +Field 23:3 Associativity +Field 2:0 LineSize +EndSysreg + Sysreg SMIDR_EL1 3 1 0 0 6 Res0 63:32 Field 31:24 IMPLEMENTER From patchwork Tue May 17 18:22:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852859 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 7DA5DC433EF for ; Tue, 17 May 2022 18:30:47 +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=TvMUvBLYNBeXszTUO6j1MG/jDPBSnLU1EeCIOzbGhbw=; b=wEsGivvLECdnjw aX9OS3deEk6LkX1unij5cbSbd63lCyXB33IcnAJ7OLjJX7KGyr4SQKmDIY7mhCvnf622+JnupOHJD TKeK7o/WVDX0Tt3R6buDs8nR7q07RUlAKzwUu2b5T+D47967Z5+aYEedK3lnfCri0EvLTKd5YWxbg V4Hiz4nrtvCo4uBqN/dHvz3cqHAsdMT9NEAVdp2UzX62UWqjfmPouA1XJ0yrHHEirin2yyhR8lzbh E7c6+SARy9n5Mv8HO8LddgHLocbzt4DxeWQ5BJvLgCA/3nsKfgWzJuiUjXcLYO1nDs/qUHVGeh+EH tFOL3p3IGPuEoEXlh/Lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1x8-00FHm3-9f; Tue, 17 May 2022 18:29:50 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1wq-00FHdJ-Gf for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:33 +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 2ADE2B81B96; Tue, 17 May 2022 18:29:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4DC1C3411A; Tue, 17 May 2022 18:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812169; bh=MP2SfxueTIg14k99ydEGWTOqaAlCi1mDeiYjlsNvkkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ljN86MG9AW9D9EwmAeF6DanS8XxF1Lwb8nJ97NV5Xvubl4lBI7ah38ND6PtbvwRPi Guf4O7jp2mJ06o0dgF6fhzXcHQHdKAjNK3EJz0TJfbQboSOf8PXIraCMoWxL07diD/ bGvLGXs1DCtZ2acWoZ9otCJ9Hpsc93/bACLZmK6sd3FthX7+ly+LFzpP44LLC5fFR3 iunAucoKfpCYj1inPGS0VbSoR+PBQo7gnSk8JAf71fqSB5V3syAMWplV8T7lkjElYV /Wk4DWBZTNGl4OICggcquxPqOU+qHR5uwG8e27l4iAauh6QgMMSHHWxb10eAusYMa7 jf9xv5HUEMaiw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 2/9] arm64/sysreg: Generate definitions for CLIDR_EL1 Date: Tue, 17 May 2022 19:22:12 +0100 Message-Id: <20220517182219.2171814-3-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=1362; h=from:subject; bh=MP2SfxueTIg14k99ydEGWTOqaAlCi1mDeiYjlsNvkkg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fTAYtnZSxpBQKBERKoFWgbNjXdsZOzTbv5J/I4 09FeiX+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn0wAKCRAk1otyXVSH0PmFB/ 9IWPeQ/+ilZdFpAjROpDvy4/n3o+020AVFsqrQK7APTqxt2+6coXK38kGwObyW3lSGcPu4iXHm5gxD fRM2B441kyXBIKMabNgtnvYDQBAdCV8/yjdcXEpqvZlQ0srxeqbuPpqd1bM2CPUjxzgDxvi6Rf6U/A wwtWacNj4MiSPAuyV+ukydDQMKJFjYCTObgXNzndlICNisXYZ0vh2e3RoFbI3+OE7GxclJZOlKfgmT 8Qcku7/dH1IBqycZBUClQAdBzzF0NQ4ZHGzVnJruNacfIQ7Uu0Q48/DiJvj7u0rcvWjA8vjgWNuAqr V6WqebsOoT9QW+qYA/TpvLzfs0MCRJ 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_112932_743072_B26EB43E X-CRM114-Status: GOOD ( 10.98 ) 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 CLIDR_EL1 to be automatically generated with definition as per DDI0487H.a. No functional change. Signed-off-by: Mark Brown Reviewed-by: Mark Rutland --- arch/arm64/include/asm/sysreg.h | 1 - arch/arm64/tools/sysreg | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 45d29f34d9b3..d7a98dc62029 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -456,7 +456,6 @@ #define SYS_CNTKCTL_EL1 sys_reg(3, 0, 14, 1, 0) -#define SYS_CLIDR_EL1 sys_reg(3, 1, 0, 0, 1) #define SYS_GMID_EL1 sys_reg(3, 1, 0, 0, 4) #define SYS_AIDR_EL1 sys_reg(3, 1, 0, 0, 7) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index db395dabc9e9..8b5788cbf099 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -220,6 +220,22 @@ Field 23:3 Associativity Field 2:0 LineSize EndSysreg +Sysreg CLIDR_EL1 3 1 0 0 1 +Res0 63:47 +Field 46:33 Ttypen +Field 32:30 ICB +Field 29:27 LoUU +Field 26:24 LoC +Field 23:21 LoUIS +Field 20:18 Ctype7 +Field 17:15 Ctype6 +Field 14:12 Ctype5 +Field 11:9 Ctype4 +Field 8:6 Ctype3 +Field 5:3 Ctype2 +Field 2:0 Ctype1 +EndSysreg + Sysreg SMIDR_EL1 3 1 0 0 6 Res0 63:32 Field 31:24 IMPLEMENTER From patchwork Tue May 17 18:22:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852860 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 0BCEDC433EF for ; Tue, 17 May 2022 18:31:11 +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=8d63xk+QhoSwhYNLRQ5WJ40SY/W5ZBQguJnSAN55K3M=; b=kjAV2YWrSS4Xk7 2bbS4iZJ/frbaJFLFtbHnJEFJFt5zA+AIBk/WxgSbpPi53NlbltonvqnAINbt+WVWyjcjLTsZwbKu ZRT+ibIvPQldkZ6VhewTe5uZFjn+P1zepvE+0Awnl9AkmzZXL6tD3Tc2U1NbvqpxO2MqKDwykKMtf H0qUJoLwskR6fe7ZFycw1biupl+avyhqPAAgpmovmVfXF5U9IQudJHYHYU4ZdzPpMH8zzLYKxQzCZ ljlOjsR4VPjJOADkMg6vfB7ZWpXV7mXMpQsrrHkah68sm/CH2h2cpNhIUN8mTwBcTcxMvQoAG2Tl+ Z3WsRdfDxkCl4ife6ZkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1xL-00FHrF-Ao; Tue, 17 May 2022 18:30:03 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1ws-00FHdy-3I for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:35 +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 C1F5CB81B94; Tue, 17 May 2022 18:29:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EC23C385B8; Tue, 17 May 2022 18:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812171; bh=weLOsOTtCndBfRTlLXJV5/j9jm5/lNY1fp7zPN2b/Lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gEA0V651wJyKxImrhG4rkl4fIQCM/R7XKLJ9sE5t3opU86Hyp08dCZb7y9BDZ4FIR cFjFua1+j/WPeIP0QrECwfoI1Ha9fMiteRdw62aWftXHOisky1rHAeIwCqnb0U+zbB OZuJXvRrEGqMAaxts/EJIPU0HV700CrR0TSFfD3g4/VSlKnkSflQ4s32ufsEOVMPDa P5U3Blcw2OhZRmAz10XiQ1WM0Ot2YF9zKsAVAbZMEs2PIAl7/v2pCwpn736nLuyZXr txegQJ2D7SqpcDyVWjIzP/Cqccd3xMPvPSEi0USmTTyXxBBx6k+z/WMsCV8mLPB50T cPC6Vt6/ONcbA== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 3/9] arm64/sysreg: Generate definitions for CONTEXTIDR_ELx Date: Tue, 17 May 2022 19:22:13 +0100 Message-Id: <20220517182219.2171814-4-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=2223; h=from:subject; bh=weLOsOTtCndBfRTlLXJV5/j9jm5/lNY1fp7zPN2b/Lg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fTJ3LdDZRSTvEGQkVEcknC1Z6c3sNGKGeea9KM 47KNvQCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn0wAKCRAk1otyXVSH0Ax2B/ 9Sp1ViKc1i/faCtRAQa6RJPBEenDnI38sT/R7XGb2kS6E2iTlKyx52VhYZ22A+4OFMkG40TRHNHjRZ m03Eh8uTzy3mqt32H9M1ikeBJ7LYaPP7KZBmQQPNdH6xaJExtdwxMysQ+zc6za/gmDMaA5x5iey790 KWltv9gdtBMggIWI+eRUbWA3m5LRPdVILZrxIW8a0DONVQOkLCmECgIBC8JaAYqlhf11+et/uEvFi2 Fv5Tf5k5HkgavETPgYlHilIiQfGfKxMfuWSZc3DpFtCR3XXAIMTqiypyeqZSWEF9lamhgifwpqRIbU ck1p0GkMimc0uqSlnQb4IPtpGO3mak 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_112934_488751_340C57DC X-CRM114-Status: GOOD ( 11.52 ) 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 various CONTEXTIDR_ELx register definitions to be automatically generated following the definitions in DDI0487H.a. No functional change. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 2 -- arch/arm64/tools/sysreg | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index d7a98dc62029..5a5d6bdaa806 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -449,7 +449,6 @@ #define SYS_ICC_IGRPEN0_EL1 sys_reg(3, 0, 12, 12, 6) #define SYS_ICC_IGRPEN1_EL1 sys_reg(3, 0, 12, 12, 7) -#define SYS_CONTEXTIDR_EL1 sys_reg(3, 0, 13, 0, 1) #define SYS_TPIDR_EL1 sys_reg(3, 0, 13, 0, 4) #define SYS_SCXTNUM_EL1 sys_reg(3, 0, 13, 0, 7) @@ -628,7 +627,6 @@ #define SYS_MAIR_EL12 sys_reg(3, 5, 10, 2, 0) #define SYS_AMAIR_EL12 sys_reg(3, 5, 10, 3, 0) #define SYS_VBAR_EL12 sys_reg(3, 5, 12, 0, 0) -#define SYS_CONTEXTIDR_EL12 sys_reg(3, 5, 13, 0, 1) #define SYS_CNTKCTL_EL12 sys_reg(3, 5, 14, 1, 0) #define SYS_CNTP_TVAL_EL02 sys_reg(3, 5, 14, 2, 0) #define SYS_CNTP_CTL_EL02 sys_reg(3, 5, 14, 2, 1) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 8b5788cbf099..e938d1117d36 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -212,6 +212,15 @@ Sysreg SMCR_EL1 3 0 1 2 6 Fields SMCR_ELx EndSysreg +SysregFields CONTEXTIDR_ELx +Res0 63:32 +Field 31:0 PROCID +EndSysregFields + +Sysreg CONTEXTIDR_EL1 3 0 13 0 1 +Fields CONTEXTIDR_ELx +EndSysreg + Sysreg CCSIDR_EL1 3 1 0 0 0 Res0 63:56 Field 55:32 NumSets @@ -278,6 +287,14 @@ Sysreg SMCR_EL2 3 4 1 2 6 Fields SMCR_ELx EndSysreg +Sysreg CONTEXTIDR_EL2 3 4 13 0 1 +Fields CONTEXTIDR_ELx +EndSysreg + +Sysreg CPACR_EL12 3 5 1 0 2 +Fields CPACR_ELx +EndSysreg + Sysreg ZCR_EL12 3 5 1 2 0 Fields ZCR_ELx EndSysreg @@ -286,6 +303,10 @@ Sysreg SMCR_EL12 3 5 1 2 6 Fields SMCR_ELx EndSysreg +Sysreg CONTEXTIDR_EL12 3 5 13 0 1 +Fields CONTEXTIDR_ELx +EndSysreg + SysregFields TTBRx_EL1 Field 63:48 ASID Field 47:1 BADDR 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 From patchwork Tue May 17 18:22:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852862 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 C0FB3C433EF for ; Tue, 17 May 2022 18:31:42 +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=BxqVNGW0Q6z22FlgEObgU0hrVwnRc4Zv+pm9i3p3dj8=; b=inQVTj2dJ4jXEY 0KOx7r3XrvKUrA8nXSqvrNv+sevooFV0NwQZ5Fn9xHmiEIqEAY1DauHD86RDNTfmqNGg7if8z4RK5 Kqb7xXeOSBkNqv6gVP24OpGcc+fKdc23uVn1XPdg8FAJ/upg6z1B2g6VZrEfFn8I9gLRFMgiZU5e8 mFoA+Op+fKW9xsu6yreWiXFlJZFOqJSahGNsOEeO352gqhZmkVH/YsRzXfww2NttAiig+qfY0uED5 hTNGPXkElJtCfHw6dW6fquhKtT7e4WKLH+ky7jxrBYNeJbX9q3PvpmP1wdRxBgt7ZLWiysVWQ8/7j 33iiA3vE/mOfN0OgNlCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1xw-00FI5x-Es; Tue, 17 May 2022 18:30:40 +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 1nr1wv-00FHfV-9i for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:39 +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 106FBB81B94; Tue, 17 May 2022 18:29:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4DD7C36AE9; Tue, 17 May 2022 18:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812174; bh=cM3U1hQI18GHRfNusfzAjHR/O0xqZ7adgowB/f7Lqeg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QRiHLwgA/xkuBEVcWQRGQtYXJEurZRw8czfYj5CTjmRUdXl2gElNPh0tNipRePGj6 2U/JkSSY1o+koNK4ZD6BX+nh7n5Gaj+a+GK216ibWPfy6RYmd+gK8favSvNrZUGQMY 1QFHqGUz0PK/iZPebmc0RA0W0DkAYl4epPPwSkYj+T0qGjvZeoXIRGFhZYGIDi4Btw C1Yp4bmY0wqoARFwCqK0RnV52f5YtSnaj2NKcmSVij9KOkENvkdIDL7FsRHa1conqR MWUqLXCnkYty896FQVlh6ur1ItXzFn4yeYTLi48QEGwR/oeSabLJzXj2KewOM/7yB5 Z2mG40QzNqEaw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 5/9] arm64/sysreg: Generate definitions for CSSELR_EL1 Date: Tue, 17 May 2022 19:22:15 +0100 Message-Id: <20220517182219.2171814-6-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=1129; h=from:subject; bh=cM3U1hQI18GHRfNusfzAjHR/O0xqZ7adgowB/f7Lqeg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fVXJxaMOvRlYDgovv9+hXCvdHxoKGs6cYYBbTZ W8S7L0WJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn1QAKCRAk1otyXVSH0OFLB/ 0S4mhmKdkuVz2WrZLzbCkYGllRtJm1bWkBhjnXQgSnB10NTkqobnXweH5zKFE7aPEUitoM+4pxkE0c FBcx53CrpE6jvwo90gzNDMTOuWV/IfwX8teUPhRX/UKSYIBZPl2df9eRQ1hJ24VkwCskPRlHhfXmpJ yywHKDXAPu99TsTbKuJJwwETouMrFne8mvFAUaow1k2b1q0sPLUIC06kEqevMMd3b37hiaY06Bqu7X 9/XSDFdZaHBlGDxrLXsuttRwU5kPfqVSHBz64IfrzyvwxfB+D/OOq2Lnh+iNAbUJExlIn+nNkaBk61 +psG4yzsxJr0lDfXYOvC7sYt8o/eFm 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_505811_6E5A2BFA X-CRM114-Status: GOOD ( 11.41 ) 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 CSSELR_EL1 to automatic generation as per DDI0487H.a, no functional change. Signed-off-by: Mark Brown Reviewed-by: Mark Rutland --- arch/arm64/include/asm/sysreg.h | 2 -- arch/arm64/tools/sysreg | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index c30f5aafde34..6240149f9818 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -461,8 +461,6 @@ #define SMIDR_EL1_SMPS_SHIFT 15 #define SMIDR_EL1_AFFINITY_SHIFT 0 -#define SYS_CSSELR_EL1 sys_reg(3, 2, 0, 0, 0) - #define SYS_CTR_EL0 sys_reg(3, 3, 0, 0, 1) #define SYS_DCZID_EL0 sys_reg(3, 3, 0, 0, 7) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 21d5c140fde3..47c4c45d5dc3 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -270,6 +270,13 @@ Res0 14:12 Field 11:0 AFFINITY EndSysreg +Sysreg CSSELR_EL1 3 2 0 0 0 +Res0 63:5 +Field 4 TnD +Field 3:1 Level +Field 0 InD +EndSysreg + Sysreg SVCR 3 3 4 2 2 Res0 63:2 Field 1 ZA 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 From patchwork Tue May 17 18:22:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852864 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 7D012C433EF for ; Tue, 17 May 2022 18:32: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=R3VRsjRN+6BFA0H2UlZLN0tcUnU5i4Ye2fHAwTpgS40=; b=AYGJpAHa9UTM7v qme3wysKbv3/FeLTDMuS/RdJvpjfPxxxsbQ6eoAa+L85s3820IaPcg/6ubNS0zyIAeqi+2Z4eJW2O 429VTz4QeryBKaa1A4qpV74zYTKN5xYlzK/71zjCS0bRYnrhADBka6ZkATbwDb1LE7xK2EziYwHKU K8OtVHmd19h91fwaxyJZLBo2ok4DQNySHc1LH4U0PryF79LAXP6qOP5YH1SxiWvjHsmLp0ySsaFL/ /UxE2+rVgR7vzJVAiPSxrNFNYrh7/Cwc7uiZSTBtVG0wUH6FUI58mbgSWYPnXY8pVa/aeWUJBs0Qr V1Snl5E3Ql/nBajlIYQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1yX-00FIPK-KM; Tue, 17 May 2022 18:31:18 +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 1nr1wx-00FHez-N3 for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:41 +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 53204B81B92; Tue, 17 May 2022 18:29:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA619C34118; Tue, 17 May 2022 18:29:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812178; bh=035bD1Q3sMSpcJteiogfgesy5UgwzPI5MDsCTmpTwcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b/zGhFtNnrFuRBpD+7RGvo5v1E5djaU4AcIONPbuuSdUQvFSZvozwprB3/lI82kfz 91rofT71vdvxca3FF+v/Yiag4RwRuJfmAD9qi8jOTQnhidukV0DW+25uF5wgijXUfr FYWfaUv90HTz1mtsgibBzEC349RiFFh5ciGOq+pIjMQUlxAhkFot05LQ0YbXZ6oCJ8 98z+t86YwDJCsGTyiaIXSEekSzn7/MImY7KLLr7y9RC5BZA0nrGX21O1fjDY/a6eqA QFgUz8oizyIj+74mavt2AiSw2XZ6+4bAlaJSJM5448sgcRFkYAqtbcwdED5KkphYsV yTKOSHdMHXimQ== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 7/9] arm64/sysreg: Generate definitions for DACR32_EL2 Date: Tue, 17 May 2022 19:22:17 +0100 Message-Id: <20220517182219.2171814-8-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=1532; h=from:subject; bh=035bD1Q3sMSpcJteiogfgesy5UgwzPI5MDsCTmpTwcE=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fX8jylo6hDfgMg3EopiXtPYgL/9au8xXUhf9p1 TaaCl5CJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn1wAKCRAk1otyXVSH0CS0B/ 4hnaMqVjs/0AlqJ7IpIELdSjkgbsC0Lf8nN5gVMWf+DjKsoZHv9iQBQ4WptAddH2PeRtvb8uHmWSXM ZvYziqDU8g5dPQ8VDRXqj/Wbu9cZ4LgVh9l4srsfZ7AiUdcNKK5yWqGxOgRKxapaZMvEUJMJsp3djx KJwFx7mYS5HhujPhsIMqZ/RjNY2TWjtq4Ghqhn64plY4TIZX44L1G7VgxX731WSpi5cTfJZMQXOTdU z5i1NgXG9iXG9Bu+do2EYfG9KJnpp4s3f6EOl0rYBn5O7WnIus1elb/2NJwrdjGuyjMPhebSmBWD/+ /4yPTdYhmoWmT66ddRvxAObs2ldQBL 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_112939_933826_E11CA8F6 X-CRM114-Status: GOOD ( 10.94 ) 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 DACR32_EL2 to automatic register generation as per DDI0487H.a, no functional change. Signed-off-by: Mark Brown Reviewed-by: Mark Rutland --- arch/arm64/include/asm/sysreg.h | 1 - arch/arm64/tools/sysreg | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index c77e2310d189..e8e9040227f6 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -552,7 +552,6 @@ #define SYS_HFGITR_EL2 sys_reg(3, 4, 1, 1, 6) #define SYS_TRFCR_EL2 sys_reg(3, 4, 1, 2, 1) #define SYS_HCRX_EL2 sys_reg(3, 4, 1, 2, 2) -#define SYS_DACR32_EL2 sys_reg(3, 4, 3, 0, 0) #define SYS_HDFGRTR_EL2 sys_reg(3, 4, 3, 1, 4) #define SYS_HDFGWTR_EL2 sys_reg(3, 4, 3, 1, 5) #define SYS_HAFGRTR_EL2 sys_reg(3, 4, 3, 1, 6) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 3971e1fb6af4..543ba10f3dac 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -325,6 +325,26 @@ Sysreg SMCR_EL2 3 4 1 2 6 Fields SMCR_ELx EndSysreg +Sysreg DACR32_EL2 3 4 3 0 0 +Res0 63:32 +Field 31:30 D15 +Field 29:28 D14 +Field 27:26 D13 +Field 25:24 D12 +Field 23:22 D11 +Field 21:20 D10 +Field 19:18 D9 +Field 17:16 D8 +Field 15:14 D7 +Field 13:12 D6 +Field 11:10 D5 +Field 9:8 D4 +Field 7:6 D3 +Field 5:4 D2 +Field 3:2 D1 +Field 1:0 D0 +EndSysreg + Sysreg CONTEXTIDR_EL2 3 4 13 0 1 Fields CONTEXTIDR_ELx EndSysreg From patchwork Tue May 17 18:22:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852873 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 2D8DFC4332F for ; Tue, 17 May 2022 18:32:58 +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=FFtrlFX89ZYQ5rd8qh9W2UUTvlDrkAW4iMB2C9xj+g4=; b=ouJwLKSZg3e1QV YqVe2zeu3Q1ccbJModPtC0CvYBLhd1I3SluuZR93qGfoq6/wV8iKGjw40iO8Bga1WevIxikbO8UCI z1/tIv9iYKpXKkhuNFKCmmfYvNMucjt68SHn3KvqxHqBemah2VOVSm5QTUvvjdaNUJ4BUvrlapEuk 6eSv+lXHrz3Fwqk0naHP3SmtpK4ZY9/FivJG9PzBWiqYzl/3svNh89QEvszL07I0GhU1XYJLR+q6Z yxnkQ4W4Y88n/p7r+8ef+IZPCy9ycu0Zr1BYjIu13gmJxQzR4O4jM+ADIv1YZZBaXHxxCD4PTkNI6 AnfRZYfXATiCwAUz6PJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1yv-00FIbD-6I; Tue, 17 May 2022 18:31:41 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1x0-00FHic-IB for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:44 +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 326CAB81B96; Tue, 17 May 2022 18:29:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92E73C34119; Tue, 17 May 2022 18:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812179; bh=+005L7SCT0mIrYzwXX4ylbTeyQT/4y/nsiYgUv2SbNc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iU/9j23MJ8L1xciHKnAMlpfqKaTGpfujXHqZvu0muywfaQlws82hspq52jojMGdyS NCgl0dgUkV6zAHn6qAr/tnUIGiiL/y4dV1B0EFMXmEDDQASNH7s3oJJCkqKNwqm7dr 1j/V2dBYbuXQnMzv/crtapGNix4zoDiGtEvKEC+9FhQpqOzdNLfO9r9DdktaSNnlaz h9kd0SjR9luk2wkwYZW4ZroIFoYrVBP7ryyIkdkCGal6GpegWINYyFkE1Y8VD9/7VF f3ScXrIT2awFkqtk/DEdMpcQfDV0CGMQlp3aQSklIhy4P2unLSL4G2GhvYfmN8H+xR XA12E11VaPJag== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 8/9] arm64/sysreg: Generate definitions for DCZID_EL0 Date: Tue, 17 May 2022 19:22:18 +0100 Message-Id: <20220517182219.2171814-9-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=1117; h=from:subject; bh=+005L7SCT0mIrYzwXX4ylbTeyQT/4y/nsiYgUv2SbNc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fXPHrIARRyz+Wvwzmi8pDir8xpgEbIs34TkS4e xgsVq+6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn1wAKCRAk1otyXVSH0JkcCA CALj1giqMlHoGxZNeYHYGbPyu/8j8bhoKF0pulV03EiEc1Uttgsq4PY6NBZH48ctZ25kiegQZSt1bR 1kto0aadds5qbx9dmXBOezyhrDV/TVDQTX+E93Fa90ccQ8KOZspJa9imzdon+LEwozBncXMLqkJ+UM 53PSuvoUDdPdWBCCgw1MKyd05eq/4xolApxzcAeqiSeJFb3qYySxa01z7tt+NlUGiZZ5snLwEKZT+Q xRJWdKGpWqB+sehie+OQTQYUrZ8cMqyYuvODl9jvTkiIF3UiCHvJ/t9CCgoR6o3BeyxhjRngZ1Amcf naUpxvTYral72fjcr4oE52RT1YvG/n 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_112942_838703_A58054B0 X-CRM114-Status: GOOD ( 11.48 ) 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 DCZID_EL0 to automatic register generation as per DDI0487H.a, no functional change. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 2 -- arch/arm64/tools/sysreg | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index e8e9040227f6..09dc437030f5 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -461,8 +461,6 @@ #define SMIDR_EL1_SMPS_SHIFT 15 #define SMIDR_EL1_AFFINITY_SHIFT 0 -#define SYS_DCZID_EL0 sys_reg(3, 3, 0, 0, 7) - #define SYS_RNDR_EL0 sys_reg(3, 3, 2, 4, 0) #define SYS_RNDRRS_EL0 sys_reg(3, 3, 2, 4, 1) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 543ba10f3dac..1cd1e4ea42e3 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -292,6 +292,12 @@ Res0 13:4 Field 3:0 IminLine EndSysreg +Sysreg DCZID_EL0 3 3 0 0 7 +Res0 63:5 +Field 4 DZP +Field 3:0 BS +EndSysreg + Sysreg SVCR 3 3 4 2 2 Res0 63:2 Field 1 ZA From patchwork Tue May 17 18:22:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12852874 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 6BA6EC433EF for ; Tue, 17 May 2022 18:33:31 +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=sXPiw9Eo59RqtYJTE/RdeSlCG3Xjwd4tfL+5DNJqzVo=; b=e1XhYJ9VpGExfg nN4ot6iR65l+2eALp/MhCiouPZ2N/IfYiIZHhP2p5h3uIGiYlLU0apVW/6JSeempgKoFNXLl2e0hK CYZb41T7DEe6vrp8pXPA98BVPDdM8thi0fZQMY6EkuNqQ/C7u034xWXhjxsoUAN6PhM47kMvqSY1g /N3CoHNIzVD8dGCgyo141yBeEkJhQSFhf8Mv6BnvedKk7w5YbJIikKn4F3XOx4jqf+KuWorqRFIic cFw48QNi6Kx36gwGi6OCFy996fgdGLiOoRo49RhMetN77+5q+KbavJnqX3iPIiB0B0IEe8FA0JzH4 uTa3AViLZgP3IckbnJPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1zP-00FIs8-9j; Tue, 17 May 2022 18:32:12 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr1x0-00FHij-Hr for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 18:29:44 +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 1B79D6153F; Tue, 17 May 2022 18:29:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42E94C34117; Tue, 17 May 2022 18:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652812181; bh=xlE54A9Kwjc5JxcoH9GI4f+0O0iF7Qu6AVyKnw46bBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ETw9z97n/4iNd1xvICyoqGzxQDJg6QsVuN6XZ0tDf12IljeDjtZmG89LhqPTPWqJl h0B9Wvxy7XUbW534ZsYb6rLEiZU8bCZl+b/dwUg6F3+SYH8Bi4InTGyXXcCOg+ORzZ hxF6Klu2rexh7yQ4eyc5hEuEonxBAUEx4fLq/cYyarfp0K2mxiQAxQj5rOlkH66YPo 3eFHUtwShMrNiOjEyrWBfHjVVIVJy8tTcbFDgNh6LzUbYOytCr0jFQ4Y1CgMf2JCFp swJsDxnp4XEtk1lw7zwo1bOM3YLS3LvhE8hAoZyvUP2/kT37oIbNxsr7BdzIaQmRzl H/JWcEiQj3ROQ== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 9/9] arm64/sysreg: Generate definitions for FAR_ELx Date: Tue, 17 May 2022 19:22:19 +0100 Message-Id: <20220517182219.2171814-10-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=2528; h=from:subject; bh=xlE54A9Kwjc5JxcoH9GI4f+0O0iF7Qu6AVyKnw46bBs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBig+fYpvs/COQmVZWUt78KJeRfKSMmH4LdP3FPlM72 PouO5hGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoPn2AAKCRAk1otyXVSH0Cj3CA CCEJ67m3ceOHKDGx5mEhlfoDb7om4AorL5DkvUBlhFqmedBlES3+Wl7X+/MQQ1cONk53iw1YbsSQkL FshsSBEM0qYM7FICkQTOlPX+rvSKC6OM85WdsIDPaLKsdcx/Zwil8f3EXoEsGLSCenEWeKme3vp7vs umDd1XO9U7YzrdVkFrX+pM20BM3zlhQQ/cz3BX21EH2jOYKxp/LXcAfMSZnMgdJ1Cwl2+W+TIFf0l2 gzAbiC0tpO2B/cAVXby/AC70kNzuasLcqXfeTiKMqc285E75qK96Nh0Vf9RnDtOqfAwSBIKNCmIDSU bEvxSGb1xICI1xi2EBsO1R0mdNGx8u 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_112942_841266_FC35BEF9 X-CRM114-Status: GOOD ( 12.49 ) 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 FAR_ELx to automatic register generation as per DDI0487H.a. In the architecture these registers have a single field "named" as "Faulting Virtual Address for synchronous exceptions taken to ELx" occupying the entire register, in order to fit in with the requirement to describe the contents of the register I have created a single field named ADDR. No functional change. Signed-off-by: Mark Brown Reviewed-by: Mark Rutland --- arch/arm64/include/asm/sysreg.h | 3 --- arch/arm64/tools/sysreg | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 09dc437030f5..8ab15c262864 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -249,7 +249,6 @@ #define SYS_TFSR_EL1 sys_reg(3, 0, 5, 6, 0) #define SYS_TFSRE0_EL1 sys_reg(3, 0, 5, 6, 1) -#define SYS_FAR_EL1 sys_reg(3, 0, 6, 0, 0) #define SYS_PAR_EL1 sys_reg(3, 0, 7, 4, 0) #define SYS_PAR_EL1_F BIT(0) @@ -560,7 +559,6 @@ #define SYS_VSESR_EL2 sys_reg(3, 4, 5, 2, 3) #define SYS_FPEXC32_EL2 sys_reg(3, 4, 5, 3, 0) #define SYS_TFSR_EL2 sys_reg(3, 4, 5, 6, 0) -#define SYS_FAR_EL2 sys_reg(3, 4, 6, 0, 0) #define SYS_VDISR_EL2 sys_reg(3, 4, 12, 1, 1) #define __SYS__AP0Rx_EL2(x) sys_reg(3, 4, 12, 8, x) @@ -615,7 +613,6 @@ #define SYS_AFSR1_EL12 sys_reg(3, 5, 5, 1, 1) #define SYS_ESR_EL12 sys_reg(3, 5, 5, 2, 0) #define SYS_TFSR_EL12 sys_reg(3, 5, 5, 6, 0) -#define SYS_FAR_EL12 sys_reg(3, 5, 6, 0, 0) #define SYS_MAIR_EL12 sys_reg(3, 5, 10, 2, 0) #define SYS_AMAIR_EL12 sys_reg(3, 5, 10, 3, 0) #define SYS_VBAR_EL12 sys_reg(3, 5, 12, 0, 0) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 1cd1e4ea42e3..b725edc9626b 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -228,6 +228,10 @@ Sysreg SMCR_EL1 3 0 1 2 6 Fields SMCR_ELx EndSysreg +Sysreg FAR_EL1 3 0 6 0 0 +Field 63:0 ADDR +EndSysreg + SysregFields CONTEXTIDR_ELx Res0 63:32 Field 31:0 PROCID @@ -351,6 +355,10 @@ Field 3:2 D1 Field 1:0 D0 EndSysreg +Sysreg FAR_EL2 3 4 6 0 0 +Field 63:0 ADDR +EndSysreg + Sysreg CONTEXTIDR_EL2 3 4 13 0 1 Fields CONTEXTIDR_ELx EndSysreg @@ -367,6 +375,10 @@ Sysreg SMCR_EL12 3 5 1 2 6 Fields SMCR_ELx EndSysreg +Sysreg FAR_EL12 3 5 6 0 0 +Field 63:0 ADDR +EndSysreg + Sysreg CONTEXTIDR_EL12 3 5 13 0 1 Fields CONTEXTIDR_ELx EndSysreg