]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc64: Increase max_phys_bits to 51 for M8.
authorVijay Kumar <vijay.ac.kumar@oracle.com>
Thu, 20 Apr 2017 19:29:49 +0000 (13:29 -0600)
committerShannon Nelson <shannon.nelson@oracle.com>
Wed, 31 May 2017 23:43:52 +0000 (16:43 -0700)
On M8 chips, use a max_phys_bits value of 51 and 54 bits for
virtual address.

Orabug: 25808647

Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Bob Picco <bob.picco@oracle.com>
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
arch/sparc/mm/init_64.c

index 93a739ce1e252355c168ca80252413ae2d3408fe..7618a863af6221b4ef8d0a7a1701e3eddc377278 100644 (file)
@@ -2163,12 +2163,19 @@ static void __init setup_page_offset(void)
                        break;
                case SUN4V_CHIP_SPARC_M7:
                case SUN4V_CHIP_SPARC_S7:
-               default:
                        /* M7 and later support 52-bit virtual addresses.  */
                        sparc64_va_hole_top =    0xfff8000000000000UL;
                        sparc64_va_hole_bottom = 0x0008000000000000UL;
                        max_phys_bits = 49;
                        break;
+               case SUN4V_CHIP_SPARC_M8:
+               case SUN4V_CHIP_SPARC_S8:
+               default:
+                       /* M8 and later support 54-bit virtual addresses.  */
+                       sparc64_va_hole_top =    0xffe0000000000000UL;
+                       sparc64_va_hole_bottom = 0x0020000000000000UL;
+                       max_phys_bits = 51;
+                       break;
                }
        }