[PATCH 0/2] x86/resctrl: Add io_alloc_min_cbm_all interface for CBM reset

Aaron Tomlin posted 2 patches 3 months ago
Documentation/filesystems/resctrl.rst     |  13 +++
arch/x86/kernel/cpu/resctrl/core.c        |   2 +-
arch/x86/kernel/cpu/resctrl/ctrlmondata.c |  23 +++--
fs/resctrl/ctrlmondata.c                  | 117 ++++++++++++++++++----
fs/resctrl/internal.h                     |   3 +
fs/resctrl/rdtgroup.c                     |  13 ++-
include/linux/resctrl.h                   |  30 +++++-
7 files changed, 167 insertions(+), 34 deletions(-)
[PATCH 0/2] x86/resctrl: Add io_alloc_min_cbm_all interface for CBM reset
Posted by Aaron Tomlin 3 months ago
Hi Babu,

This patch is based on and intended for inclusion with the "[PATCH v11
00/10] x86,fs/resctrl: Support L3 Smart Data Cache Injection Allocation
Enforcement (SDCIAE)" series [1].

This proposal introduces a new resctrl interface file,
"io_alloc_min_cbm_all", to provide users with a clean, unified mechanism
for resetting I/O allocation CBMs. Previously, resetting all relevant CBMs
to their minimum (cleared) configuration required userspace to perform
multiple sequential writes to "io_alloc_cbm". By writing a zero (0) value
to "io_alloc_min_cbm_all", the user can now force all corresponding CBMs
back to their minimum size in a single operation, greatly simplifying
automation and management tasks.

Please let me know your thoughts.

[1]: https://lore.kernel.org/lkml/cover.1761844489.git.babu.moger@amd.com/#b


Aaron Tomlin (2):
  x86/resctrl: Add io_alloc_min_cbm_all interface for CBM reset
  fs/resctrl: resctrl: Return -EINVAL for a missing seq_show
    implementation

 Documentation/filesystems/resctrl.rst     |  13 +++
 arch/x86/kernel/cpu/resctrl/core.c        |   2 +-
 arch/x86/kernel/cpu/resctrl/ctrlmondata.c |  23 +++--
 fs/resctrl/ctrlmondata.c                  | 117 ++++++++++++++++++----
 fs/resctrl/internal.h                     |   3 +
 fs/resctrl/rdtgroup.c                     |  13 ++-
 include/linux/resctrl.h                   |  30 +++++-
 7 files changed, 167 insertions(+), 34 deletions(-)

-- 
2.51.0