Skip to content

cxl/region: Improve Soft Reserved resource handling

[email protected] linux-cxl 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 7 repliesIn review
  2. v22 patches 6 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- dev_dbg() on failure to insert resource to a soft reserved parent (Jonathan) Continue, as in previous versions of this patch, to insert the resource to the root decoder if insert to SR parent fails or SR parent does not exist.
- Replace goto/unlock with guard(mutex) in remove_soft_reserved() (DaveJ)
- Use automatic resource cleanup in add_soft_reserved() (DaveJ)
- Fixups to commit log grammar (DaveJ)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cxl/region: Try to add a region resource to a soft reserved parentdrivers/cxl/core/region.c+47 -102 replies
2/2cxl/region: Remove a soft reserved resource at region teardowndrivers/cxl/core/region.c+121 -95 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDave JiangJonathan Cameron
1/2R-b R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] cxl/region: Improve Soft Reserved resource handling

From: Alison Schofield <[email protected]>

Changes in v3:
- dev_dbg() on failure to insert resource to a soft reserved parent (Jonathan) Continue, as in previous versions of this patch, to insert the resource to the root decoder if insert to SR parent fails or SR parent does not exist.
- Replace goto/unlock with guard(mutex) in remove_soft_reserved() (DaveJ)
- Use automatic resource cleanup in add_soft_reserved() (DaveJ)
- Fixups to commit log grammar (DaveJ)

v2: https://lore.kernel.org/linux-cxl/[email protected]/

Begin Cover Letter:
Make the CXL Region Driver handle these 2 observed scenarios:

1) Soft reserved resources were observed as sometimes being the parent and sometimes being the child of a region resource. Patch 1 clears up that inconsistency.

2) Soft reserved resources were also observed as stranded after region teardown, making the address space the region released unavailable for reallocation. Patch 2 implements soft reserved resource removal.

Alison Schofield (2):
cxl/region: Try to add a region resource to a soft reserved parent cxl/region: Remove a soft reserved resource at region teardown

 drivers/cxl/core/region.c | 187 ++++++++++++++++++++++++++++++++++----
 1 file changed, 168 insertions(+), 19 deletions(-)

base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5

Signature · 1 line
2.37.3