Skip to contentSkip to conversation

sparc64: cpu hwarware caps support for sparc M7

PATCH Superseded Allen Pais 2 participants 2 messages Aug 22, 2014 – Aug 23, 2014 SPARC + UltraSPARC (sparc/sparc64)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Allen Pais

author
#0 lore raw

PATCH 3/3 sparc64: cpu hwarware caps support for sparc M7

---
 arch/sparc/kernel/setup_64.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/sparc/kernel/setup_64.c +4 -0
index 3fdb455..6738f1b 100644
@@ -500,12 +500,14 @@ static void __init init_sparc64_elf_hwcap(void)
 		    sun4v_chip_type = SUN4V_CHIP_NIAGARA3 ||
 		    sun4v_chip_type = SUN4V_CHIP_NIAGARA4 ||
 		    sun4v_chip_type = SUN4V_CHIP_NIAGARA5 ||
+		    sun4v_chip_type = SUN4V_CHIP_SPARC_M7 ||
 		    sun4v_chip_type = SUN4V_CHIP_SPARC64X)
 			cap |= HWCAP_SPARC_BLKINIT;
 		if (sun4v_chip_type = SUN4V_CHIP_NIAGARA2 ||
 		    sun4v_chip_type = SUN4V_CHIP_NIAGARA3 ||
 		    sun4v_chip_type = SUN4V_CHIP_NIAGARA4 ||
 		    sun4v_chip_type = SUN4V_CHIP_NIAGARA5 ||
+		    sun4v_chip_type = SUN4V_CHIP_SPARC_M7 ||
 		    sun4v_chip_type = SUN4V_CHIP_SPARC64X)
 			cap |= HWCAP_SPARC_N2;
 	}
@@ -533,6 +535,7 @@ static void __init init_sparc64_elf_hwcap(void)
 			    sun4v_chip_type = SUN4V_CHIP_NIAGARA3 ||
 			    sun4v_chip_type = SUN4V_CHIP_NIAGARA4 ||
 			    sun4v_chip_type = SUN4V_CHIP_NIAGARA5 ||
+			    sun4v_chip_type = SUN4V_CHIP_SPARC_M7 ||
 			    sun4v_chip_type = SUN4V_CHIP_SPARC64X)
 				cap |= (AV_SPARC_VIS | AV_SPARC_VIS2 |
 					AV_SPARC_ASI_BLK_INIT |
@@ -540,6 +543,7 @@ static void __init init_sparc64_elf_hwcap(void)
 			if (sun4v_chip_type = SUN4V_CHIP_NIAGARA3 ||
 			    sun4v_chip_type = SUN4V_CHIP_NIAGARA4 ||
 			    sun4v_chip_type = SUN4V_CHIP_NIAGARA5 ||
+			    sun4v_chip_type = SUN4V_CHIP_SPARC_M7 ||
 			    sun4v_chip_type = SUN4V_CHIP_SPARC64X)
 				cap |= (AV_SPARC_VIS3 | AV_SPARC_HPC |
 					AV_SPARC_FMAF);
Signature · 1 line
1.8.4.2