arm64/mm: Enable batched TLB flush in unmap_hotplug_range()
Status from this message: Applied to arm64 (for-next/hotplug-batched-tlbi), thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 1 replyApplied
- v42 patches 4 repliesSuperseded
- v32 patches 8 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 2 replies | Superseded | |
| v1 | 2 patches | 5 replies | Superseded |
Changes in v5 from the cover letter
- Fixed all single liner in code comments per David
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | arm64/mm: Enable batched TLB flush in unmap_hotplug_range()arch/ | +20 | 0 replies | |
| 2/2 | arm64/mm: Reject memory removal that splits a kernel leaf mappingarch/ | +114 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | David Hildenbrand (Arm) | Ryan Roberts |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V5 0/2] arm64/mm: Enable batched TLB flush in unmap_hotplug_range()
This series enables batched TLB flush in unmap_hotplug_range() which avoids individual page TLB flush for potential CONT blocks in linear mapping while also improving performance due to range based TLB operation along with less synchronization barrier instructions.
It also now rejects memory removal that might split a leaf entry in kernel mapping, which would have otherwise required re-structuring using the break before make (BBM) semantics. But kernel cannot tolerate BBM, so remapping to fine grained leaves would not be possible on systems without BBML2_NOABORT.
This series applies on 7.0-rc3 and tested on KVM guest.
Changes in V5:
- Fixed all single liner in code comments per David
Changes in V4:
https://lore.kernel.org/all/[email protected]/
Accommodated all comments from David H
- Dropped 'size' in can_unmap_without_split()
- Added BUILD_BUG_ON() for SPARSEMEM_VMEMMAP in can_unmap_without_split()
- Added unified comment in addr_splits_kernel_leaf()
- Replaced ALIGNED_DOWN() with IS_ALIGNED()
- Dropped all PXX_SIZE comments in addr_splits_kernel_leaf()
- Dropped the comment in unmap_hotplug_range()
- Dropped the comments about TLB flush being essential for freeing memory
- Replaced the comments regarding CONT blocks
- Replaced the comments as unmap_hotplug_range() flushes TLB for !free_mapped
- Dropped "Fixes:" and "Closes:" tag from [PATCH 2/2], added "Link:" instead
Changes in V3:
https://lore.kernel.org/all/[email protected]/
- Fixed some typos in the commit message for [PATCH 2/2]
- Dropped copying [email protected] per Ryan
Changes in V2:
https://lore.kernel.org/all/[email protected]/
- Renamed split_kernel_leaf_boundary() as addr_splits_kernel_leaf()
- Dropped pte_valid()/pmd_leaf() before checking pte_cont()/pmd_cont()
- Changed and dropped variables in can_unmap_without_split()
- Moved can_unmap_without_split() after boot memory check
- Renamed 'prevent_bootmem' as 'prevent_memory' across the board
- Updated commit message in both patches
Changes in V1:
- https://lore.kernel.org/all/[email protected]/
Anshuman Khandual (2):
arm64/mm: Enable batched TLB flush in unmap_hotplug_range() arm64/mm: Reject memory removal that splits a kernel leaf mapping
arch/arm64/mm/mmu.c | 156 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 134 insertions(+), 22 deletions(-)
Signature · 1 line
2.30.2