Skip to content

Commit 3fe3fd5

Browse files
jgoulywilldeacon
authored andcommitted
arm64: mm: fix resume for 52-bit enabled builds
__cpu_setup() was changed to take the actual number of VA bits in x0, however the resume path was not updated at the same time. Load `vabits_actual` in the resume path, to ensure that the correct number of VA bits is used. This fixes booting v6.0-rc kernels on my Juno. Signed-off-by: Joey Gouly <[email protected]> Fixes: 0aaa685 ("arm64: mm: fix booting with 52-bit address space") Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: Ard Biesheuvel <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent d105d69 commit 3fe3fd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm64/kernel/sleep.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ SYM_FUNC_END(__cpu_suspend_enter)
101101
SYM_CODE_START(cpu_resume)
102102
bl init_kernel_el
103103
bl finalise_el2
104+
#if VA_BITS > 48
105+
ldr_l x0, vabits_actual
106+
#endif
104107
bl __cpu_setup
105108
/* enable the MMU early - so we can access sleep_save_stash by va */
106109
adrp x1, swapper_pg_dir

0 commit comments

Comments
 (0)