]> git.itanic.dy.fi Git - linux-stable/commitdiff
arm64/head: Drop unnecessary pre-disable-MMU workaround
authorArd Biesheuvel <ardb@kernel.org>
Mon, 15 Apr 2024 07:54:14 +0000 (09:54 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 18 Apr 2024 17:00:37 +0000 (18:00 +0100)
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 <ardb@kernel.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20240415075412.2347624-5-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/head.S

index 06234c3a15f3dbe7a5ee874c41b05bb72c2894d4..b8bbd72cb1944f71e6b774032a2fa0bd08c712ab 100644 (file)
@@ -323,13 +323,11 @@ SYM_INNER_LABEL(init_el2, SYM_L_LOCAL)
        cbz     x0, 2f
 
        /* Set a sane SCTLR_EL1, the VHE way */
-       pre_disable_mmu_workaround
        msr_s   SYS_SCTLR_EL12, x1
        mov     x2, #BOOT_CPU_FLAG_E2H
        b       3f
 
 2:
-       pre_disable_mmu_workaround
        msr     sctlr_el1, x1
        mov     x2, xzr
 3: