linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Map larger kernels at early init
@ 2017-11-17 11:41 Steve Capper
  2017-11-17 11:41 ` [PATCH 1/2] arm64: Re-order reserved_ttbr0 in linker script Steve Capper
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Steve Capper @ 2017-11-17 11:41 UTC (permalink / raw)
  To: linux-arm-kernel

The early pagetable creation code assumes that a single pgd, pud, pmd
and pte are sufficient to map the kernel text for MMU bringup. For 16KB
granules this is, unfortunately, rarely the case. Some kernels may be too
big even for a 64KB granule employing this scheme.

This patch series addresses the problem in two steps: 1) re-order the
reserved_ttbr0 to allow its address computation to be independent of
swapper_pg_dir size, 2) re-write the early pgtable code to allow for
multiple page table entries at each level.

Steve Capper (2):
  arm64: Re-order reserved_ttbr0 in linker script
  arm64: Extend early page table code to allow for larger kernels

 arch/arm64/include/asm/asm-uaccess.h    |   6 +-
 arch/arm64/include/asm/kernel-pgtable.h |  20 ++++-
 arch/arm64/include/asm/pgtable.h        |   2 +-
 arch/arm64/include/asm/uaccess.h        |   2 +-
 arch/arm64/kernel/head.S                | 148 +++++++++++++++++++++++---------
 arch/arm64/kernel/vmlinux.lds.S         |   6 +-
 arch/arm64/mm/mmu.c                     |   3 +-
 7 files changed, 137 insertions(+), 50 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-11-21 16:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-17 11:41 [PATCH 0/2] Map larger kernels at early init Steve Capper
2017-11-17 11:41 ` [PATCH 1/2] arm64: Re-order reserved_ttbr0 in linker script Steve Capper
2017-11-20 16:25   ` Mark Rutland
2017-11-21 11:15     ` Steve Capper
2017-11-17 11:41 ` [PATCH 2/2] arm64: Extend early page table code to allow for larger kernels Steve Capper
2017-11-20 17:00   ` Mark Rutland
2017-11-21 11:13     ` Steve Capper
2017-11-21 13:14       ` Steve Capper
2017-11-21 13:24         ` Ard Biesheuvel
2017-11-21 16:14           ` Steve Capper
2017-11-21 16:43             ` Ard Biesheuvel
2017-11-17 12:06 ` [PATCH 0/2] Map larger kernels at early init Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).