Skip to content

arm64: 52-bit physical address support

Catalin Marinas linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest8 patches 0 repliesNew

Changes in v2 from the cover letter

- Folded patches 7 and 8 from the original series into 1
- Definitions for TCR_IPS_*
- Renamed some asm macros and functions
- __create_hyp_mappings() changed to avoid passing an extra arg
- More code comments
- Added Reviewed/Tested tags I've got so far

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8arm64: add kconfig symbol to configure physical address sizearch/arm64/Kconfig arch/arm64/include/asm/pgtable-hwdef.h arch/arm64/include/asm/sparsemem.h+18 -21 reply
2/8arm64: limit PA size to supported rangearch/arm64/include/asm/assembler.h arch/arm64/include/asm/pgtable-hwdef.h arch/arm64/include/asm/sysreg.h +3 more+34 -81 reply
3/8arm64: handle 52-bit addresses in TTBRarch/arm/include/asm/kvm_mmu.h arch/arm64/include/asm/assembler.h arch/arm64/include/asm/kvm_mmu.h +10 more+71 -161 reply
4/8arm64: head.S: handle 52-bit PAs in PTEs in early page table setuparch/arm64/include/asm/pgtable-hwdef.h arch/arm64/kernel/head.S+37 -91 reply
5/8arm64: don't open code page table entry creationarch/arm64/include/asm/kvm_mmu.h arch/arm64/include/asm/pgtable.h arch/arm64/kernel/hibernate.c +1 more+16 -72 replies
6/8arm64: handle 52-bit physical addresses in page table entriesarch/arm64/include/asm/kvm_mmu.h arch/arm64/include/asm/pgalloc.h arch/arm64/include/asm/pgtable-hwdef.h +2 more+51 -200 replies
7/8arm64: allow ID map to be extended to 52 bitsarch/arm/include/asm/kvm_mmu.h arch/arm64/include/asm/assembler.h arch/arm64/include/asm/kvm_mmu.h +5 more+87 -498 replies
8/8arm64: enable 52-bit physical address supportarch/arm64/Kconfig+13 -02 replies

Reviews trailers per patch

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

PatchSuzuki K PouloseBob PiccoMarc Zyngier
1/8R-b T-b R-b A-b
2/8R-b T-b R-b R-b
3/8R-b T-b T-b R-b R-b
4/8R-b T-b R-b R-b
5/8R-b T-b R-b R-b
6/8R-b T-b R-b R-b
7/8R-b T-b R-b R-b
8/8R-b T-b R-b A-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 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/8] arm64: 52-bit physical address support

Hi,

That's v2 of Kristina's 52-bit PA series, posted here:

http://lkml.kernel.org/r/1513184845-8711-1-git-send-email-kristina.martsenko at arm.com

I addressed the comments raised on the list and I plan to push it into -next soon.

Changes in v2:

- Folded patches 7 and 8 from the original series into 1
- Definitions for TCR_IPS_*
- Renamed some asm macros and functions
- __create_hyp_mappings() changed to avoid passing an extra arg
- More code comments
- Added Reviewed/Tested tags I've got so far

Thanks,

Catalin

Kristina Martsenko (8):
arm64: add kconfig symbol to configure physical address size
arm64: limit PA size to supported range
arm64: handle 52-bit addresses in TTBR
arm64: head.S: handle 52-bit PAs in PTEs in early page table setup
arm64: don't open code page table entry creation
arm64: handle 52-bit physical addresses in page table entries
arm64: allow ID map to be extended to 52 bits
arm64: enable 52-bit physical address support

 arch/arm/include/asm/kvm_mmu.h         |   7 ++
 arch/arm64/Kconfig                     |  29 ++++++++
 arch/arm64/include/asm/assembler.h     |  36 +++++++++-
 arch/arm64/include/asm/kvm_mmu.h       |  21 +++++-
 arch/arm64/include/asm/mmu_context.h   |  20 ++++--
 arch/arm64/include/asm/pgalloc.h       |   6 +-
 arch/arm64/include/asm/pgtable-hwdef.h |  25 ++++++-
 arch/arm64/include/asm/pgtable.h       |  55 ++++++++++++---
 arch/arm64/include/asm/sparsemem.h     |   2 +-
 arch/arm64/include/asm/sysreg.h        |   8 +++
 arch/arm64/kernel/head.S               | 122 +++++++++++++++++++++------------
 arch/arm64/kernel/hibernate-asm.S      |  12 ++--
 arch/arm64/kernel/hibernate.c          |   5 +-
 arch/arm64/kvm/hyp-init.S              |  26 ++++---
 arch/arm64/kvm/hyp/s2-setup.c          |   2 +
 arch/arm64/mm/mmu.c                    |  15 ++--
 arch/arm64/mm/pgd.c                    |   8 +++
 arch/arm64/mm/proc.S                   |  19 ++---
 virt/kvm/arm/arm.c                     |   2 +-
 virt/kvm/arm/mmu.c                     |  10 ++-
 20 files changed, 323 insertions(+), 107 deletions(-)