linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: ard.biesheuvel@linaro.org (Ard Biesheuvel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/3] arm64: memstart_addr alignment and vmemmap offset fixes
Date: Wed, 30 Mar 2016 14:25:45 +0200	[thread overview]
Message-ID: <1459340748-14975-1-git-send-email-ard.biesheuvel@linaro.org> (raw)

This series wraps up some loose ends regarding the v4.6 changes in arm64 to
allow the kernel to reside at any [appropriately aligned] physical address.

Patch #1 fixes a bug where we fail to update memstart_addr after clipping
memory from the bottom if so required by the size of the linear region and
the placement of the kernel Image.

Patch #2 updates the constant ARM64_MEMSTART_ALIGN, which defines the minimum
alignment of memstart_addr, to account for the section alignment my sparsemem
vmemmap if that is enabled. This is a prerequisite for patch #3

Patch #3 reverts commit 36e5cd6b897e ("arm64: account for sparsemem section
alignment  when choosing vmemmap offset"), which was included as a bugfix in
v4.5-late, but is no longer required now that we can freely choose
memstart_addr, allowing us to take this minimum alignment into account. This
makes the rounding in the definition of vmemmap redundant.

Ard Biesheuvel (3):
  arm64/mm: ensure memstart_addr remains sufficiently aligned
  arm64: choose memstart_addr based on minimum sparsemem section
    alignment
  Revert "arm64: account for sparsemem section alignment when choosing
    vmemmap offset"

 arch/arm64/include/asm/kernel-pgtable.h | 21 +++++++++++++++++---
 arch/arm64/include/asm/pgtable.h        |  5 ++---
 arch/arm64/mm/init.c                    |  8 ++++++--
 3 files changed, 26 insertions(+), 8 deletions(-)

-- 
2.5.0

             reply	other threads:[~2016-03-30 12:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30 12:25 Ard Biesheuvel [this message]
2016-03-30 12:25 ` [PATCH v2 1/3] arm64/mm: ensure memstart_addr remains sufficiently aligned Ard Biesheuvel
2016-03-30 12:25 ` [PATCH v2 2/3] arm64: choose memstart_addr based on minimum sparsemem section alignment Ard Biesheuvel
2016-03-30 12:25 ` [PATCH v2 3/3] Revert "arm64: account for sparsemem section alignment when choosing vmemmap offset" 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=1459340748-14975-1-git-send-email-ard.biesheuvel@linaro.org \
    --to=ard.biesheuvel@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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 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).