[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210728094302.9949-1-yee.lee@mediatek.com>
Date: Wed, 28 Jul 2021 17:42:57 +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>,
Matthias Brugger <matthias.bgg@...il.com>,
"moderated list:ARM/Mediatek SoC support"
<linux-arm-kernel@...ts.infradead.org>,
"moderated list:ARM/Mediatek SoC support"
<linux-mediatek@...ts.infradead.org>
Subject: [PATCH 0/1] arm64/cpufeature: Add an option for mte support
From: Yee Lee <yee.lee@...iatek.com>
Arm64 introduced mte to enforce memory protection but also increased
the system requirements, such as the additional tag memory and the
firmware control complexity. For the case of products with limited
resouce or low-power environment, the requirements to support mte
is unlikely reached. Hence, a solution for low-end devices is
necessary.
This patch Add an option for mte support. An parameter from system
is used to indicate its states for all requirements. If not, mte
is disabled both in kernel and userspace.
=== Test ===
QEMU5.2 + mte
passed cmdline : "arm64_mte_not_support"
boot log:
...(skip)
[ 0.000000] CPU features: detected: Memory Tagging Extension
[ 0.000000] CPU features: detected: Spectre-v2
[ 0.000000] CPU features: detected: Spectre-v4
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] CPU features: MTE is disabled since system does not support.
Yee Lee (1):
arm64/cpufeature: Add option to disable mte support
arch/arm64/include/asm/cpufeature.h | 4 +++-
arch/arm64/kernel/cpufeature.c | 13 +++++++++++++
arch/arm64/kernel/image-vars.h | 3 +++
3 files changed, 19 insertions(+), 1 deletion(-)
--
2.18.0
Powered by blists - more mailing lists