Re: [PATCH v4] fs/resctrl: Add CONFIG_RESCTRL_ASSIGN_FIXED Kconfig entry
From: Borislav Petkov
Date: Sun Mar 01 2026 - 05:51:44 EST
On Wed, Feb 04, 2026 at 04:19:52PM +0000, Ben Horgan wrote:
> diff --git a/fs/resctrl/monitor.c b/fs/resctrl/monitor.c
> index 572a9925bd6c..4e9f55ee3267 100644
> --- a/fs/resctrl/monitor.c
> +++ b/fs/resctrl/monitor.c
> @@ -1451,6 +1451,12 @@ ssize_t resctrl_mbm_assign_mode_write(struct kernfs_open_file *of, char *buf,
> }
>
> if (enable != resctrl_arch_mbm_cntr_assign_enabled(r)) {
> + if (IS_ENABLED(CONFIG_RESCTRL_ASSIGN_FIXED)) {
Does it need to be a Kconfig entry or you can figure out programatically from
the architecture that that is the case and avoid yet another CONFIG_ knob?
>From reading this, I'm thinking
if (IS ARM64) {
should do or...?
> + ret = -EINVAL;
> + rdt_last_cmd_puts("Counter assignment mode is not configurable\n");
> + goto out_unlock;
> + }
> +
> ret = resctrl_arch_mbm_cntr_assign_set(r, enable);
> if (ret)
> goto out_unlock;
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette