Re: [PATCH v9 11/12] x86/resctrl: Simplify Kconfig options for resctrl
From: Luck, Tony
Date: Fri Jul 10 2026 - 17:09:01 EST
On Wed, Jul 08, 2026 at 04:01:00PM -0700, Reinette Chatre wrote:
> Hi Tony,
>
> On 7/1/26 2:35 PM, Tony Luck wrote:
> > Linus Torvalds complained[1] about Kconfig complexity making it too
> > hard for "random people to build their own kernels".
> >
> > CONFIG_X86_CPU_RESCTRL_INTEL_AET has been causing problems since it was
> > first added as it required other config options to be set to "built-in".
> >
> > AET now resolves PMT symbols at runtime via the registration API,
> > so INTEL_PMT_TELEMETRY no longer needs to be built-in. This means
> > that AET can be included unconditionally as part of X86_CPU_RESCTRL.
> >
> > CONFIG_X86_CPU_RESCTRL now depends on X86_64 because reading telemetry
> > data needs readq().
>
> Above reads as though it is a new dependency as opposed to an existing dependency
> that moves one level up. How about something like:
> Move the X86_64 dependency of the removed AET config up to CONFIG_X86_CPU_RESCTRL.
Needs more than that. Before this change RESCTRL (sans AET) could be
built as 32-bit. After this change it is 64-bit only.
I'll clone Chen Yu's patch[1] that makes resctrl 64-bit only and
include that before my patch to remove CONFIG_X86_CPU_RESCTRL_INTEL_AET
> Reinette
-Tony
[1] https://lore.kernel.org/all/cbd33bf5d99b27e98ddf899b36384d9a41f14201.1782866200.git.yu.c.chen@xxxxxxxxx/
>