* [BOOTWRAPPER PATCH] Enable TME for lower exception levels
@ 2019-08-23 14:50 Will Deacon
2019-08-27 11:08 ` Mark Rutland
0 siblings, 1 reply; 2+ messages in thread
From: Will Deacon @ 2019-08-23 14:50 UTC (permalink / raw)
To: mark.rutland; +Cc: Will Deacon, linux-arm-kernel
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>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [BOOTWRAPPER PATCH] Enable TME for lower exception levels
2019-08-23 14:50 [BOOTWRAPPER PATCH] Enable TME for lower exception levels Will Deacon
@ 2019-08-27 11:08 ` Mark Rutland
0 siblings, 0 replies; 2+ messages in thread
From: Mark Rutland @ 2019-08-27 11:08 UTC (permalink / raw)
To: Will Deacon; +Cc: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-27 11:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-23 14:50 [BOOTWRAPPER PATCH] Enable TME for lower exception levels Will Deacon
2019-08-27 11:08 ` Mark Rutland
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).