From: Ard Biesheuvel Date: Tue, 18 Aug 2015 09:34:42 +0000 (+0100) Subject: arm64: set MAX_MEMBLOCK_ADDR according to linear region size X-Git-Tag: omap-for-v4.3/fixes-rc1~98^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34ba2c4247e5c4b1542b1106e156af324660c4f0;p=pandora-kernel.git arm64: set MAX_MEMBLOCK_ADDR according to linear region size The linear region size of a 39-bit VA kernel is only 256 GB, which may be insufficient to cover all of system RAM, even on platforms that have much less than 256 GB of memory but which is laid out very sparsely. So make sure we clip the memory we will not be able to map before installing it into the memblock memory table, by setting MAX_MEMBLOCK_ADDR accordingly. Reviewed-by: Catalin Marinas Tested-by: Stuart Yoder Signed-off-by: Ard Biesheuvel Signed-off-by: Will Deacon --- Reading git-diff-tree failed