From: Santosh Shilimkar Date: Thu, 1 Aug 2013 02:12:01 +0000 (+0100) Subject: ARM: 7805/1: mm: change max*pfn to include the physical offset of memory X-Git-Tag: v3.13-rc1~104^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26ba47b18318abe7dadbe9294a611c0e932651d8;p=pandora-kernel.git ARM: 7805/1: mm: change max*pfn to include the physical offset of memory Most of the kernel code assumes that max*pfn is maximum pfns because the physical start of memory is expected to be PFN0. Since this assumption is not true on ARM architectures, the meaning of max*pfn is number of memory pages. This is done to keep drivers happy which are making use of of these variable to calculate the dma bounce limit using dma_mask. Now since we have a architecture override possibility for DMAable maximum pfns, lets make meaning of max*pfns as maximum pnfs on ARM as well. Cc: Catalin Marinas Cc: Will Deacon Cc: Nicolas Pitre Signed-off-by: Santosh Shilimkar Signed-off-by: Russell King --- Reading git-diff-tree failed