Re: [PATCH v6 00/90] x86: Introduce a centralized CPUID data model

From: Ahmed S. Darwish

Date: Mon Apr 13 2026 - 10:52:08 EST


Hi Maciej,

On Tue, 07 Apr 2026, Maciej Wieczor-Retman wrote:
>
> Hi, very cool rework! So far I didn't notice any problems while testing.
>

Thanks a lot for testing!

I will appreciate then adding a Tested-by tag on v7, where the interesting
bits will hopefully start to get merged.

>
> Buy anyway I wanted to ask if you thought about including the cpuid_deps[] or
> cpuid_dependent_features[] into the new cpuid API ecosystem?
>
> Or if not (since this patchset is quite long already :b ), then do you have any
> idea where best it could fit in? During discussion on [1] you mentioned the
> feature depenedency should be encoded in x86-cpuid-db. I assume you meant it
> would need to be first patched into there, then parsed by Kconfig?
>
> [1] https://lore.kernel.org/all/acruJf-pyld-fTh1@lx-t490/
>

Sorry, I'm just back from Easter vacations; that's why I didn't answer your
question in that other thread.

x86-cpuid-db will encode all the feature dependencies in its XML database.
Then it can generate all the necessary dependency structures, in a way that
is easy to parse for all kernel phases; including the kconfig build phase.

Then, what you want to do can be cleanly added on top.

P.S. I'm already removing <asm/cpufeatures.h> in the next iteration, along
with its ugly "/proc/cpuinfo names inside multi-line C comments" hack.

Kind regards,
Ahmed