From: Mark Rutland Date: Tue, 30 Aug 2011 16:45:10 +0000 (+0100) Subject: ARM: 7067/1: mm: keep significant bits in pfn_valid X-Git-Tag: v3.1-rc6~10^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb492c9160f3d40d09456a79cc669fba74d7d9cc;p=pandora-kernel.git ARM: 7067/1: mm: keep significant bits in pfn_valid When ARCH_HAS_HOLES_MEMORYMODEL is selected, pfn_valid calls memblock_is_memory to test validity of a pfn: > memblock_is_memory(pfn << PAGE_SHIFT); On LPAE systems this cuts off the top bits, as the shift occurs before the value is promoted to a phys_addr_t. This patch replaces the shift with a call to __pfn_to_phys (which casts pfn to phys_addr_t before shifting), preventing the loss of significant bits. Signed-off-by: Mark Rutland Acked-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed