Skip to content

Cleanup and fixups for vmemmap handling

Oscar Salvador linux-mm linux-next lkml 6 versions – Applied

Status from this message: [merged] x86-vmemmap-optimize-for-consecutive-sections-in-partial-populated-pmds.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 6 repliesApplied 4/4
  2. v54 patches 9 repliesSuperseded
  3. v43 patches 17 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches2 repliesSuperseded
v23 patches6 repliesSuperseded
v12 patches3 repliesSuperseded

Changes in v6 from the cover letter

- Fix some compilation errors when !CONFIG_MEMORY_HOTPLUG (Reported by Zi Yan)
- Collect Acked-by from Dave

Patches in v6 All 4 applied

#Subject and filesSizeRepliesApplied
1/4x86/vmemmap: Drop handling of 4K unaligned vmemmap rangearch/x86/mm/init_64.c+13 -350 repliesApplied
2/4x86/vmemmap: Drop handling of 1GB vmemmap rangesarch/x86/mm/init_64.c+7 -280 repliesApplied
3/4x86/vmemmap: Handle unpopulated sub-pmd rangesarch/x86/mm/init_64.c+53 -126 repliesApplied
4/4x86/vmemmap: Optimize for consecutive sections in partial populated PMDsarch/x86/mm/init_64.c+60 -50 repliesApplied

Reviews trailers per patch

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

PatchDavid HildenbrandDave Hansen
1/4R-b A-b
2/4R-b A-b
3/4R-b A-b
4/4A-b

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

Read the v6 thread

Cover letter [PATCH v6 0/4] Cleanup and fixups for vmemmap handling

Hi,

this series contains cleanups to remove dead code that handles unaligned cases for 4K and 1GB pages (patch#1 and patch#2) when removing the vemmmap range, and a fix (patch#3) to handle the case when two vmemmap ranges intersect the same PMD.

More details can be found in the respective changelogs.

v5 -> v6:
- Fix some compilation errors when !CONFIG_MEMORY_HOTPLUG (Reported by Zi Yan)
- Collect Acked-by from Dave

v4 -> v5:
- Rebase on top of 5.12-rc2
- Addessed feedback from Dave
- Split previous patch#3 into core-changes (current patch#3) and the optimization (current patch#4)
- Document better what is unused_pmd_start and its optimization
- Added Acked-by for patch#1

v3 -> v4:
- Rebase on top of 5.12-rc1 as Andrew suggested
- Added last Reviewed-by for the last patch

v2 -> v3:
- Make sure we do not clear the PUD entry in case we are not removing the whole range.
- Add Reviewed-by

v1 -> v2:
- Remove dead code in remove_pud_table as well
- Addessed feedback by David
- Place the vmemap functions that take care of unaligned PMDs within CONFIG_SPARSEMEM_VMEMMAP

Oscar Salvador (4):
x86/vmemmap: Drop handling of 4K unaligned vmemmap range x86/vmemmap: Drop handling of 1GB vmemmap ranges x86/vmemmap: Handle unpopulated sub-pmd ranges x86/vmemmap: Optimize for consecutive sections in partial populated
PMDs

 arch/x86/mm/init_64.c | 203 +++++++++++++++++++++++++++++++-------------------
 1 file changed, 128 insertions(+), 75 deletions(-)
Signature · 1 line
2.16.3