All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ardb@kernel.org>
To: linux-arm-kernel@lists.infradead.org
Cc: catalin.marinas@arm.com,
	Anshuman Khandual <anshuman.khandual@arm.com>,
	will@kernel.org, Ard Biesheuvel <ardb@kernel.org>,
	Steve Capper <steve.capper@arm.com>
Subject: [PATCH 0/2] arm64: mm: optimize VA space organization for 52-bit
Date: Wed,  7 Oct 2020 00:49:51 +0200	[thread overview]
Message-ID: <20201006224953.8432-1-ardb@kernel.org> (raw)

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

             reply	other threads:[~2020-10-06 22:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-06 22:49 Ard Biesheuvel [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201006224953.8432-1-ardb@kernel.org \
    --to=ardb@kernel.org \
    --cc=anshuman.khandual@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=steve.capper@arm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.