]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Fix memblock current_limit with 64K pages and 48-bit VA
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 24 Oct 2014 17:16:47 +0000 (18:16 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 24 Oct 2014 17:16:47 +0000 (18:16 +0100)
commitcef4cf7cecaed05c4fe1ded1f96a0313cc513232
tree0e14b10520c0f265f6ce0417c9f2b678f1328ff9
parent528ca721d3291d1df371631ba8549544da559049
arm64: Fix memblock current_limit with 64K pages and 48-bit VA

With 48-bit VA space, the 64K page configuration uses 3 levels instead
of 2 and PUD_SIZE != PMD_SIZE. Since with 64K pages we only cover
PMD_SIZE with the initial swapper_pg_dir populated in head.S, the
memblock current_limit needs to be set accordingly in map_mem() to avoid
allocating unmapped memory. The memblock current_limit is progressively
increased as more blocks are mapped.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c