Re: [PATCH v5 4/7] fs/resctrl: Add monitor property 'mbm_cntr_assign_fixed'

From: Reinette Chatre

Date: Mon May 04 2026 - 12:05:03 EST


Hi Ben,

On 4/28/26 6:04 AM, Ben Horgan wrote:
> Commit
>
> 3b497c3f4f04 ("fs/resctrl: Introduce the interface to display monitoring modes")
>
> introduced CONFIG_RESCTRL_ASSIGN_FIXED but left adding the Kconfig
> entry until it was necessary. The counter assignment mode is fixed in
> MPAM, even when there are assignable counters, and so addressing this
> is needed to support MPAM.
>
> To avoid the burden of another Kconfig entry, replace
> CONFIG_RESCTRL_ASSIGN_FIXED with a new property in 'struct resctrl_mon',
> 'mbm_cntr_assign_fixed' to be set by the architecture.
>
> Do not request the architecture to change the counter assignment mode if it
> does not support doing so. Provide insight to user space about why such a
> request fails.
>
> Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
> ---

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

Reinette