Skip to content

fs/resctrl: Fix some resctl bugs related to mpam

Jinjie Ruan linux-arm-kernel linux-doc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest7 patches 1 replyIn review

Changes in v5 from the cover letter

- Update and split the patch as Reinette and Ben suggested.
- Adjust the commit message.
- Add Reviewed-by.
- Link to v4:
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/[email protected]/

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7fs/resctrl: Report a temporary RMID shortage per CLOSIDfs/resctrl/monitor.c+11 -41 reply
2/7fs/resctrl: Do not allocate a monitor context when releasing limbo RMIDsfs/resctrl/internal.h fs/resctrl/monitor.c fs/resctrl/rdtgroup.c+49 -270 replies
3/7fs/resctrl: Clear the CDP state after the cleanupfs/resctrl/rdtgroup.c+8 -20 replies
4/7fs/resctrl: Stop the limbo handler while resctrl is unmountedfs/resctrl/internal.h fs/resctrl/monitor.c fs/resctrl/rdtgroup.c+44 -20 replies
5/7fs/resctrl: Release the limbo RMIDs when the CDP state changesarch/x86/include/asm/resctrl.h drivers/resctrl/mpam_resctrl.c fs/resctrl/monitor.c +1 more+39 -20 replies
6/7fs/resctrl: Disallow monitor group move when the RMID index changesDocumentation/filesystems/resctrl.rst fs/resctrl/rdtgroup.c+17 -40 replies
7/7fs/resctrl: Add info/moveable_mon_groupDocumentation/filesystems/resctrl.rst fs/resctrl/rdtgroup.c+32 -20 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchReinette ChatreBen Horgan
1/7R-b R-b
2/7R-b
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/7] fs/resctrl: Fix some resctl bugs related to mpam

From: Jinjie Ruan <[email protected]>

Fix resctrl RMID allocation to report a retryable -EBUSY only when the target CLOSID actually has RMIDs in limbo.

Split the domain-offline path out so it releases busy RMIDs without allocating a monitor context it never uses.

Also unmount resctrl with the CDP state it was mounted with to fix another bug with mpam cdp.

And do not allow monitor group move when the RMID index changes.

These fixes are split out of the v10 Narrow-PARTID series below.

        https://lore.kernel.org/all/[email protected]/

Changes in v5:
- Update and split the patch as Reinette and Ben suggested.
- Adjust the commit message.
- Add Reviewed-by.
- Link to v4:
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/[email protected]/

Changes in v4:
- Fix the unmount resctrl bug as Reinette suggested.
- Adjust the commit message.
- Add Reviewed-bys.
- Link to v3:
- https://lore.kernel.org/all/[email protected]/
- https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Add Reviewed-by.
- Local varibles uses reverse Christmas tree style.
- Update the commit message as Reinette suggested.
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes in v2
- Update the commit message as Reinette suggested.
- Link to v1: https://lore.kernel.org/all/[email protected]/

Jinjie Ruan (6):
fs/resctrl: Report a temporary RMID shortage per CLOSID fs/resctrl: Do not allocate a monitor context when releasing limbo
RMIDs
fs/resctrl: Clear the CDP state after the cleanup fs/resctrl: Stop the limbo handler while resctrl is unmounted fs/resctrl: Release the limbo RMIDs when the CDP state changes fs/resctrl: Add info/moveable_mon_group

Peter Newman (1):
fs/resctrl: Disallow monitor group move when the RMID index changes

 Documentation/filesystems/resctrl.rst |  15 ++-
 arch/x86/include/asm/resctrl.h        |   6 +
 drivers/resctrl/mpam_resctrl.c        |   9 ++
 fs/resctrl/internal.h                 |   3 +-
 fs/resctrl/monitor.c                  | 151 ++++++++++++++++++++------
 fs/resctrl/rdtgroup.c                 |  50 ++++++++-
 include/linux/arm_mpam.h              |   1 +
 7 files changed, 196 insertions(+), 39 deletions(-)
Signature · 1 line
2.43.0