Re: [PATCH v11 19/23] x86/resctrl: Export interface to report telemetry unbind/remove

From: Reinette Chatre

Date: Thu Sep 10 2026 - 00:14:59 EST


Hi Tony,

On 8/31/26 10:44 AM, Tony Luck wrote:

...

> diff --git a/arch/x86/kernel/cpu/resctrl/intel_aet.c b/arch/x86/kernel/cpu/resctrl/intel_aet.c
> index c3bd3536c514..5cd2711d00e7 100644
> --- a/arch/x86/kernel/cpu/resctrl/intel_aet.c
> +++ b/arch/x86/kernel/cpu/resctrl/intel_aet.c

..

> @@ -439,6 +462,8 @@ int intel_aet_read_event(int domid, u32 rmid, void *arch_priv, u64 *val)
> void *pevt0;
> u32 idx;
>
> + guard(mutex)(&aet_register_lock);
> +

hmmm ... this means that reading an event can sleep now ... but it is still
possible to call this via IPI (smp_call_function_any()) if the CPU is part
of the nohz_full subset?

> pevt0 = pevt - pevt->idx;
> e = container_of(pevt0, struct event_group, evts);
> idx = rmid * e->num_events;

Reinette