Skip to content

arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory

Anshuman Khandual linux-arm-kernel linux-mm lkml 3 versions – Applied

Status from this message: Applied to arm64 (for-next/fixes), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 10 repliesApplied
  2. v22 patches 20 repliesApplied
  3. v12 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Validate the pfn before fetching mem_section with __pfn_to_section() in [PATCH 2/2]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memoryarch/arm64/mm/init.c+12 -04 replies
2/2arm64/mm: Reorganize pfn_valid()arch/arm64/mm/init.c+16 -51 reply

Reviews trailers per patch

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

PatchDavid HildenbrandCatalin Marinas
1/2A-b A-b
2/2R-b A-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] arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory

This series fixes pfn_valid() for ZONE_DEVICE based memory and also improves its performance for normal hotplug memory. While here, it also reorganizes pfn_valid() on CONFIG_SPARSEMEM. This series is based on v5.12-rc1.

Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Ard Biesheuvel <[email protected]>
Cc Mark Rutland <[email protected]>
Cc James Morse <[email protected]>
Cc Robin Murphy <[email protected]>
Cc Jérôme Glisse <[email protected]>
Cc Dan Williams <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Veronika Kabatova <[email protected]>

Changes in V3:

- Validate the pfn before fetching mem_section with __pfn_to_section() in [PATCH 2/2]

Changes in V2:

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

- Dropped pfn_valid() bifurcation based on CONFIG_SPARSEMEM
- Used PFN_PHYS() and PHYS_PFN() instead of __pfn_to_phys() and __phys_to_pfn()
- Moved __pfn_to_section() inside #ifdef CONFIG_SPARSEMEM with a { } construct

Changes in V1:

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

- Test pfn_section_valid() for non boot memory

Changes in RFC:

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

Anshuman Khandual (2):
arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory arm64/mm: Reorganize pfn_valid()

 arch/arm64/mm/init.c | 29 ++++++++++++++++++++++++++---
 1 file changed, 26 insertions(+), 3 deletions(-)
Signature · 1 line
2.20.1