]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc64: support for identifying Sonoma 2 systems
authorJoe Moriarty <joe.moriarty@oracle.com>
Wed, 15 Jun 2016 14:29:18 +0000 (10:29 -0400)
committerAllen Pais <allen.pais@oracle.com>
Thu, 15 Sep 2016 06:40:11 +0000 (12:10 +0530)
Needed for Sonoma 2 software support

Orabug: 22960812
Signed-off-by: Joe Moriarty <joe.moriarty@oracle.com>
Acked-by: Allen Pais <allen.pais@oracle.com>
(cherry picked from commit 8a9b7d9b25a3ad54bc41294f93ce814038f01c70)
(cherry picked from commit a8ce3853635573a42e49df9c8b7e87bf35656561)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/include/asm/spitfire.h
arch/sparc/kernel/cpu.c
arch/sparc/kernel/head_64.S

index 43c9f0d4208c311aceb20a0a033b406b9acfa623..643482ce0d956be1b13dfafcd52ff98e93fb8bc5 100644 (file)
@@ -49,6 +49,7 @@
 #define SUN4V_CHIP_SPARC_M7    0x07
 #define SUN4V_CHIP_SPARC_M8    0X08
 #define SUN4V_CHIP_SPARC_S7    0x7a
+#define SUN4V_CHIP_SPARC_S8    0x7b
 #define SUN4V_CHIP_SPARC64X    0x8a
 #define SUN4V_CHIP_UNKNOWN     0xff
 
index 848cad738e55d53e62e243763b848880bfcedbd6..5d62519f8a6d04524abe22ea85bebbfc7b427faf 100644 (file)
@@ -518,6 +518,12 @@ static void __init sun4v_cpu_probe(void)
                sparc_pmu_type = "sparc-s7";
                break;
 
+       case SUN4V_CHIP_SPARC_S8:
+               sparc_cpu_type = "SPARC-S8 (Sonoma2)";
+               sparc_fpu_type = "SPARC-S8 integrated FPU";
+               sparc_pmu_type = "sparc-s8";
+               break;
+
        case SUN4V_CHIP_SPARC64X:
                sparc_cpu_type = "SPARC64-X";
                sparc_fpu_type = "SPARC64-X integrated FPU";
index 9903aa17bb4ee5d0c81510f40562e0999bc7f300..13517e7603649e333ace1a7fafba5cf56a9921ee 100644 (file)
@@ -461,6 +461,9 @@ sun4v_chip_type:
        cmp     %g2, '7'
        be,pt   %xcc, 5f
         mov    SUN4V_CHIP_SPARC_S7, %g4
+       cmp     %g2, '8'
+       be,pt   %xcc, 5f
+        mov    SUN4V_CHIP_SPARC_S8, %g4
        ba,pt   %xcc, 49f
         nop
 91:    sethi   %hi(prom_cpu_compatible), %g1