[PATCH v4 0/7] x86,fs/resctrl: Pave the way for MPAM counter assignment

Ben Horgan
2026-03-26T17:26:00Z

This is the same as v3 but has two added patches related to continuing
after counter assignment and one related to the meaning of the tasks
file. The last one is doesn't strictly belong here but I thought it best to
keep things together.
(Also, a tiny commit message line wrap adjustment.)

Description from the previous versions cover letter:

A little bit of preparatory work to get ready for MPAM counter
assignment. Resctrl gained support last year for counter assignment for AMD
machines supporting ABMC. Tighten a few things up, that weren't needed for
AMD, so that the MPAM driver can emulate ABMC and hence support counter
assignment.

Based on v7.0-rc4.

v1:
https://lore.kernel.org/lkml/20260225201905.3568624-1-ben.horgan@arm.com/
v2:
https://lore.kernel.org/lkml/20260313174524.3482767-1-ben.horgan@arm.com/
v3:
https://lore.kernel.org/lkml/20260319162225.378485-1-ben.horgan@arm.com/

Ben Horgan (7):
fs/resctrl: Tidy up the error path in resctrl_mkdir_event_configs()
x86,fs/resctrl: Make 'event_filter' files read only if they're not
configurable
fs/resctrl: Disallow the software controller when MBM counters are
assignable
x86,fs/resctrl: Add monitor property 'mbm_cntr_assign_fixed'
fs/resctrl: Continue counter allocation after failure
fs/resctrl: Document that automatic counter assignment is best effort
fs/resctrl: Document tasks file behaviour for task id 0 and idle tasks

Documentation/filesystems/resctrl.rst | 11 ++++++++++
arch/x86/kernel/cpu/resctrl/monitor.c | 1 +
fs/resctrl/internal.h | 2 ++
fs/resctrl/monitor.c | 30 ++++++++++++++++++++-------
fs/resctrl/rdtgroup.c | 25 +++++++++++++++-------
include/linux/resctrl.h | 18 +++++++++-------
6 files changed, 65 insertions(+), 22 deletions(-)

--
2.43.0