Skip to content

resource: Fix region_intersects() vs add_memory_driver_managed()

Huang Ying linux-cxl linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] resource-kunit-add-test-case-for-region_intersects.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied 3/3

v3 from the cover letter

- Revise the patch subject, description and comments, Thanks Bjorn, Andy, David, and Dan!

- Added a kunit test case.

- Fixed several coding style issues, Thanks Andy!

- Link to v2: https://lore.kernel.org/linux-mm/[email protected]/

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3resource: Fix region_intersects() vs add_memory_driver_managed()kernel/resource.c+50 -82 repliesApplied
2/3resource: Make alloc_free_mem_region() works for iomem_resourcekernel/resource.c+1 -13 repliesApplied
3/3resource, kunit: Add test case for region_intersects()kernel/resource.c kernel/resource_kunit.c lib/Kconfig.debug+158 -63 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH -v3 0/3] resource: Fix region_intersects() vs add_memory_driver_managed()

The patchset fixes a bug of region_intersects() for systems with CXL memory. The details of the bug can be found in [1/3]. To avoid similar bugs in the future. A kunit test case for region_intersects() is added in [3/3]. [2/3] is a preparation patch for [3/3].

Changelogs:

v3:

- Revise the patch subject, description and comments, Thanks Bjorn, Andy, David, and Dan!

- Added a kunit test case.

- Fixed several coding style issues, Thanks Andy!

- Link to v2: https://lore.kernel.org/linux-mm/[email protected]/

v2:

- Fix a bug which occurs when descendant of a matched resource matches.

- Revise the patch description and comments to make the algorithm clearer. Thanks Dan and David's comments!

- Link to v1: https://lore.kernel.org/linux-mm/[email protected]/

Best Regards,
Huang, Ying