linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: mm: optimize VA space organization for 52-bit
@ 2020-10-06 22:49 Ard Biesheuvel
  2020-10-06 22:49 ` [PATCH 1/2] arm64: mm: use single quantity to represent the PA to VA translation Ard Biesheuvel
  2020-10-06 22:49 ` [PATCH 2/2] arm64: mm: extend linear region for 52-bit VA configurations Ard Biesheuvel
  0 siblings, 2 replies; 4+ messages in thread
From: Ard Biesheuvel @ 2020-10-06 22:49 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: catalin.marinas, Anshuman Khandual, will, Ard Biesheuvel,
	Steve Capper

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, 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.

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

Cc: Steve Capper <steve.capper@arm.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>

Ard Biesheuvel (2):
  arm64: mm: use single quantity to represent the PA to VA translation
  arm64: mm: extend linear region for 52-bit VA configurations

 Documentation/arm64/kasan-offsets.sh |  3 +-
 arch/arm64/Kconfig                   | 20 ++++++------
 arch/arm64/include/asm/memory.h      | 13 ++++----
 arch/arm64/include/asm/pgtable.h     |  4 +--
 arch/arm64/mm/init.c                 | 32 +++++++-------------
 5 files changed, 30 insertions(+), 42 deletions(-)

-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2020-10-07 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-06 22:49 [PATCH 0/2] arm64: mm: optimize VA space organization for 52-bit Ard Biesheuvel
2020-10-06 22:49 ` [PATCH 1/2] arm64: mm: use single quantity to represent the PA to VA translation Ard Biesheuvel
2020-10-06 22:49 ` [PATCH 2/2] arm64: mm: extend linear region for 52-bit VA configurations Ard Biesheuvel
2020-10-07 18:00   ` 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).