From: Will Deacon Date: Mon, 12 Nov 2012 19:19:35 +0000 (+0000) Subject: arm64: mm: update max_dma32 before calculating size of NORMAL zone X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~65^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=938edf5c04202b59b8ff01a4033e9413646b105b;p=pandora-kernel.git arm64: mm: update max_dma32 before calculating size of NORMAL zone Commit f483a853b0b9 ("arm64: mm: fix booting on systems with no memory below 4GB") sets max_dma32 to the minimum of the maximum pfn and MAX_DMA32_PFN. This value is later used as the base of the NORMAL zone, which is incorrect when MAX_DMA32_PFN is below the minimum pfn (i.e. all memory is above 4GB). This patch fixes the problem by ensuring that max_dma32 is always set to the end of the DMA32 zone. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed