Skip to content

Introduce common code for risc-v sparsemem support

Logan Gunthorpe linux-arch linux-arm-kernel linux-mm linux-riscv linux-sh lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 9 repliesSuperseded

Changes in v2 from the cover letter

* Added a comment documenting the awkwardly named memblocks_present() function, as suggested by Andrew.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: Introduce common STRUCT_PAGE_MAX_SHIFT definearch/arm64/include/asm/memory.h arch/arm64/mm/init.c include/asm-generic/fixmap.h +1 more+6 -172 replies
2/2mm/sparse: add common helper to mark all memblocks presentinclude/linux/mmzone.h mm/sparse.c+22 -00 replies

Reviews trailers per patch

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

PatchWill DeaconAndrew MortonCatalin MarinasArd Biesheuvel
1/2A-b A-b A-b A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] Introduce common code for risc-v sparsemem support

These are the first two common patches in my series to introduce sparsemem support to RISC-V. The full series was posted last cycle here [1] and the latest version can be found here [2].

As recommended by Palmer, I'd like to get the changes to common code merged and then I will pursue the cleanups in the individual arches (arm, arm64, and sh) as well as add the new feature to riscv.

I would suggest we merge these two patches through Andrew's mm tree.

Thanks,

Logan

[1] https://lore.kernel.org/lkml/[email protected]/T/#u
[2] https://github.com/sbates130272/linux-p2pmem.git riscv-sparsemem-v4

--

Changes in v2:
* Added a comment documenting the awkwardly named memblocks_present() function, as suggested by Andrew.

--

Logan Gunthorpe (2):
mm: Introduce common STRUCT_PAGE_MAX_SHIFT define mm/sparse: add common helper to mark all memblocks present

 arch/arm64/include/asm/memory.h |  9 ---------
 arch/arm64/mm/init.c            |  8 --------
 include/asm-generic/fixmap.h    |  1 +
 include/linux/mm_types.h        |  5 +++++
 include/linux/mmzone.h          |  6 ++++++
 mm/sparse.c                     | 16 ++++++++++++++++
 6 files changed, 28 insertions(+), 17 deletions(-)

--
2.19.0