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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 7A746C43460 for ; Thu, 6 May 2021 08:27:26 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2A639611AE for ; Thu, 6 May 2021 08:27:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A639611AE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2SY5el8OD4rbkEZNISxkHLQ8hEs39B1yE+E41V4cHc0=; b=IjLNOqFUvGA+kgSxCuppKd+Bn OkczEjKYzJia+dZsPSt+bmWz00kAFc5zmQtal+Gd7lx49CkRFuXvr6Yulzg/2c93xokkYsumvV+Su eqaNIO79Rjh217/Oq0KWb8ldRDcl4RsA+rxrHIrtypiwE4YrF8pONt8PZmnjLOp4myRM5xUOnGiVb oRbcBeoNR2PCQBMyH+rplQY4xqPuzCAphvR9ijLjYefAc3iqNHuB59gdQzIuoMBo7KplegPmXH+0r 8txVYkKJeFaYln6HXUEUaag4wtF+AEl4HabgKF6ncAEQD49C0InU2rerZZadCVReIKxYxfZj26OeV eedeEXcwQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leZJu-003fOV-Cz; Thu, 06 May 2021 08:25:18 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leZJq-003fOJ-Ig for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 08:25:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qm8Pz81pEYw2Op2tLNiuDBJKtPg4hSux+qHZxufUodg=; b=TFeEGnzvXWvaJ85euKUsi+lMoz If4nl3YXdjxpMB+8Do4zELA4rDL7xSeDvZDYg8K7hTwrLblJQUHdeIF9TjvHRxMgCSOIUmWZPVicZ G69u1bDwhKewIwmJSJ6fvVyBQOclYhhdV4jkJJh/cpKjZ2lssEUtFX2EPlAXhl6RdVIXkiqPN/JOk xsLkpgmVGqcQ2CgFD1p6vKJeQsJiGH8HJ18TWN+1zfsCw9ghfRorIwOM6TnRcuDlHpBH0SDR9OvLk I9NAZhmMUd+lFFNI92HdfEUKV52a/5Cs2mvuiHOlX4GvvJTJ1EMNtx0kvSLscZ0SzipRfHCDUnqHn 6wtOV3AA==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leZJn-005rsu-Vb for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 08:25:13 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5798631B; Thu, 6 May 2021 01:25:06 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.31.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE46B3F718; Thu, 6 May 2021 01:25:05 -0700 (PDT) Date: Thu, 6 May 2021 09:25:02 +0100 From: Mark Rutland To: Catalin Marinas Cc: linux-arm-kernel@lists.infradead.org Subject: Re: [aarch64 boot-wrapper][PATCH] aarch64: Enable access to allocation tags if MTE is present Message-ID: <20210506082502.GB12883@C02TD0UTHF1T.local> References: <20210505093855.8416-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210505093855.8416-1-catalin.marinas@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_012512_082804_C60DB3B4 X-CRM114-Status: GOOD ( 12.45 ) 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 Wed, May 05, 2021 at 10:38:55AM +0100, Catalin Marinas wrote: > SCR_EL3.ATA must be set so that software can access the allocation > (in-memory) MTE tags. > > Signed-off-by: Catalin Marinas Thanks; applied. Mark. > --- > arch/aarch64/boot.S | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/aarch64/boot.S b/arch/aarch64/boot.S > index fd7133d1725c..a9264de937be 100644 > --- a/arch/aarch64/boot.S > +++ b/arch/aarch64/boot.S > @@ -61,6 +61,14 @@ _start: > cbz x1, 1f > > orr x0, x0, #(1 << 27) // FGT enable > +1: > + /* Enable MTE if present */ > + mrs x10, id_aa64pfr1_el1 > + ubfx x10, x10, #8, #4 > + cmp x10, #2 > + b.lt 1f > + > + orr x0, x0, #(1 << 26) // ATA enable > 1: > #ifndef KERNEL_32 > orr x0, x0, #(1 << 10) // 64-bit EL2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel