Re: [PATCH] tools/x86/kcpuid: Add extended CPUID leaf 0xc0000001 support
From: Ahmed S. Darwish
Date: Wed Oct 09 2024 - 07:24:25 EST
Hi Tony,
On Tue, 30 May 2023, Tony W Wang-oc wrote:
>
> CPUID leaf 0xc0000001 EDX bit2/3/6-13 are used by VIA/Cyrix/
> Centaur to defined CPU features.
>
> Zhaoxin use CPUID leaf 0xc0000001 EDX as:
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 0] SM2
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 1] SM2_EN
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 4] SM3 SM4
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 5] SM3_EN SM4_EN
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 16] PARALLAX
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 17] PARALLAX_EN
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 20] TM3
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 21] TM3_EN
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 22] RNG2
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 23] RNG2_EN
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 25] PHE2
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 26] PHE2_EN
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 27] RSA
> CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 28] RSA_EN
>
Just a short note. I've added these bits to the x86-cpuid-db database:
https://gitlab.com/x86-cpuid.org/x86-cpuid-db/-/blob/tip/db/xml/leaf_c0000001.xml
And they're now part of the project's v2.0 release:
https://lore.kernel.org/x86-cpuid/ZwU0HtmCTj2rF2T8@lx-t490
I shall send a kcpuid PQ with the updated CSV at a later step.
Thanks,
--
Ahmed S. Darwish
Linutronix GmbH