From: H.J. Lu Date: Sat, 12 Apr 2025 15:37:29 +0000 (-0700) Subject: x86: Detect Intel Diamond Rapids X-Git-Tag: glibc-2.42~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de14f1959ee5f9b845a7cae43bee03068b8136f0;p=thirdparty%2Fglibc.git x86: Detect Intel Diamond Rapids Detect Intel Diamond Rapids and tune it similar to Intel Granite Rapids. Signed-off-by: H.J. Lu Reviewed-by: Sunil K Pandey --- diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index b13b7b76fa..e50f1d6932 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -542,6 +542,7 @@ enum intel_microarch INTEL_BIGCORE_ARROWLAKE, INTEL_BIGCORE_PANTHERLAKE, INTEL_BIGCORE_GRANITERAPIDS, + INTEL_BIGCORE_DIAMONDRAPIDS, /* Mixed (bigcore + atom SOC). */ INTEL_MIXED_LAKEFIELD, @@ -817,6 +818,16 @@ disable_tsx: break; } } + else if (family == 19) + switch (model) + { + case 0x01: + microarch = INTEL_BIGCORE_DIAMONDRAPIDS; + break; + + default: + break; + } switch (microarch) { @@ -926,6 +937,7 @@ disable_tsx: case INTEL_BIGCORE_SAPPHIRERAPIDS: case INTEL_BIGCORE_EMERALDRAPIDS: case INTEL_BIGCORE_GRANITERAPIDS: + case INTEL_BIGCORE_DIAMONDRAPIDS: /* Default tuned Mixed (bigcore + atom SOC). */ case INTEL_MIXED_LAKEFIELD: case INTEL_MIXED_ALDERLAKE: