Skip to contentSkip to conversation

sparc64: Increase max_phys_bits to 51 for M8.

PATCH In review Allen Pais 1 participant 1 message Jul 20, 2017 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

Allen Pais

author
#0 lore raw

PATCH 3/3 sparc64: Increase max_phys_bits to 51 for M8.

From: Vijay Kumar <[email protected]>

On M8 chips, use a max_phys_bits value of 51 and also fix the VA hole.

---
 arch/sparc/mm/init_64.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
arch/sparc/mm/init_64.c +7 -1
index 612b53a..7ebc17a 100644
@@ -1936,12 +1936,18 @@ static void __init setup_page_offset(void)
 			break;
 		case SUN4V_CHIP_SPARC_M7:
 		case SUN4V_CHIP_SPARC_SN:
-		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:
+               default:
+                       /* M8 and later support 54-bit virtual addresses.  */
+                       sparc64_va_hole_top =    0xffe0000000000000UL;
+                       sparc64_va_hole_bottom = 0x0020000000000000UL;
+                       max_phys_bits = 51;
+                       break;
 		}
 	}
 
Signature · 1 line
1.9.1