]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc64: correctly recognize sparc M8 cpu
authorAllen Pais <allen.pais@oracle.com>
Mon, 16 Nov 2015 10:17:27 +0000 (15:47 +0530)
committerAllen Pais <allen.pais@oracle.com>
Tue, 19 Apr 2016 12:50:41 +0000 (18:20 +0530)
 This patch detects Sparc M8 cpu type.

Orabug: 23130139

Signed-off-by: Allen Pais <allen.pais@oracle.com>
(cherry picked from commit d3ae0cafd1576f4660c9b44fa08b4cecee04f8a8)

arch/sparc/include/asm/spitfire.h
arch/sparc/kernel/cpu.c
arch/sparc/kernel/head_64.S

index 4162440d7dd922d7bc22a00f3d67bb37c0c4c50a..ad85617b7b26330f802ba5e999bbcde5384fa3d3 100644 (file)
@@ -47,7 +47,8 @@
 #define SUN4V_CHIP_NIAGARA5    0x05
 #define SUN4V_CHIP_SPARC_M6    0x06
 #define SUN4V_CHIP_SPARC_M7    0x07
-#define SUN4V_CHIP_SPARC_SN    0x08
+#define SUN4V_CHIP_SPARC_M8    0X08
+#define SUN4V_CHIP_SPARC_SN    0x7a
 #define SUN4V_CHIP_SPARC64X    0x8a
 #define SUN4V_CHIP_UNKNOWN     0xff
 
index 9ea4493468a29177370e5f0864f0e334ddade972..57fff6df9485991fce8185590e5b8476ebaadca1 100644 (file)
@@ -506,6 +506,11 @@ static void __init sun4v_cpu_probe(void)
                sparc_pmu_type = "sparc-m7";
                break;
 
+       case SUN4V_CHIP_SPARC_M8:
+               sparc_cpu_type = "SPARC-M8";
+               sparc_fpu_type = "SPARC-M8 integrated FPU";
+               sparc_pmu_type = "sparc-m8";
+
        case SUN4V_CHIP_SPARC_SN:
                sparc_cpu_type = "SPARC-SN (Sonoma)";
                sparc_fpu_type = "SPARC-SN integrated FPU";
index 85aaf022164b2ec005989ec1f96792651796404c..cfc590ee1bd7018dcd3e0e96a095313b725086cb 100644 (file)
@@ -435,6 +435,9 @@ sun4v_chip_type:
        cmp     %g2, '7'
        be,pt   %xcc, 5f
         mov    SUN4V_CHIP_SPARC_M7, %g4
+       cmp     %g2, '8'
+       be,pt   %xcc, 5f
+        mov    SUN4V_CHIP_SPARC_M8, %g4
        cmp     %g2, 'N'
        be,pt   %xcc, 5f
         mov    SUN4V_CHIP_SPARC_SN, %g4