From: Dennis Chen <dennis.chen-5wv7dgnIgG8@public.gmane.org>
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: nd-5wv7dgnIgG8@public.gmane.org,
steve.capper-5wv7dgnIgG8@public.gmane.org,
dennis.chen-5wv7dgnIgG8@public.gmane.org,
catalin.marinas-5wv7dgnIgG8@public.gmane.org,
ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org,
penberg-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
mgorman-3eNAlZScCAx27rWaFMvyedHuzzzSOjJt@public.gmane.org,
tangchen-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org,
tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
rafael-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
will.deacon-5wv7dgnIgG8@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org,
kaly.xin-5wv7dgnIgG8@public.gmane.org,
linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH v6 0/2] Fix acpi alignment fault with 'mem='
Date: Thu, 14 Jul 2016 13:43:54 +0800 [thread overview]
Message-ID: <1468475036-5852-1-git-send-email-dennis.chen@arm.com> (raw)
An ACPI alignment access fault has been observed on ARM platforms if one
boots an ACPI enabled kernel with 'mem=' specificed. This was due to
memblock_enforce_memory_limit(.) throwing away NOMAP regions thus causing
acpi_os_ioremap(.) to map them as device memory (rather than normal memory).
This patch series fixes this issue by:
1) Introducing memblock_mem_limit_remove_map(.), which retains the NOMAP
regions.
2) Calling this function in arm64.
ChangeLog:
v5->v6:
- Truncate the reserved regions above the limit as suggested by
Steve Capper.
- Drop the memblock debug fs related patch from this series since
it's independent logically.
- CC more relevant persons.
v4->v5:
Fix a build warning.
v3->v4:
Address some review comments from Mark Rutland.
v2->v3:
Only keep the NOMAP regions above the limit while removing all other
memblocks as suggested by Ard Biesheuvel.
v1->v2:
Flag all regions above the limit as NOMAP as suggested by Mark Rutland.
Dennis Chen (2):
mm:memblock Add new infrastructure to address the mem limit issue
arm64:acpi Fix the acpi alignment exeception when 'mem=' specified
arch/arm64/mm/init.c | 2 +-
include/linux/memblock.h | 1 +
mm/memblock.c | 57 +++++++++++++++++++++++++++++++++++++++++++-----
3 files changed, 54 insertions(+), 6 deletions(-)
--
2.7.4
next reply other threads:[~2016-07-14 5:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-14 5:43 Dennis Chen [this message]
[not found] ` <1468475036-5852-1-git-send-email-dennis.chen-5wv7dgnIgG8@public.gmane.org>
2016-07-14 5:43 ` [PATCH v6 1/2] mm:memblock Add new infrastructure to address the mem limit issue Dennis Chen
2016-07-14 5:43 ` [PATCH v6 2/2] arm64:acpi Fix the acpi alignment exception when 'mem=' specified Dennis Chen
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=1468475036-5852-1-git-send-email-dennis.chen@arm.com \
--to=dennis.chen-5wv7dgnigg8@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=catalin.marinas-5wv7dgnIgG8@public.gmane.org \
--cc=kaly.xin-5wv7dgnIgG8@public.gmane.org \
--cc=linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org \
--cc=mgorman-3eNAlZScCAx27rWaFMvyedHuzzzSOjJt@public.gmane.org \
--cc=mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=nd-5wv7dgnIgG8@public.gmane.org \
--cc=penberg-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=rafael-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=steve.capper-5wv7dgnIgG8@public.gmane.org \
--cc=tangchen-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org \
--cc=tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=will.deacon-5wv7dgnIgG8@public.gmane.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).