From: James Morse <james.morse@arm.com>
To: linux-arm-kernel@lists.infradead.org
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Mark Brown <broonie@kernel.org>, Will Deacon <will@kernel.org>,
James Morse <james.morse@arm.com>
Subject: [PATCH v2 04/38] arm64/sysreg: Standardise naming for ID_ISAR0_EL1
Date: Wed, 30 Nov 2022 17:16:03 +0000 [thread overview]
Message-ID: <20221130171637.718182-5-james.morse@arm.com> (raw)
In-Reply-To: <20221130171637.718182-1-james.morse@arm.com>
To convert the 32bit id registers to use the sysreg generation, they
must first have a regular pattern, to match the symbols the script
generates.
Ensure symbols for the ID_ISAR0_EL1 register have an _EL1 suffix,
and use lower-case for feature names where the arm-arm does the same.
To functional change.
Signed-off-by: James Morse <james.morse@arm.com>
---
arch/arm64/include/asm/sysreg.h | 14 +++++++-------
arch/arm64/kernel/cpufeature.c | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
index 7a719c9804fc..4dc80e00a467 100644
--- a/arch/arm64/include/asm/sysreg.h
+++ b/arch/arm64/include/asm/sysreg.h
@@ -710,13 +710,13 @@
#define ID_DFR1_MTPMU_SHIFT 0
-#define ID_ISAR0_DIVIDE_SHIFT 24
-#define ID_ISAR0_DEBUG_SHIFT 20
-#define ID_ISAR0_COPROC_SHIFT 16
-#define ID_ISAR0_CMPBRANCH_SHIFT 12
-#define ID_ISAR0_BITFIELD_SHIFT 8
-#define ID_ISAR0_BITCOUNT_SHIFT 4
-#define ID_ISAR0_SWAP_SHIFT 0
+#define ID_ISAR0_EL1_Divide_SHIFT 24
+#define ID_ISAR0_EL1_Debug_SHIFT 20
+#define ID_ISAR0_EL1_Coproc_SHIFT 16
+#define ID_ISAR0_EL1_CmpBranch_SHIFT 12
+#define ID_ISAR0_EL1_BitField_SHIFT 8
+#define ID_ISAR0_EL1_BitCount_SHIFT 4
+#define ID_ISAR0_EL1_Swap_SHIFT 0
#define ID_ISAR5_RDM_SHIFT 24
#define ID_ISAR5_CRC32_SHIFT 16
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 29239ea0f139..122c6e317660 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -470,13 +470,13 @@ static const struct arm64_ftr_bits ftr_gmid[] = {
};
static const struct arm64_ftr_bits ftr_id_isar0[] = {
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_DIVIDE_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_DEBUG_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_COPROC_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_CMPBRANCH_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_BITFIELD_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_BITCOUNT_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_SWAP_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_EL1_Divide_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_EL1_Debug_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_EL1_Coproc_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_EL1_CmpBranch_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_EL1_BitField_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_EL1_BitCount_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_ISAR0_EL1_Swap_SHIFT, 4, 0),
ARM64_FTR_END,
};
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-11-30 17:24 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-30 17:15 [PATCH v2 00/38] arm64/sysreg: Convert aarch32 id regs James Morse
2022-11-30 17:16 ` [PATCH v2 01/38] arm64/sysreg: Standardise naming for ID_MMFR0_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 02/38] arm64/sysreg: Standardise naming for ID_MMFR4_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 03/38] arm64/sysreg: Standardise naming for ID_MMFR5_EL1 James Morse
2022-11-30 17:16 ` James Morse [this message]
2022-11-30 17:16 ` [PATCH v2 05/38] arm64/sysreg: Standardise naming for ID_ISAR4_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 06/38] arm64/sysreg: Standardise naming for ID_ISAR5_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 07/38] arm64/sysreg: Standardise naming for ID_ISAR6_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 08/38] arm64/sysreg: Standardise naming for ID_PFR0_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 09/38] arm64/sysreg: Standardise naming for ID_PFR1_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 10/38] arm64/sysreg: Standardise naming for ID_PFR2_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 11/38] arm64/sysreg: Standardise naming for ID_DFR0_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 12/38] arm64/sysreg: Standardise naming for ID_DFR1_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 13/38] arm64/sysreg: Standardise naming for MVFR0_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 14/38] arm64/sysreg: Standardise naming for MVFR1_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 15/38] arm64/sysreg: Standardise naming for MVFR2_EL1 James Morse
2022-11-30 17:16 ` [PATCH v2 16/38] arm64/sysreg: Extend the maximum width of a register and symbol name James Morse
2022-11-30 17:16 ` [PATCH v2 17/38] arm64/sysreg: Convert ID_MMFR0_EL1 to automatic generation James Morse
2022-11-30 17:16 ` [PATCH v2 18/38] arm64/sysreg: Convert ID_MMFR1_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 19/38] arm64/sysreg: Convert ID_MMFR2_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 20/38] arm64/sysreg: Convert ID_MMFR3_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 21/38] arm64/sysreg: Convert ID_MMFR4_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 22/38] arm64/sysreg: Convert ID_ISAR0_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 23/38] arm64/sysreg: Convert ID_ISAR1_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 24/38] arm64/sysreg: Convert ID_ISAR2_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 25/38] arm64/sysreg: Convert ID_ISAR3_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 26/38] arm64/sysreg: Convert ID_ISAR4_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 27/38] arm64/sysreg: Convert ID_ISAR5_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 28/38] arm64/sysreg: Convert ID_ISAR6_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 29/38] arm64/sysreg: Convert ID_PFR0_EL1 " James Morse
2022-11-30 19:07 ` Mark Brown
2022-11-30 17:16 ` [PATCH v2 30/38] arm64/sysreg: Convert ID_PFR1_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 31/38] arm64/sysreg: Convert ID_PFR2_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 32/38] arm64/sysreg: Convert MVFR0_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 33/38] arm64/sysreg: Convert MVFR1_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 34/38] arm64/sysreg: Convert MVFR2_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 35/38] arm64/sysreg: Convert ID_MMFR5_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 36/38] arm64/sysreg: Convert ID_AFR0_EL1 " James Morse
2022-11-30 17:16 ` [PATCH v2 37/38] arm64/sysreg: Convert ID_DFR0_EL1 " James Morse
2022-11-30 19:08 ` Mark Brown
2022-11-30 17:16 ` [PATCH v2 38/38] arm64/sysreg: Convert ID_DFR1_EL1 " James Morse
2022-12-01 17:00 ` [PATCH v2 00/38] arm64/sysreg: Convert aarch32 id regs Will Deacon
2022-12-02 11:17 ` Will Deacon
2022-12-02 15:52 ` Marc Zyngier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221130171637.718182-5-james.morse@arm.com \
--to=james.morse@arm.com \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).