On Mon, Jun 15, 2026 at 11:24:41AM -0700, Tony Luck wrote:
> Requiring INTEL_PMT_TELEMETRY=y to enable AET is a functional workaround
> to enable enumeration of Application Energy Telemetry (AET) events, but
> unacceptable to many users. It results in increased configration complexity,
> increased kernel memory footprint and inability to patch problems by unloading
> a module and loading an updated version.
>
> Add a registration function to the AET code that can be used by
> INTEL_PMT_TELEMETRY to provide the enumeration functions.
>
> INTEL_PMT_TELEMETRY can be loaded/unloaded independently of
> resctrl file system mount/unmount. Perform enumeration on
> every mount and cleanup on every unmount.
Sashiko complained about some patches.
https://sashiko.dev/#/patchset/20260615182457.14725-1-tony.luck%40intel.com
Patch 4: Complains about hotplug and worker threads. Dealt with by other
patches in Reinette's series that I didn't include.
Patch 5: Question on whether unbinding the parent of the pmt_telemetry driver
(intel_vsec) will cause problems. I'll check this.
Patch 6: Repeat of patch 4 worker thread issue, handled by Reinette.
Patch 8: Race between unmount and subsequent mount relating to disabling
events. Will investigate.
Patch 9: Same unbind intel_vsec issue as reported for patch 5
Patch 10: Same worker thread issue reported for patch 4, 6
Patch 12: Sashiko concerned about multiple telemetry devices (which there
are). But for the resctrl use case it doesn't matter if some subset are offline,
or broken. Resctrl needs all of the, to work. I think I just need commit and
code comments to document that it is okay for first .remove() to unregister etc.
Patch 13: My atomic operations in resctrl_arch_pre_mount() and
resctrl_arch_unmount() are garbage (sashiko was more polite, just pointing
out the obvious race). I'll drop these from next version and handle the
nested mount case in intel_aet_pre_mount().
Repeat of patch 12 complaint about single PMT devices being removed.
Patch 14: Repeat of patch 13 race condition complaint.
Patch 15: Repeat of patch 12 complaint about handling mutliple telemetry devices.
Complaint they stubs for intel_aet_try_module_get() and intel_aet_module_put()
don't handle out-of-tree telemetry enumeration modules - Linux in general
doesn't care about out
of tree code.
-Tony