From: Mark Rutland <mark.rutland@arm.com>
To: Catalin Marinas <catalin.marinas@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Subject: Re: [aarch64 boot-wrapper][PATCH] aarch64: Enable access to allocation tags if MTE is present
Date: Thu, 6 May 2021 09:25:02 +0100 [thread overview]
Message-ID: <20210506082502.GB12883@C02TD0UTHF1T.local> (raw)
In-Reply-To: <20210505093855.8416-1-catalin.marinas@arm.com>
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 <catalin.marinas@arm.com>
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
prev parent reply other threads:[~2021-05-06 8:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-05 9:38 [aarch64 boot-wrapper][PATCH] aarch64: Enable access to allocation tags if MTE is present Catalin Marinas
2021-05-06 8:25 ` Mark Rutland [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210506082502.GB12883@C02TD0UTHF1T.local \
--to=mark.rutland@arm.com \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).