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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6DE38C61CE8 for ; Thu, 12 Jun 2025 08:07:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1yQP+/KuIP3GwQoq+R6owu0HC7Sua39kYW115lpXjnk=; b=SXL2Mwj4jbqL/PIyAqwMwh1+TN TsU9f0iwYTpgWdVIzq0KDINxJ3XlT8cZEkZz4DQII6p93Bc9prEcTKzm3OLjZcJGF5gksujtPTslD 0RRAf0h68ZUGzy3kKjk5shVK/m2sA+8YnNPteQ7bl8ez2Irw6VaTGYPfcUTtHGQEfmdISwnwIkRvA FwYZ3kN99vj/by0gd+1iB2/k22lXG9h4IpHOheQkgZ8e4xemL8drTZGSnitp5D5SZGodkNFo2b2uy KNKY+ugJMHPeIvRG6zK1W4SOq9a10pqSGxrBu/Lx+A5TmLwk3k5YprgdtT5ublmWC7D+MhFmYOWvD VFpesy2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPcyC-0000000CYX9-1THQ; Thu, 12 Jun 2025 08:07:32 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPcUR-0000000CT40-44j6 for linux-arm-kernel@lists.infradead.org; Thu, 12 Jun 2025 07:36:49 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 834124A01E; Thu, 12 Jun 2025 07:36:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5916FC4CEEA; Thu, 12 Jun 2025 07:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749713807; bh=amK0NIN5f0CVZN6pcqtau63uuJcNZ6OKBSVmWtcbOOA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jhXpqvxiJ8HB4Z6LoALegW644y4p6iJclaaAexuKW+f1jpZdYSnhGxWdVhO9fWa6y bt4S9aYCno/oHs2YizX0PjYe8k5RuprvhSVJRsd2uD6VjNlJk2YnPxJevAsZARuBqS 4+vplqFYaJwis1SM29MD9diaQjEmZo3TVfwYxs25kTS4dheBDVIpO/Y6IvzJ64KrVD WkxjI6O4WLJ12rmZzhuhEGSp8FY4uFPHRwai5fEeXqQ6rW9ay+1gaqpnqHNUHFiVHw HHmSmzB586b0MKLJWjf/2PW4DSIQiSYBUXL9HjA8H6xR0I64kFvIpZLDER8WsTap0A 7Y3dA/Y2bImAQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1uPcUP-0069LT-68; Thu, 12 Jun 2025 08:36:45 +0100 Date: Thu, 12 Jun 2025 08:36:44 +0100 Message-ID: <86y0txcsxf.wl-maz@kernel.org> From: Marc Zyngier To: Yeoreum Yun Cc: catalin.marinas@arm.com, pcc@google.com, will@kernel.org, broonie@kernel.org, anshuman.khandual@arm.com, joey.gouly@arm.com, yury.khrustalev@arm.com, oliver.upton@linux.dev, frederic@kernel.org, akpm@linux-foundation.org, surenb@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v7 1/9] arm64/cpufeature: add FEAT_MTE_TAGGED_FAR feature In-Reply-To: <20250611135818.31070-2-yeoreum.yun@arm.com> References: <20250611135818.31070-1-yeoreum.yun@arm.com> <20250611135818.31070-2-yeoreum.yun@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: yeoreum.yun@arm.com, catalin.marinas@arm.com, pcc@google.com, will@kernel.org, broonie@kernel.org, anshuman.khandual@arm.com, joey.gouly@arm.com, yury.khrustalev@arm.com, oliver.upton@linux.dev, frederic@kernel.org, akpm@linux-foundation.org, surenb@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250612_003648_047786_D197C84C X-CRM114-Status: GOOD ( 17.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 11 Jun 2025 14:58:10 +0100, Yeoreum Yun wrote: > > Add FEAT_MTE_TAGGED_FAR cpucap which makes FAR_ELx report > all non-address bits on a synchronous MTE tag check fault since Armv8.9 > > Signed-off-by: Yeoreum Yun > Acked-by: Yury Khrustalev > --- > arch/arm64/kernel/cpufeature.c | 8 ++++++++ > arch/arm64/tools/cpucaps | 1 + > 2 files changed, 9 insertions(+) > > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > index b34044e20128..af6a6924a3e8 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -320,6 +320,7 @@ static const struct arm64_ftr_bits ftr_id_aa64pfr1[] = { > > static const struct arm64_ftr_bits ftr_id_aa64pfr2[] = { > ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64PFR2_EL1_FPMR_SHIFT, 4, 0), > + ARM64_FTR_BITS(FTR_VISIBLE, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_AA64PFR2_EL1_MTEFAR_SHIFT, 4, ID_AA64PFR2_EL1_MTEFAR_NI), > ARM64_FTR_END, > }; Same thing as the remark I had on FEAT_LSUI: for anything that does not introduce extra state, please similarly enable the feature in KVM. There is no point in these discrepancies. For anything that has extra state, you should at least consider what needs to be done. Thanks, M. -- Without deviation from the norm, progress is not possible.