David S. Miller b2d4383480 sparc64: Make PAGE_OFFSET variable.
Choose PAGE_OFFSET dynamically based upon cpu type.

Original UltraSPARC-I (spitfire) chips only supported a 44-bit
virtual address space.

Newer chips (T4 and later) support 52-bit virtual addresses
and up to 47-bits of physical memory space.

Therefore we have to adjust PAGE_SIZE dynamically based upon
the capabilities of the chip.

Note that this change alone does not allow us to support > 43-bit
physical memory, to do that we need to re-arrange our page table
support.  The current encodings of the pmd_t and pgd_t pointers
restricts us to "32 + 11" == 43 bits.

This change can waste quite a bit of memory for the various tables.
In particular, a future change should work to size and allocate
kern_linear_bitmap[] and sparc64_valid_addr_bitmap[] dynamically.
This isn't easy as we really cannot take a TLB miss when accessing
kern_linear_bitmap[].  We'd have to lock it into the TLB or similar.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Bob Picco <bob.picco@oracle.com>
2013-11-12 15:22:34 -08:00
..
2008-12-04 09:17:15 -08:00
2013-02-17 23:36:56 -05:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-05-11 19:27:46 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-07-26 16:46:15 -07:00
2008-12-04 09:17:21 -08:00
2012-03-28 16:36:34 +02:00
2013-04-09 14:13:32 -04:00
2012-05-27 23:52:44 -07:00
2012-05-14 14:05:09 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2013-02-20 13:36:50 -08:00
2013-11-12 15:22:34 -08:00
2013-10-02 20:02:35 -04:00
2008-12-04 09:17:21 -08:00
2012-12-14 13:06:43 +10:30
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2013-07-03 16:31:35 -07:00
2012-08-18 23:26:19 -07:00
2013-02-17 23:36:56 -05:00
2013-06-13 22:12:14 +01:00
2012-03-28 18:30:03 +01:00
2013-07-31 19:10:03 -07:00
2013-02-14 09:21:16 -05:00
2013-02-14 09:21:16 -05:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00