[PATCH v2 1/1] arm64/cpufeature: Add arm64.nomte to override id-reg

yee.lee at mediatek.com yee.lee at mediatek.com
Wed Jul 28 19:07:12 PDT 2021


From: Yee Lee <yee.lee at mediatek.com>

Add an alias, "arm64.nomte", to override id-reg and
suppress mte feature.

Suggested-by: Marc Zyngier <maz at kernel.org>
Suggested-by: Suzuki K Poulose <suzuki.poulose at arm.com>
Signed-off-by: Yee Lee <yee.lee at mediatek.com>
---
 arch/arm64/kernel/idreg-override.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/kernel/idreg-override.c b/arch/arm64/kernel/idreg-override.c
index 53a381a7f65d..d8e606fe3c21 100644
--- a/arch/arm64/kernel/idreg-override.c
+++ b/arch/arm64/kernel/idreg-override.c
@@ -54,6 +54,7 @@ static const struct ftr_set_desc pfr1 __initconst = {
 	.override	= &id_aa64pfr1_override,
 	.fields		= {
 	        { "bt", ID_AA64PFR1_BT_SHIFT },
+		{ "mte", ID_AA64PFR1_MTE_SHIFT},
 		{}
 	},
 };
@@ -100,6 +101,7 @@ static const struct {
 	{ "arm64.nopauth",
 	  "id_aa64isar1.gpi=0 id_aa64isar1.gpa=0 "
 	  "id_aa64isar1.api=0 id_aa64isar1.apa=0"	   },
+	{ "arm64.nomte",		"id_aa64pfr1.mte=0" },
 	{ "nokaslr",			"kaslr.disabled=1" },
 };
 
-- 
2.18.0


More information about the Linux-mediatek mailing list