summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/cpu.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-06-07 14:28:57 +0100
committerWill Deacon <will@kernel.org>2022-06-23 18:22:44 +0100
commitd69d564964872f52c4a8f0db172d842eaf3b84cf (patch)
treebe7531263167a1b95e57b1ae571987f5f00b0bcf /arch/arm64/include/asm/cpu.h
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e (diff)
arm64/sme: Expose SMIDR through sysfs
We currently expose MIDR and REVID to userspace through sysfs to enable it to make decisions based on the specific implementation. Since SME supports implementations where streaming mode is provided by a separate hardware unit called a SMCU it provides a similar ID register SMIDR. Expose it to userspace via sysfs when the system supports SME along with the other ID registers. Since we disable the SME priority mapping feature if it is supported by hardware we currently mask out the SMPS bit which reports that it is supported. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220607132857.1358361-1-broonie@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/cpu.h')
-rw-r--r--arch/arm64/include/asm/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cpu.h b/arch/arm64/include/asm/cpu.h
index 115cdec1ae87..fd7a92219eea 100644
--- a/arch/arm64/include/asm/cpu.h
+++ b/arch/arm64/include/asm/cpu.h
@@ -46,6 +46,7 @@ struct cpuinfo_arm64 {
u64 reg_midr;
u64 reg_revidr;
u64 reg_gmid;
+ u64 reg_smidr;
u64 reg_id_aa64dfr0;
u64 reg_id_aa64dfr1;