Skip to content

arm64: mm: optimize VA space organization for 52-bit

Ard Biesheuvel linux-arm-kernel 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 21 repliesApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- drop incorrect use of untagged_addr() from #2
- add patches #3 and #4

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4arm64: mm: use single quantity to represent the PA to VA translationarch/arm64/include/asm/memory.h arch/arm64/include/asm/pgtable.h arch/arm64/mm/init.c+14 -253 replies
2/4arm64: mm: extend linear region for 52-bit VA configurationsDocumentation/arm64/kasan-offsets.sh Documentation/arm64/memory.rst arch/arm64/Kconfig +2 more+26 -305 replies
3/4arm64: mm: make vmemmap region a projection of the linear regionDocumentation/arm64/memory.rst arch/arm64/include/asm/memory.h arch/arm64/mm/init.c+23 -239 replies
4/4arm64: mm: tidy up top of kernel VA spaceDocumentation/arm64/memory.rst arch/arm64/include/asm/memory.h arch/arm64/include/asm/pgtable.h+13 -151 reply

Reviews trailers per patch

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

PatchSteve Capper
1/4R-b R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] arm64: mm: optimize VA space organization for 52-bit

This series reorganizes the kernel VA space slightly so that 52-bit VA configurations can use more virtual address space, i.e., the usable linear address space almost doubles, from 2^51 to 2^52-2^47.

Patch #1 merges the physvirt_offset and memstart_addr variables, both of which represent translations between the physical address space and the linear region, and there is no need for having both. This fixes a bug too, as the two values were not properly kept in sync when booting with KASLR enabled.

Patch #2 updates the definitions for the boundaries of the linear space, so that 52-bit VA builds use all available space for the linear region.

Patches #3 and #4 simplify the way the vmemmap region is configured, and unify the 48-bit/4k and 52-bit/64k layouts.

Changes since v1:
- drop incorrect use of untagged_addr() from #2
- add patches #3 and #4

Not boot tested yet on a 52-bit VA capable system.

Cc Steve Capper <[email protected]>
Cc Anshuman Khandual <[email protected]>

Ard Biesheuvel (4):
arm64: mm: use single quantity to represent the PA to VA translation
arm64: mm: extend linear region for 52-bit VA configurations
arm64: mm: make vmemmap region a projection of the linear region
arm64: mm: tidy up top of kernel VA space

 Documentation/arm64/kasan-offsets.sh |  3 +-
 Documentation/arm64/memory.rst       | 45 +++++++++-----------
 arch/arm64/Kconfig                   | 20 ++++-----
 arch/arm64/include/asm/memory.h      | 35 +++++++--------
 arch/arm64/include/asm/pgtable.h     |  6 +--
 arch/arm64/mm/init.c                 | 34 ++++++---------
 6 files changed, 63 insertions(+), 80 deletions(-)
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel