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 721CEC19F2D for ; Tue, 9 Aug 2022 16:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qXieQpS20Q2d+9ikuSldrEQsREce6gi8ox/JXOL6q9s=; b=ypwFnlcaCz9zid qvDU9CP5Grmq0XiWptnbQ5ntTtIhNsuk9/sMFBTlEghVrYewu4MkWBRN1oeN+crMUdTtvIJvHz/DB I6itwc5nidGTpRbkqpzPwfZpGJLU21sH2bu/3SaRIxE8rx0K7SmUcHfDLUU0j003BTGpsEnYFEgCH r1oxqECD5o7w0o5goU773aln+vFYuooib1hsWVDLOxeWW4OPDAMTb1WPKS+uUPx7K3pnTNaTqU0at 5Axs8aob21K/sihf+zo38lJiq7a4SsoVH8pFomgtK4B6ijjAx5Pn0URuefvBlLD/5jjSDusBFyULL V2k1SxN4p3DhhpRyRmzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oLSQD-0055EU-SP; Tue, 09 Aug 2022 16:49:37 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oLSQA-0055D5-Re for linux-arm-kernel@lists.infradead.org; Tue, 09 Aug 2022 16:49:36 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BA213B81633; Tue, 9 Aug 2022 16:49:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7762FC433D6; Tue, 9 Aug 2022 16:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660063771; bh=vmvrp06z/9E5ewruB9hgQbojabCvvAtIPWajE3UadeQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=t6I4JlIFvjmcpGC/JHRBo44PJ98DBijbD1LNg2Lxhc2dEh+ewO/2gHhfRBpY+mwef Ezn2QdoavHmJ2ClgL6pTJdVpyCemhpD0Uhjgsap7HhuXj1ufnvvBA5ruxmRNIiA5Cn axNCCEHzXR5h1rF/Cx76nvVV1TwuONnumgYLjOY8FIe3pBFjapwsaobMq8k8SM1/Eq m0vrO0qAATlK62IFwTuguL114cVlr5jN0IeiI/uIQxBNydTgVxvDMJqyxNVJmFdgdv MjjVHNC/Vx45kE/2mHI81wEjCJHcOW1jtDsF39ltDyxK7ugW1NRPBaYNPF3OA2Tcuq kaPWRPYTOxqXw== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.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 1oLSQ5-001xDr-6g; Tue, 09 Aug 2022 17:49:29 +0100 Date: Tue, 09 Aug 2022 17:49:28 +0100 Message-ID: <87v8r1uztz.wl-maz@kernel.org> From: Marc Zyngier To: Evgenii Stepanov Cc: Catalin Marinas , Will Deacon , Peter Collingbourne , Vincenzo Frascino , Andrey Konovalov , Mark Brown , Linux ARM , LKML Subject: Re: [PATCH] mte: Follow arm64.nomte override in MMU setup. In-Reply-To: References: <20220805214734.1937451-1-eugenis@google.com> <875yj1x0k0.wl-maz@kernel.org> 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/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: eugenis@google.com, catalin.marinas@arm.com, will@kernel.org, pcc@google.com, vincenzo.frascino@arm.com, andreyknvl@gmail.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@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-20220809_094935_066607_8DCFE18A X-CRM114-Status: GOOD ( 23.21 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 09 Aug 2022 17:41:28 +0100, Evgenii Stepanov wrote: > > On Tue, Aug 9, 2022 at 1:50 AM Marc Zyngier wrote: > > How comes such memory is being used? How comes it is in the linear > > map? > > > > arm64.nomte is affecting the use of MTE feature on the platform. It > > doesn't guard the use of a MTE carve-out, and doesn't allow it to be > > used in any shape or form. > > > > To use this memory, you should remove the MTE configuration > > altogether, as you cannot infer what the CPU is doing with it. > > This can be used to enable MTE in TZ but not in the NS memory. In which case what is the tag memory doing in the linear map? Shouldn't it be marked as reserved, not mapped, and in general completely ignored by the NS OS? M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel