Skip to content

x86/resctrl: Add io_alloc_min_cbm_all interface for CBM reset

Aaron Tomlin lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/resctrl: Add io_alloc_min_cbm_all interface for CBM resetDocumentation/filesystems/resctrl.rst arch/x86/kernel/cpu/resctrl/core.c arch/x86/kernel/cpu/resctrl/ctrlmondata.c +4 more+165 -3320 replies
2/2fs/resctrl: resctrl: Return -EINVAL for a missing seq_show implementationfs/resctrl/rdtgroup.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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/[email protected]/#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(-)
Signature · 1 line
2.51.0