[PATCH v3] x86: Add ARL/PTL/CWF model detection support
H.J. Lu
hjl.tools@gmail.com
Thu Apr 10 14:20:07 GMT 2025
On Thu, Apr 10, 2025 at 7:16 AM Sunil K Pandey <sunil.k.pandey@intel.com> wrote:
>
> From: Sunil K Pandey <skpgkp2@gmail.com>
>
> - Add ARROWLAKE model detection.
> - Add PANTHERLAKE model detection.
> - Add CLEARWATERFOREST model detection.
>
> Intel® Architecture Instruction Set Extensions Programming Reference
> https://cdrdv2.intel.com/v1/dl/getContent/671368 Section 1.2.
>
> No regression, validated model detection on SDE.
> ---
> sysdeps/x86/cpu-features.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
> index 9d136e42ad..c250d8e86a 100644
> --- a/sysdeps/x86/cpu-features.c
> +++ b/sysdeps/x86/cpu-features.c
> @@ -512,6 +512,7 @@ enum
> INTEL_ATOM_GOLDMONT,
> INTEL_ATOM_GOLDMONT_PLUS,
> INTEL_ATOM_SIERRAFOREST,
> + INTEL_ATOM_CLEARWATERFOREST,
> INTEL_ATOM_GRANDRIDGE,
> INTEL_ATOM_TREMONT,
>
> @@ -539,6 +540,7 @@ enum
> INTEL_BIGCORE_METEORLAKE,
> INTEL_BIGCORE_LUNARLAKE,
> INTEL_BIGCORE_ARROWLAKE,
> + INTEL_BIGCORE_PANTHERLAKE,
> INTEL_BIGCORE_GRANITERAPIDS,
>
> /* Mixed (bigcore + atom SOC). */
> @@ -584,6 +586,8 @@ intel_get_fam6_microarch (unsigned int model,
> return INTEL_ATOM_GOLDMONT_PLUS;
> case 0xAF:
> return INTEL_ATOM_SIERRAFOREST;
> + case 0xDD:
> + return INTEL_ATOM_CLEARWATERFOREST;
> case 0xB6:
> return INTEL_ATOM_GRANDRIDGE;
> case 0x86:
> @@ -691,8 +695,12 @@ intel_get_fam6_microarch (unsigned int model,
> return INTEL_BIGCORE_METEORLAKE;
> case 0xbd:
> return INTEL_BIGCORE_LUNARLAKE;
> + case 0xB5:
> + case 0xC5:
Please use lower cases here.
> case 0xc6:
> return INTEL_BIGCORE_ARROWLAKE;
> + case 0xCC:
> + return INTEL_BIGCORE_PANTHERLAKE;
> case 0xAD:
> case 0xAE:
> return INTEL_BIGCORE_GRANITERAPIDS;
> @@ -808,6 +816,7 @@ init_cpu_features (struct cpu_features *cpu_features)
> Default tuned atom microarch.
> case INTEL_ATOM_SIERRAFOREST:
> case INTEL_ATOM_GRANDRIDGE:
> + case INTEL_ATOM_CLEARWATERFOREST:
> */
>
> /* Bigcore/Default Tuning. */
> @@ -865,6 +874,7 @@ init_cpu_features (struct cpu_features *cpu_features)
> case INTEL_BIGCORE_METEORLAKE:
> case INTEL_BIGCORE_LUNARLAKE:
> case INTEL_BIGCORE_ARROWLAKE:
> + case INTEL_BIGCORE_PANTHERLAKE:
> case INTEL_BIGCORE_SAPPHIRERAPIDS:
> case INTEL_BIGCORE_EMERALDRAPIDS:
> case INTEL_BIGCORE_GRANITERAPIDS:
> --
> 2.49.0
>
--
H.J.
More information about the Libc-alpha
mailing list