Re: [PATCH 13/32] x86,fs/resctrl: Add an architectural hook called for first mount

From: Reinette Chatre
Date: Fri Jan 09 2026 - 10:34:09 EST


Hi Tony,

On 1/8/26 9:42 AM, Tony Luck wrote:
> Enumeration of Intel telemetry events is an asynchronous process involving
> several mutually dependent drivers added as auxiliary devices during
> the device_initcall() phase of Linux boot. The process finishes after
> the probe functions of these drivers completes. But this happens after
> resctrl_arch_late_init() is executed.
>
> Tracing the enumeration process shows that it does complete a full seven
> seconds before the earliest possible mount of the resctrl file system (when
> included in /etc/fstab for automatic mount by systemd).
>
> Add a hook at the beginning of the mount code that will be used to check
> for telemetry events and initialize if any are found.
>
> The hook is only called on the first mount of the resctrl file system as
> that is all that is needed for telemetry enumeration.

Needs imperative. "Only call the hook on the first mount ..."?
Although, to help with brevity, the last three sentences could be merged. For example:

Add a hook for use by telemetry event enumeration and initialization and
run it once at the beginning of resctrl mount without any locks held.
Architecture is responsible for any required locking.

>
> resctrl filesystem calls the hook with no locks held. Architecture code is
> responsible for any required locking.
>
> Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
> ---

| Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette