Re: [PATCH v5 00/35] x86: Introduce a centralized CPUID data model
"Ahmed S. Darwish" <[email protected]> Fri, 5 Sep 2025 14:52:50 +0200
| Newsgroups | dev.linux.lists.x86-cpuid,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <aLrdImDdg5utz2ZF@lx-t490> |
Hi,
On Fri, 05 Sep 2025, Ahmed S. Darwish wrote:
>
> /*
> * Compile-time failure: Requested subleaf > max dynamic subleaf
> * CPUID(0xd).n, n > 62
> */
>
> cpuid_subleaf_n(&boot_cpu_data, 0xd, 63);
>
Sorry, this actually is:
/*
* Compile-time failure: Requested subleaf > max dynamic subleaf
* CPUID(0xd).n, n > 63
*/
cpuid_subleaf_n(&boot_cpu_data, 0xd, 64);
which is the correct thing, as per the Intel SDM manuals: n <= 63.
That false upper-bound snippet was a left over from a previous cover
letter draft. That is, before the x86-cpuid-db commit:
https://gitlab.com/x86-cpuid.org/x86-cpuid-db/-/commit/f3d9bc48b4a
Thanks!
--
Ahmed S. Darwish
Linutronix GmbH