All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] arm64/cpufeature: Add an option for mte support
@ 2021-07-28  9:42 ` yee.lee
  0 siblings, 0 replies; 14+ messages in thread
From: yee.lee @ 2021-07-28  9:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: nicholas.Tang, Kuan-Ying.lee, chinwen.chang, Yee Lee,
	Matthias Brugger, moderated list:ARM/Mediatek SoC support,
	moderated list:ARM/Mediatek SoC support

From: Yee Lee <yee.lee@mediatek.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
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-07-28 10:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-28  9:42 [PATCH 0/1] arm64/cpufeature: Add an option for mte support yee.lee
2021-07-28  9:42 ` yee.lee
2021-07-28  9:42 ` yee.lee
2021-07-28  9:42 ` [PATCH 1/1] arm64/cpufeature: Add option to disable " yee.lee
2021-07-28  9:42   ` yee.lee
2021-07-28  9:42   ` yee.lee
2021-07-28  9:59   ` Suzuki K Poulose
2021-07-28  9:59     ` Suzuki K Poulose
2021-07-28  9:59     ` Suzuki K Poulose
2021-07-28 10:05     ` Marc Zyngier
2021-07-28 10:05       ` Marc Zyngier
2021-07-28 10:05       ` Marc Zyngier
2021-07-28 10:04   ` Marc Zyngier
2021-07-28 10:04     ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.