Mark Rutland
fb492c9160
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 <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-09-04 10:50:03 +01:00
..
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:12 +01:00
2011-07-02 10:56:11 +01:00
2011-07-02 10:56:11 +01:00
2011-08-09 08:42:39 +01:00
2011-07-07 15:31:05 +01:00
2010-12-19 12:57:16 -05:00
2011-07-06 20:48:08 +01:00
2011-07-07 15:31:05 +01:00
2011-07-07 15:31:06 +01:00
2011-07-07 15:31:06 +01:00
2011-07-07 15:31:06 +01:00
2011-07-07 15:31:06 +01:00
2011-07-07 15:31:06 +01:00
2010-12-19 12:57:08 -05:00
2011-06-09 10:13:16 +01:00
2010-09-19 12:17:43 +01:00
2011-07-08 19:46:37 +01:00
2010-09-19 12:17:43 +01:00
2011-07-12 11:08:12 +01:00
2011-02-21 19:24:14 +00:00
2011-07-24 10:20:54 -07:00
2011-05-23 19:27:40 +01:00
2010-12-19 12:56:46 -05:00
2011-02-21 19:24:14 +00:00
2011-09-04 10:50:03 +01:00
2011-07-12 11:19:29 -05:00
2010-12-24 09:49:52 +00:00
2011-07-26 17:41:04 -07:00
2011-02-02 21:23:26 +00:00
2011-07-12 11:08:12 +01:00
2011-04-14 09:15:24 +01:00
2011-07-05 20:27:16 +01:00
2011-07-05 20:27:16 +01:00
2011-07-02 10:56:10 +01:00
2011-07-02 10:56:10 +01:00
2011-07-02 10:56:10 +01:00
2011-03-20 09:32:12 +00:00
2011-07-22 23:09:07 +01:00
2011-07-07 15:31:08 +01:00
2011-07-07 15:31:09 +01:00
2011-07-07 15:31:07 +01:00
2011-07-07 15:31:08 +01:00
2011-08-28 10:39:54 +01:00
2011-07-07 15:31:08 +01:00
2011-07-07 15:31:09 +01:00
2011-08-28 10:39:54 +01:00
2011-07-07 15:31:09 +01:00
2011-08-09 08:42:38 +01:00
2011-07-07 15:31:07 +01:00
2011-07-07 15:31:07 +01:00
2011-07-07 15:31:07 +01:00
2011-07-07 15:31:07 +01:00
2011-07-07 15:31:09 +01:00
2011-07-07 15:31:10 +01:00
2011-07-21 17:49:54 +01:00
2011-07-07 15:31:10 +01:00
2011-07-07 15:31:10 +01:00
2011-08-28 10:39:53 +01:00
2011-08-15 11:58:59 +01:00
2011-08-28 10:39:54 +01:00
2011-08-28 10:39:53 +01:00
2011-07-21 17:49:54 +01:00
2011-07-22 23:09:07 +01:00
2011-07-07 15:31:11 +01:00
2011-07-07 15:31:12 +01:00
2011-07-07 15:31:12 +01:00
2011-07-07 15:31:12 +01:00
2011-07-22 23:09:07 +01:00
2011-07-22 23:09:07 +01:00
2011-02-23 17:24:11 +00:00
2010-07-27 10:43:48 +01:00