Skip to content

RFC arm64: Add support for 48-bit Physical Addresses

mohun106 at gmail.com linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm64: Add 48-bit PA support for 4KB page sizearch/arm64/include/asm/memory.h arch/arm64/include/asm/page.h arch/arm64/include/asm/pgalloc.h +7 more+220 -201 reply
1/2arm64: Add 48-bit PA support for 4KB page size+0 -00 replies
2/2arm64: Add 48-bit PA support for 64KB page sizearch/arm64/include/asm/page.h arch/arm64/include/asm/pgalloc.h arch/arm64/include/asm/pgtable-3level-hwdef.h +5 more+80 -191 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] arm64: Add support for 48-bit Physical Addresses

From: Radha Mohan Chintakuntla <[email protected]>

This patch series provides an implementation of supporting 48-bit Physical Addresses for ARMv8 platforms. It is the maximum width that any ARMv8 based processor can support.

The implementation extends the existing support of 40-bit PA.The kernel and user space will now be able to access 128TB each. With 4KB page size the Linux now will be using 4 levels of page tables by making use of 'pud'. And with 64KB page size the Linux will be using 3 levels of page tables.

The code has been tested with LTP.

Radha Mohan Chintakuntla (2):
arm64: Add support for 48-bit Physical Addresses
arm64: Add 48-bit PA support for 64KB page size

 arch/arm64/include/asm/memory.h               |    6 +--
 arch/arm64/include/asm/page.h                 |    4 +-
 arch/arm64/include/asm/pgalloc.h              |   20 ++++++-
 arch/arm64/include/asm/pgtable-3level-hwdef.h |   34 ++++++++++++
 arch/arm64/include/asm/pgtable-4level-hwdef.h |   57 ++++++++++++++++++++
 arch/arm64/include/asm/pgtable-4level-types.h |   71 +++++++++++++++++++++++++
 arch/arm64/include/asm/pgtable-hwdef.h        |    9 ++--
 arch/arm64/include/asm/pgtable.h              |   50 +++++++++++++++---
 arch/arm64/include/asm/tlb.h                  |    2 -
 arch/arm64/kernel/head.S                      |   55 +++++++++++++++++--
 arch/arm64/kernel/traps.c                     |    7 +++
 arch/arm64/mm/proc.S                          |    2 +-
 12 files changed, 289 insertions(+), 28 deletions(-)
 create mode 100644 arch/arm64/include/asm/pgtable-4level-hwdef.h
 create mode 100644 arch/arm64/include/asm/pgtable-4level-types.h