From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C383BC4320A for ; Fri, 30 Jul 2021 14:50:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ADBE260EFD for ; Fri, 30 Jul 2021 14:50:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239478AbhG3Oud (ORCPT ); Fri, 30 Jul 2021 10:50:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33458 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S239453AbhG3OuL (ORCPT ); Fri, 30 Jul 2021 10:50:11 -0400 X-UUID: ba832a4059454e1d80570db03fae8af3-20210730 X-UUID: ba832a4059454e1d80570db03fae8af3-20210730 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 520644903; Fri, 30 Jul 2021 22:50:01 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 30 Jul 2021 22:49:59 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 30 Jul 2021 22:50:00 +0800 From: To: CC: , , , Yee Lee , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" Subject: [PATCH v3 0/1] arm64/cpufeature: Support optionally disable MTE Date: Fri, 30 Jul 2021 22:49:52 +0800 Message-ID: <20210730144957.30938-1-yee.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yee Lee For some case of low-end devices with limited resources, an option to disable MTE support is necessary. This patch supoorts to override id-reg on the shadow capability via comandline and suppress MTE feature. === Test === QEMU5.2 + MTE passed "arm64.nomte" in cmdline boot log: ..(skip) [ 0.000000] CPU features: SYS_ID_AA64PFR1_EL1[11:8]: forced to 0 Changed since v3: - Add documentation text Changed since v2: - Use id-reg override machanism to suppress feature. Yee Lee (1): arm64/cpufeature: Optionally disable MTE via command-line Documentation/admin-guide/kernel-parameters.txt | 3 +++ arch/arm64/kernel/idreg-override.c | 2 ++ 2 files changed, 5 insertions(+) -- 2.18.0