]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: fix ID map extension to 52 bits
authorKristina Martsenko <kristina.martsenko@arm.com>
Mon, 15 Jan 2018 15:23:48 +0000 (15:23 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 15 Jan 2018 18:20:04 +0000 (18:20 +0000)
commitc485a29f601b6285cb77b1a56d6227044c354616
tree56c23e65c42f5fdcf7d548bb85f5099a127aaf8b
parentd348227135b3b59c66340ee893bbdd00a4e3d745
arm64: fix ID map extension to 52 bits

Commit 7fb9acd4d8f5 added support for extending the ID map to 52 bits,
but accidentally dropped a required change to __cpu_uses_extended_idmap.
As a result, the kernel fails to boot when VA_BITS = 48 and the ID map
text is in 52-bit physical memory, because we reduce TCR.T0SZ to cover
the ID map, but then never set it back to VA_BITS.

Add back the change, and also clean up some double parentheses.

Fixes: 7fb9acd4d8f5 ("arm64: allow ID map to be extended to 52 bits")
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/mmu_context.h