Thread (61 messages) flat view 61 messages, 5 authors, 2023-12-14

Re: [PATCH v3 07/25] arm64: enable the Permission Overlay Extension for EL0

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2023-12-07 14:08:35
Also in: kvmarm, linux-fsdevel, linux-kselftest, linux-mm

On Fri, Nov 24, 2023 at 04:34:52PM +0000, Joey Gouly wrote:
+#ifdef CONFIG_ARM64_POE
+static void cpu_enable_poe(const struct arm64_cpu_capabilities *__unused)
+{
+	sysreg_clear_set(REG_TCR2_EL1, 0, TCR2_EL1x_E0POE);
+	sysreg_clear_set(CPACR_EL1, 0, CPACR_ELx_E0POE);
+}
+#endif
Don't we need the TCR2_EL1x.POE bit (for EL1) enabled as well? I'm
thinking of the LDXR/STXR instructions accessing user memory (the futex
code).

-- 
Catalin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help