Commit 58f1839a authored by Yee Lee's avatar Yee Lee Committed by Marc Zyngier
Browse files

FROMGIT: arm64/cpufeature: Optionally disable MTE via command-line

MTE support needs to be optionally disabled in runtime
for HW issue workaround, FW development and some
evaluation works on system resource and performance.

This patch makes two changes:
(1) moves init of tag-allocation bits(ATA/ATA0) to
cpu_enable_mte() as not cached in TLB.

(2) allows ID_AA64PFR1_EL1.MTE to be overridden on
its shadow value by giving "arm64.nomte" on cmdline.

When the feature value is off, ATA and TCF will not set
and the related functionalities are accordingly suppressed.

Change-Id: Ic9cf6d3a12a33b312643d96101c72a657cb714af
Link: https://lore.kernel.org/lkml/20210803070824.7586-2-yee.lee@mediatek.com/
(cherry picked from commit 7a062ce3 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git

 next)
Bug: 195507092
Suggested-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Suggested-by: default avatarMarc Zyngier <maz@kernel.org>
Suggested-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarYee Lee <yee.lee@mediatek.com>
parent 20c3903a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment