linux/fs/resctrl
Babu Moger aab2c5088c fs/resctrl: Add the functionality to unassign MBM events
The "mbm_event" counter assignment mode offers "num_mbm_cntrs" number of
counters that can be assigned to RMID, event pairs and monitor bandwidth usage
as long as it is assigned. If all the counters are in use, the kernel logs the
error message "Failed to allocate counter for <event> in domain <id>" in
/sys/fs/resctrl/info/last_cmd_status when a new assignment is requested.

To make space for a new assignment, users must unassign an already assigned
counter and retry the assignment again.

Add the functionality to unassign and free the counters in the domain.  Also,
add the helper rdtgroup_unassign_cntrs() to unassign counters in the group.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/cover.1757108044.git.babu.moger@amd.com
2025-09-15 12:22:24 +02:00
..
ctrlmondata.c x86,fs/resctrl: Replace architecture event enabled checks 2025-09-15 11:54:14 +02:00
internal.h fs/resctrl: Add the functionality to unassign MBM events 2025-09-15 12:22:24 +02:00
Kconfig
Makefile
monitor.c fs/resctrl: Add the functionality to unassign MBM events 2025-09-15 12:22:24 +02:00
monitor_trace.h
pseudo_lock.c resctrl: get rid of pointless debugfs_file_{get,put}() 2025-07-09 13:30:28 +02:00
rdtgroup.c fs/resctrl: Introduce interface to display number of free MBM counters 2025-09-15 12:16:11 +02:00