From patchwork Thu Mar 23 20:44:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13186080 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 9FBA9C6FD1C for ; Thu, 23 Mar 2023 20:46:50 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FGJcE3NzGe7wObf4qyUXbGXvq7DQcopOpzLx8hBQd2I=; b=Z2acmWR79uPhdR dljAzJ+JawSL5iv3W5TXX6wVW6X1EUkjm1+7e/fmVr/fdeViM7n3iuizQf0gR+NrVfZIIYQKyBCjw AKWKPkI8VOLwKZYf1l9itDA+kX4ZukSkJgNerC0h8fQHJoKJjNV/OZa9A8FgFVqM1t9K2scoAJ2ee iAYgK6JNXh/6JIaktlOGCAPuV8w0HvXHpPdxlwoLEjWHyc2vVy67J6S0EU9R96I021t7vPFXZm36N FMjnI2XVz57HfvMucsZDs5oXT0DttJqccbHMbOx0b0N6igM36aTKzyA7h0GoQAQTFXK4VvGN03V+k 8AC5yqECzlTl2FHp3/WA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfRol-002wF9-1t; Thu, 23 Mar 2023 20:45:51 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfRoY-002wCc-23 for linux-arm-kernel@lists.infradead.org; Thu, 23 Mar 2023 20:45:46 +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 01343B8224B; Thu, 23 Mar 2023 20:45:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BC89C433A1; Thu, 23 Mar 2023 20:45:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679604335; bh=nWKfi1HEudmdxpdb81RertI104eji0uTemho/GX0iSU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=D1jlG8/G0083Nj0cox7djvVUCkT7HM8YbRUrXhqL6O0I2azb1GNT+hpIWIVNWdqKl I32apii0Qqk7UhF1ScHAPIIlX1IJ22K+hoB6zgJYZcMFuVdDcq0HS2K+OvOxI22CeE T8T51A4Lb5cwNlRI+divcYaJCH3RJUB+n8XJXLPp/yFU1hCxk1wjJGASF1N7PKHEuD 1+L1VNcF1uFxtpa3pE2+Tfpl/GnH9DW8A6QwX0ETuTBW1KakrKed+/cW7dk3mMJKEr vKTnY+WkPgl6JgXG4GcCEvVb92izzbVfgoAZ2i7uwFBtuueyxkcr3KRqqtiyYsRG7j Yo2b4KBRr5lZw== From: Mark Brown Date: Thu, 23 Mar 2023 20:44:54 +0000 Subject: [PATCH v3 2/2] arm64/sysreg: Convert HFGITR_EL2 to automatic generation MIME-Version: 1.0 Message-Id: <20230306-arm64-fgt-reg-gen-v3-2-decba93cbaab@kernel.org> References: <20230306-arm64-fgt-reg-gen-v3-0-decba93cbaab@kernel.org> In-Reply-To: <20230306-arm64-fgt-reg-gen-v3-0-decba93cbaab@kernel.org> To: Catalin Marinas , Will Deacon Cc: Joey Gouly , Anshuman Khandual , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-bd1bf X-Developer-Signature: v=1; a=openpgp-sha256; l=2608; i=broonie@kernel.org; h=from:subject:message-id; bh=nWKfi1HEudmdxpdb81RertI104eji0uTemho/GX0iSU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkHLpp5I05qve552Mm+inmnWBhpAdu7yoSQdMMPzF4 X7RFVxqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZBy6aQAKCRAk1otyXVSH0KTKB/ 9QV65JfqBNLsJ9C48nRt/84ABDsys8h8KsyOr9lnkmKhTpIQwo4BfP35B5gof+xL5UgL7JCjgWTYVE DpnlK7GNTR15t6fkltzHQq9iXXOtELz9Yaaw8+gWqe7KmeeJXslijkmtSFW5Jn67Hu+GcoX0TcCRw6 QI4teQprN/aVbCczRuq6JDHpWBHZGVAhFJ9+JdQ+p8ypBjW/bgpIeA5aGcW5kC0tdDQQV/LQRk2wUD tAJIGPxoZmJtySl4ePPZkFk5vtGrxUQiEv7iu4EijQ0f6Fmy3q6GGpnALuREKNG17p9a041z0vckP7 +y0/LCrmvTP+S7ljMgeItEVovvaWBU 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-20230323_134538_978811_58D9F073 X-CRM114-Status: GOOD ( 10.74 ) 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 Automatically generate the Hypervisor Fine-Grained Instruction Trap Register as per DDI0601 2022-12, currently we only have a definition for the register name not any of the contents. No functional change. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 1 - arch/arm64/tools/sysreg | 65 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index e5ca9ece1606..c48b41c9b0cc 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -419,7 +419,6 @@ #define SYS_MDCR_EL2 sys_reg(3, 4, 1, 1, 1) #define SYS_CPTR_EL2 sys_reg(3, 4, 1, 1, 2) #define SYS_HSTR_EL2 sys_reg(3, 4, 1, 1, 3) -#define SYS_HFGITR_EL2 sys_reg(3, 4, 1, 1, 6) #define SYS_HACR_EL2 sys_reg(3, 4, 1, 1, 7) #define SYS_TTBR0_EL2 sys_reg(3, 4, 2, 0, 0) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 60829a9409f0..c06097a8b921 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -1941,6 +1941,71 @@ Sysreg HFGWTR_EL2 3 4 1 1 5 Fields HFGxTR_EL2 EndSysreg +Sysreg HFGITR_EL2 3 4 1 1 6 +Res0 63:61 +Field 60 COSPRCTX +Field 59 nGCSEPP +Field 58 nGCSSTR_EL1 +Field 57 nGCSPUSHM_EL1 +Field 56 nBRBIALL +Field 55 nBRBINJ +Field 54 DCCVAC +Field 53 SVC_EL1 +Field 52 SVC_EL0 +Field 51 ERET +Field 50 CPPRCTX +Field 49 DVPRCTX +Field 48 CFPRCTX +Field 47 TLBIVAALE1 +Field 46 TLBIVALE1 +Field 45 TLBIVAAE1 +Field 44 TLBSIDE1 +Field 43 TLBIVAE1 +Field 42 TLBIVMALLE1 +Field 41 TLBIRVAALE1 +Field 40 TLBIRVALE1 +Field 39 TLBIRVAAE1 +Field 38 TLBIRVAE1 +Field 37 TLBIRVAALE1IS +Field 36 TLBIRVALE1IS +Field 35 TLBIRVAAE1IS +Field 34 TLBIRAALE1IS +Field 33 TLBIVAALE1IS +Field 32 TLBIVALE1IS +Field 31 TLBIVAAE1IS +Field 30 TLBIASIDE1IS +Field 29 TLBIVAE1IS +Field 28 TLBIVVMALLE1IS +Field 27 TLBIRVAALE1OS +Field 26 TLBIRVALE1OS +Field 25 TLBIRVAAE1OS +Field 24 TLBIRVAE1OS +Field 23 TLBIVAALE1OS +Field 22 TLBIVALE1OS +Field 21 TLBIVAAE1OS +Field 20 TLVIASIDE1OS +Field 19 TLBIVAE1OS +Field 18 TLBIVMALLE1OS +Field 17 ATS1E1WP +Field 16 ATS1E1RP +Field 15 ATS1E0W +Field 14 ATS1E0R +Field 13 ATS1E1W +Field 12 ATS1E1R +Field 11 DCZVA +Field 10 DCCIVAC +Field 9 DCCVADP +Field 8 DCCVAP +Field 7 DCCVAU +Field 6 DCCISW +Field 5 DCCSW +Field 4 DCISW +Field 3 DCIVAC +Field 2 ICIVAU +Field 1 ICIALLU +Field 0 ICIALLUIS +EndSysreg + Sysreg ZCR_EL2 3 4 1 2 0 Fields ZCR_ELx EndSysreg