]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: Add Emerald Rapids support
authorDelgado Vargas, Daniel <daniel.delgado.vargas@intel.com>
Fri, 20 Oct 2023 16:57:11 +0000 (10:57 -0600)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 23 Oct 2023 09:45:00 +0000 (11:45 +0200)
Signed-off-by: Delgado Vargas, Daniel <daniel.delgado.vargas@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
mce-intel-i10nm.c
mce-intel.c
ras-mce-handler.c
ras-mce-handler.h

index 3c5d22f441be13cd4248135e5ff3d89bb96d7b69..c4ace5624242c4333860437a56284696bad9cd38 100644 (file)
@@ -380,6 +380,7 @@ void i10nm_decode_model(enum cputype cputype, struct ras_events *ras,
                banktype = tremont[e->bank];
                break;
        case CPU_SAPPHIRERAPIDS:
+       case CPU_EMERALDRAPIDS:
                banktype = sapphire[e->bank];
                break;
        default:
index e083e9c2096868380cf549d0233dc44859797d6b..18a907285bf663bbf9fb5626c2c0cc81c4138451 100644 (file)
@@ -415,6 +415,7 @@ int parse_intel_event(struct ras_events *ras, struct mce_event *e)
        case CPU_ICELAKE_DE:
        case CPU_TREMONT_D:
        case CPU_SAPPHIRERAPIDS:
+       case CPU_EMERALDRAPIDS:
                i10nm_decode_model(mce->cputype, ras, e);
        default:
                break;
index d50da295c238932569874645042292473a72d233..5ad988844d805e17d2c35ae9f2dfbce6b93b0b2d 100644 (file)
@@ -61,6 +61,7 @@ static char *cputype_name[] = {
        [CPU_ICELAKE_DE] = "Icelake server D Family",
        [CPU_TREMONT_D] = "Tremont microserver",
        [CPU_SAPPHIRERAPIDS] = "Sapphirerapids server",
+       [CPU_EMERALDRAPIDS] = "Emeraldrapids server",
 };
 
 static enum cputype select_intel_cputype(struct mce_priv *mce)
@@ -118,6 +119,8 @@ static enum cputype select_intel_cputype(struct mce_priv *mce)
                         return CPU_TREMONT_D;
                else if (mce->model == 0x8f)
                         return CPU_SAPPHIRERAPIDS;
+               else if (mce->model == 0xcf)
+                       return CPU_EMERALDRAPIDS;
 
                if (mce->model > 0x1a) {
                        log(ALL, LOG_INFO,
index 3022b15efb1f1460c7f8e302b820fc575556152e..83407e4ddf72bee88a75058b38b5708fa3f6fc5b 100644 (file)
@@ -53,6 +53,7 @@ enum cputype {
        CPU_ICELAKE_DE,
        CPU_TREMONT_D,
        CPU_SAPPHIRERAPIDS,
+       CPU_EMERALDRAPIDS,
 };
 
 struct mce_event {