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 13/38] arm64/sysreg: Standardise naming for MVFR0_EL1
Date: Wed, 30 Nov 2022 17:16:12 +0000 [thread overview]
Message-ID: <20221130171637.718182-14-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 MVFR0_EL1 register use lower-case for feature
names where the arm-arm does the same.
No functional change.
Signed-off-by: James Morse <james.morse@arm.com>
---
arch/arm64/include/asm/sysreg.h | 16 ++++++++--------
arch/arm64/kernel/cpufeature.c | 20 ++++++++++----------
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
index 29d93a36eac9..0d4ab1c78d22 100644
--- a/arch/arm64/include/asm/sysreg.h
+++ b/arch/arm64/include/asm/sysreg.h
@@ -769,14 +769,14 @@
#define ID_PFR2_EL1_SSBS_SHIFT 4
#define ID_PFR2_EL1_CSV3_SHIFT 0
-#define MVFR0_FPROUND_SHIFT 28
-#define MVFR0_FPSHVEC_SHIFT 24
-#define MVFR0_FPSQRT_SHIFT 20
-#define MVFR0_FPDIVIDE_SHIFT 16
-#define MVFR0_FPTRAP_SHIFT 12
-#define MVFR0_FPDP_SHIFT 8
-#define MVFR0_FPSP_SHIFT 4
-#define MVFR0_SIMD_SHIFT 0
+#define MVFR0_EL1_FPRound_SHIFT 28
+#define MVFR0_EL1_FPShVec_SHIFT 24
+#define MVFR0_EL1_FPSqrt_SHIFT 20
+#define MVFR0_EL1_FPDivide_SHIFT 16
+#define MVFR0_EL1_FPTrap_SHIFT 12
+#define MVFR0_EL1_FPDP_SHIFT 8
+#define MVFR0_EL1_FPSP_SHIFT 4
+#define MVFR0_EL1_SIMDReg_SHIFT 0
#define MVFR1_SIMDFMAC_SHIFT 28
#define MVFR1_FPHP_SHIFT 24
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 84b3dc994a70..7ffe076ce7a6 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -429,14 +429,14 @@ static const struct arm64_ftr_bits ftr_id_aa64dfr0[] = {
};
static const struct arm64_ftr_bits ftr_mvfr0[] = {
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_FPROUND_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_FPSHVEC_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_FPSQRT_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_FPDIVIDE_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_FPTRAP_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_FPDP_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_FPSP_SHIFT, 4, 0),
- ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_SIMD_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_EL1_FPRound_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_EL1_FPShVec_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_EL1_FPSqrt_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_EL1_FPDivide_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_EL1_FPTrap_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_EL1_FPDP_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_EL1_FPSP_SHIFT, 4, 0),
+ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, MVFR0_EL1_SIMDReg_SHIFT, 4, 0),
ARM64_FTR_END,
};
@@ -2840,8 +2840,8 @@ static const struct arm64_cpu_capabilities compat_elf_hwcaps[] = {
HWCAP_CAP_MATCH(compat_has_neon, CAP_COMPAT_HWCAP, COMPAT_HWCAP_NEON),
HWCAP_CAP(SYS_MVFR1_EL1, MVFR1_SIMDFMAC_SHIFT, 4, FTR_UNSIGNED, 1, CAP_COMPAT_HWCAP, COMPAT_HWCAP_VFPv4),
/* Arm v8 mandates MVFR0.FPDP == {0, 2}. So, piggy back on this for the presence of VFP support */
- HWCAP_CAP(SYS_MVFR0_EL1, MVFR0_FPDP_SHIFT, 4, FTR_UNSIGNED, 2, CAP_COMPAT_HWCAP, COMPAT_HWCAP_VFP),
- HWCAP_CAP(SYS_MVFR0_EL1, MVFR0_FPDP_SHIFT, 4, FTR_UNSIGNED, 2, CAP_COMPAT_HWCAP, COMPAT_HWCAP_VFPv3),
+ HWCAP_CAP(SYS_MVFR0_EL1, MVFR0_EL1_FPDP_SHIFT, 4, FTR_UNSIGNED, 2, CAP_COMPAT_HWCAP, COMPAT_HWCAP_VFP),
+ HWCAP_CAP(SYS_MVFR0_EL1, MVFR0_EL1_FPDP_SHIFT, 4, FTR_UNSIGNED, 2, CAP_COMPAT_HWCAP, COMPAT_HWCAP_VFPv3),
HWCAP_CAP(SYS_ID_ISAR5_EL1, ID_ISAR5_EL1_AES_SHIFT, 4, FTR_UNSIGNED, 2, CAP_COMPAT_HWCAP2, COMPAT_HWCAP2_PMULL),
HWCAP_CAP(SYS_ID_ISAR5_EL1, ID_ISAR5_EL1_AES_SHIFT, 4, FTR_UNSIGNED, 1, CAP_COMPAT_HWCAP2, COMPAT_HWCAP2_AES),
HWCAP_CAP(SYS_ID_ISAR5_EL1, ID_ISAR5_EL1_SHA1_SHIFT, 4, FTR_UNSIGNED, 1, CAP_COMPAT_HWCAP2, COMPAT_HWCAP2_SHA1),
--
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:32 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 ` [PATCH v2 04/38] arm64/sysreg: Standardise naming for ID_ISAR0_EL1 James Morse
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 ` James Morse [this message]
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-14-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).