All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 3/3] sparc64: Increase max_phys_bits to 51 for M8.
@ 2017-07-24  6:26 Allen Pais
  2017-07-24 13:33 ` Vijay Kumar
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Allen Pais @ 2017-07-24  6:26 UTC (permalink / raw)
  To: sparclinux

From: Vijay Kumar <vijay.ac.kumar@oracle.com>

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

Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Reviewed-by: Bob Picco <bob.picco@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
---
 arch/sparc/mm/init_64.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c
index a111625..04c9ea3 100644
--- a/arch/sparc/mm/init_64.c
+++ b/arch/sparc/mm/init_64.c
@@ -1921,12 +1921,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;
 		}
 	}
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-26 20:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-24  6:26 [PATCH v2 3/3] sparc64: Increase max_phys_bits to 51 for M8 Allen Pais
2017-07-24 13:33 ` Vijay Kumar
2017-07-24 13:42 ` John Paul Adrian Glaubitz
2017-07-24 14:15 ` Allen
2017-07-26  6:11 ` David Miller
2017-07-26 19:57 ` Vijay Kumar
2017-07-26 20:14 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.