[PATCH RFC v10 06/22] arm64: Disable EL2 trapping of POR_EL1
Kevin Brodsky
kevin.brodsky at arm.com
Mon Nov 9 07:58:31 PST 2026
Make sure EL2 doesn't trap kernel accesses to POR_EL1 by setting the
nPOR_EL1 bit in HFGRT{R,W}_EL2.
Signed-off-by: Kevin Brodsky <kevin.brodsky at arm.com>
---
arch/arm64/include/asm/el2_setup.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/include/asm/el2_setup.h b/arch/arm64/include/asm/el2_setup.h
index 12a500181291..a55e8d5f1eb8 100644
--- a/arch/arm64/include/asm/el2_setup.h
+++ b/arch/arm64/include/asm/el2_setup.h
@@ -380,7 +380,8 @@
ubfx x1, x1, #ID_AA64MMFR3_EL1_S1POE_SHIFT, #4
cbz x1, .Lskip_poe_fgt_\@
- /* Disable trapping of POR_EL0 */
+ /* Disable trapping of POR_ELx */
+ orr x0, x0, #HFGRTR_EL2_nPOR_EL1
orr x0, x0, #HFGRTR_EL2_nPOR_EL0
.Lskip_poe_fgt_\@:
--
2.56.0
More information about the linux-arm-kernel
mailing list