public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm•com>
To: Will Deacon <will@kernel•org>
Cc: linux-arm-kernel@lists•infradead.org
Subject: Re: [BOOTWRAPPER PATCH] Enable TME for lower exception levels
Date: Tue, 27 Aug 2019 12:08:36 +0100	[thread overview]
Message-ID: <20190827110835.GC8000@lakrids.cambridge.arm.com> (raw)
In-Reply-To: <20190823145015.15974-1-will@kernel.org>

On Fri, Aug 23, 2019 at 03:50:15PM +0100, Will Deacon wrote:
> By default, TME is not available to exception levels below EL3, so
> enable it in SCR_EL3 if we detect that it is implemented.
> 
> Signed-off-by: Will Deacon <will@kernel•org>

Applied, thanks!

Mark.

> ---
>  arch/aarch64/boot.S | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/aarch64/boot.S b/arch/aarch64/boot.S
> index 74705cded338..c2fe92c90297 100644
> --- a/arch/aarch64/boot.S
> +++ b/arch/aarch64/boot.S
> @@ -48,6 +48,13 @@ _start:
>  	orr	x0, x0, #(1 << 16)		// AP key enable
>  	orr	x0, x0, #(1 << 17)		// AP insn enable
>  1:
> +	/* Enable TME if present */
> +	mrs	x1, id_aa64isar0_el1
> +	ubfx	x1, x1, #24, #4
> +	cbz	x1, 1f
> +
> +	orr	x0, x0, #(1 << 34)		// TME enable
> +1:
>  #ifndef KERNEL_32
>  	orr	x0, x0, #(1 << 10)		// 64-bit EL2
>  #endif
> -- 
> 2.11.0
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

      reply	other threads:[~2019-08-27 11:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23 14:50 [BOOTWRAPPER PATCH] Enable TME for lower exception levels Will Deacon
2019-08-27 11:08 ` 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=20190827110835.GC8000@lakrids.cambridge.arm.com \
    --to=mark.rutland@arm$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=will@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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