[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210729020717.15142-2-yee.lee@mediatek.com>
Date: Thu, 29 Jul 2021 10:07:12 +0800
From: <yee.lee@...iatek.com>
To: <linux-kernel@...r.kernel.org>
CC: <nicholas.Tang@...iatek.com>, <Kuan-Ying.lee@...iatek.com>,
<chinwen.chang@...iatek.com>, Yee Lee <yee.lee@...iatek.com>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Marc Zyngier <maz@...nel.org>,
David Brazdil <dbrazdil@...gle.com>,
Ard Biesheuvel <ardb@...nel.org>,
Fuad Tabba <tabba@...gle.com>,
"moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)"
<linux-arm-kernel@...ts.infradead.org>,
"moderated list:ARM/Mediatek SoC support"
<linux-mediatek@...ts.infradead.org>
Subject: [PATCH v2 1/1] arm64/cpufeature: Add arm64.nomte to override id-reg
From: Yee Lee <yee.lee@...iatek.com>
Add an alias, "arm64.nomte", to override id-reg and
suppress mte feature.
Suggested-by: Marc Zyngier <maz@...nel.org>
Suggested-by: Suzuki K Poulose <suzuki.poulose@....com>
Signed-off-by: Yee Lee <yee.lee@...iatek.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
Powered by blists - more mailing lists