Skip to content

Commit 2b504e1

Browse files
ardbiesheuvelctmarinas
authored andcommitted
arm64/head: Drop unnecessary pre-disable-MMU workaround
The Falkor erratum that results in the need for an ISB before clearing the M bit in SCTLR_ELx only applies to execution at exception level x, and so the workaround is not needed when disabling the EL1 MMU while running at EL2. Signed-off-by: Ard Biesheuvel <[email protected]> Acked-by: Marc Zyngier <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 015a12a commit 2b504e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/arm64/kernel/head.S

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,13 +323,11 @@ SYM_INNER_LABEL(init_el2, SYM_L_LOCAL)
323323
cbz x0, 2f
324324

325325
/* Set a sane SCTLR_EL1, the VHE way */
326-
pre_disable_mmu_workaround
327326
msr_s SYS_SCTLR_EL12, x1
328327
mov x2, #BOOT_CPU_FLAG_E2H
329328
b 3f
330329

331330
2:
332-
pre_disable_mmu_workaround
333331
msr sctlr_el1, x1
334332
mov x2, xzr
335333
3:

0 commit comments

Comments
 (0)