From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: kexec: selective MMU identity mapping
Date: Wed, 2 Feb 2011 21:09:25 +0000 [thread overview]
Message-ID: <20110202210925.GD31043@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1296657809-1589-1-git-send-email-per.xx.fransson@stericsson.com>
On Wed, Feb 02, 2011 at 03:43:29PM +0100, Per Fransson wrote:
> When restarting using the kernel kexec functionality the MMU
> needs to be turned off. Any code which does this needs to use
> identity mapped addresses to get reliable results. In the ARM
> kexec case this identity mapping is done:
>
> - using the page table of the current task
>
> - for all addresses normally used by user space,
> i.e. 0x00000000-PAGE_OFFSET
>
> If kexec is used at a kernel crash to collect a core dump this
> means that we lose important information.
>
> This is what this patches does:
>
> * Actually turns off the MMU, which has been omitted by mistake
>
> * Sets up a more selective identity mapping
>
> * Restores the old mapping once the MMU is off
>
> Signed-off-by: Per Fransson <per.xx.fransson@stericsson.com>
> ---
> v2 changes:
>
> * now uses (modified versions of) the identity mapping functions in idmap.c
> as they look in 2.6.38-rc1. Some pud-level code has been added there in
> linux-next.
Thanks. As this been tested with ARMv4/v5 CPUs as well?
next prev parent reply other threads:[~2011-02-02 21:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 14:43 [PATCH v2] ARM: kexec: selective MMU identity mapping Per Fransson
2011-02-02 20:48 ` Nicolas Pitre
2011-02-02 21:09 ` Russell King - ARM Linux [this message]
2011-02-02 22:10 ` Nicolas Pitre
2011-02-02 22:19 ` Russell King - ARM Linux
2011-02-02 22:27 ` Nicolas Pitre
2011-02-02 22:47 ` Russell King - ARM Linux
2011-02-03 7:32 ` Mika Westerberg
2011-02-03 10:14 ` Per Fransson
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=20110202210925.GD31043@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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).