linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix subsection vmemmap_populate logic
@ 2024-11-21  7:12 Zhenhua Huang
  2024-11-21  7:12 ` [PATCH 1/2] arm64: mm: vmemmap populate to page level if not section aligned Zhenhua Huang
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Zhenhua Huang @ 2024-11-21  7:12 UTC (permalink / raw)
  To: catalin.marinas, will, ardb, ryan.roberts, mark.rutland,
	joey.gouly, dave.hansen, akpm, chenfeiyang, chenhuacai
  Cc: linux-arm-kernel, linux-kernel, Zhenhua Huang

To perform memory hotplug operations, the memmap (aka struct page) will be
updated. For arm64 with 4K page size, the typical granularity is 128M,
which corresponds to a 2M memmap buffer.
Commit 2045a3b8911b ("mm/sparse-vmemmap: generalise vmemmap_populate_hugepages()")
optimizes this 2M buffer to be mapped with PMD huge pages. However,
commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug")
which supports 2M subsection hotplug granularity, causes other issues
(refer to the change log of patch #1). The logic is adjusted to populate
with huge pages only if the hotplug address/size is section-aligned.

Zhenhua Huang (2):
  arm64: mm: vmemmap populate to page level if not section aligned
  arm64: mm: implement vmemmap_check_pmd for arm64

 arch/arm64/mm/mmu.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-12-09  6:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21  7:12 [PATCH 0/2] Fix subsection vmemmap_populate logic Zhenhua Huang
2024-11-21  7:12 ` [PATCH 1/2] arm64: mm: vmemmap populate to page level if not section aligned Zhenhua Huang
2024-12-06 17:13   ` Catalin Marinas
2024-12-09  6:04     ` Zhenhua Huang
2024-11-21  7:12 ` [PATCH 2/2] arm64: mm: implement vmemmap_check_pmd for arm64 Zhenhua Huang
2024-11-28  7:26 ` [PATCH 0/2] Fix subsection vmemmap_populate logic Zhenhua Huang
2024-12-06  9:13   ` Zhenhua Huang
2024-12-07  6:14     ` Andrew Morton
2024-12-09  6:04       ` Zhenhua Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).