Re: [PATCH v4 02/34] ASoC: Intel: avs: Include CPUID header at file scope

"Ahmed S. Darwish" <[email protected]>
Newsgroups dev.linux.lists.x86-cpuid,org.kernel.vger.linux-kernel
Message-ID <aKNDZ3mWYUABwOzJ@lx-t490>
Hi Boris,

On Mon, 18 Aug 2025, Borislav Petkov wrote:
>
> I'm guessing that:
>
> https://lore.kernel.org/r/aGv8AWwHbi5seDxi@lx-t490
>
> still needs to happen yet?
>
> Because I don't see it in this set...
>

Yeah, I discovered that I need to do the X86_FEATURE integration within
the CPUID model before touching the CPUID(0x15) call sites.

Quoting the cover:

  State of Affairs: By now, all CPUID leaves which do not interact with
  the X86_FEATURE mechanism(s) has been transformed to the CPUID model.
  Remaining leaves have dependencies on X86_FEATURE.

  For example, some callsites _directly_ enumerate CPUID(0x15)
  [ART_CPUID_LEAF / CPUID_LEAF_TSC] even though that leaf has important
  dependencies on X86_FEATURE_ART and its tsc_async_resets flag.

  The CPUID parser work will not propagate such call sites brokedness and
  will integrate the X86_FEATURE infrastructure within it first.

As I mentioned in the Bhyve thread, this shall also include a directed
acyclic graph of dependencies for the X86_FEATURE flags themselves:

  https://lore.kernel.org/lkml/aKL0WlA4wIU8l9RT@lx-t490

v5 should cover this.

Thanks!

--
Ahmed S. Darwish
Linutronix GmbH
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.