From: Catalin Marinas Date: Fri, 24 Oct 2014 17:16:47 +0000 (+0100) Subject: arm64: Fix memblock current_limit with 64K pages and 48-bit VA X-Git-Tag: fixes-against-v3.18-rc2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dec0fe48a8936528aae2fc3f904c2c9a34ba368;p=pandora-kernel.git 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 --- Reading git-diff-tree failed