x86/resctrl: Add "mba_MBps_event" file to CTRL_MON directories
authorTony Luck <tony.luck@intel.com>
Fri, 6 Dec 2024 16:31:46 +0000 (08:31 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 12 Dec 2024 10:27:28 +0000 (11:27 +0100)
commitf5cd0e316f14d79c9eb0cf8fe7e60cee3a657aa8
tree2289b220f9099591e69bcc48c6b01f48fa137482
parent141cb5c482b38d7e494a207f881d0fe61e4848ef
x86/resctrl: Add "mba_MBps_event" file to CTRL_MON directories

The "mba_MBps" mount option provides an alternate method to control memory
bandwidth. Instead of specifying allowable bandwidth as a percentage of
maximum possible, the user provides a MiB/s limit value.

In preparation to allow the user to pick the memory bandwidth monitoring event
used as input to the feedback loop, provide a file in each CTRL_MON group
directory that shows the event currently in use. Note that this file is only
visible when the "mba_MBps" mount option is in use.

Suggested-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://lore.kernel.org/r/20241206163148.83828-7-tony.luck@intel.com
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
arch/x86/kernel/cpu/resctrl/internal.h
arch/x86/kernel/cpu/resctrl/rdtgroup.c