From: per.xx.fransson@stericsson.com (Per Fransson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/8] Initial implementation of kdump for ARM
Date: Thu, 8 Jul 2010 10:52:42 +0200 [thread overview]
Message-ID: <4C3591DA.8030902@stericsson.com> (raw)
In-Reply-To: <20100707072938.GQ25358@esdhcp04058.research.nokia.com>
On 07/07/2010 09:29 AM, Mika Westerberg wrote:
> On Tue, Jul 06, 2010 at 10:30:53AM +0200, ext Per Fransson wrote:
>>
>> Can't we set up the identity mapping for only the entry containing
>> relocate_new_kernel() and then add enough NOPs at the start of that routine to
>> cover all implementations? That way only one entry in the L1 table is
>> over-written while keeping the MMU handling code in the different
>> arch/arm/mm/proc-<cpu_or_arch>.S?
>
> Did you mean something like the patch at the end of this mail? It doesn't turn
> off the MMU but sets up the identity mapping for the control page only. I
> quickly tested it on our platform and it seems to work:
>
> crash> bt
...
> So we can at least access the user stack.
>
Yes, that's what I had in mind. A delay will have to be introduced at
the start of relocate_new_kernel as well. And we have to make sure that
it's not possible for this code to straddle two L1 page table entries,
which might be the case already, I don't know. Finally, the overwritten
entry needs to be stored somewhere before cleaning the caches.
> However, I'm not sure what is happening with these kdump patches. If they are
> going in at some point maybe we can do this stuff later on as separate patches
> or should post a new version of the patches?
>
I'm also interested in knowing whether there's a chance of these patches
going in soon.
Is the solution for saving the user-space MMU mapping we've sketched
here good enough? If yes, we might as well try to do it all in one go,
as far as I'm concerned. Maybe a new version of the patches is needed
anyway to fix the inconsistencies between CPUs with regards to the MMU?
On the other hand, if there's a chance of getting these patches in
quicker as they stand, it would be nice to seize the opportunity for
kdump/ARM to get a footing in mainline.
>> Also, couldn't the L1 page table entry in question be saved for
>> posterity in a variable inside the kernel before the table is modified,
>> together with another variable to hold information on the index in the
>> table the entry came from.
>
> Yeah, I think that we want to have full user-space mappings for post-mortem
> analysis.
>
> Regards,
> MW
>
>> From: Mika Westerberg<ext-mika.1.westerberg@nokia.com>
> Subject: [PATCH] ARM: kexec: make identity mapping for control page only
>
> With current implementation we setup 1:1 mapping for all user-space pages in
> order to softboot to a new kernel. This has a drawback that we cannot access
> those pages later on during post-mortem analysis.
>
> This patch changes kexec to setup identity mapping for only the control page
> (this takes 2 PMD entries) and leaves rest of the mappings intact.
>
next prev parent reply other threads:[~2010-07-08 8:52 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 6:54 [PATCH v2 0/8] Initial implementation of kdump for ARM Mika Westerberg
2010-05-05 6:54 ` [PATCH v2 1/8] arm: kdump: reserve memory for crashkernel Mika Westerberg
2010-05-05 6:54 ` [PATCH v2 2/8] arm: kdump: implement crash_setup_regs() Mika Westerberg
2010-05-05 6:54 ` [PATCH v2 3/8] arm: kdump: implement machine_crash_shutdown() Mika Westerberg
2010-05-05 6:54 ` [PATCH v2 4/8] arm: kdump: skip indirection page when crashing Mika Westerberg
2010-05-05 6:54 ` [PATCH v2 5/8] arm: kdump: implement copy_oldmem_page() Mika Westerberg
2010-05-05 6:54 ` [PATCH v2 6/8] arm: allow passing an ELF64 header to elf_check_arch() Mika Westerberg
2010-05-10 11:20 ` Russell King - ARM Linux
2010-05-10 12:09 ` Mika Westerberg
2010-05-10 12:21 ` Russell King - ARM Linux
2010-05-11 7:17 ` Mika Westerberg
2010-07-16 8:14 ` Mika Westerberg
2010-08-25 2:40 ` Lei Wen
2010-08-25 12:29 ` Mika Westerberg
2010-05-05 6:54 ` [PATCH v2 7/8] arm: kdump: add support for elfcorehdr= parameter Mika Westerberg
2010-05-05 6:54 ` [PATCH v2 8/8] arm: kdump: add CONFIG_CRASH_DUMP Kconfig option Mika Westerberg
2010-05-25 8:19 ` [PATCH v2 0/8] Initial implementation of kdump for ARM Mika Westerberg
2010-06-11 6:36 ` Mika Westerberg
2010-07-02 12:48 ` Per Fransson
2010-07-05 8:28 ` Mika Westerberg
2010-07-05 10:01 ` Per Fransson
2010-07-05 10:18 ` Russell King - ARM Linux
2010-07-05 10:34 ` Per Fransson
2010-07-05 11:31 ` Mika Westerberg
2010-07-05 12:04 ` Per Fransson
2010-07-05 13:55 ` Russell King - ARM Linux
2010-07-05 14:05 ` Per Fransson
2010-07-05 14:19 ` Russell King - ARM Linux
2010-07-05 15:37 ` Per Fransson
2010-07-05 16:08 ` Nicolas Pitre
2010-07-05 18:14 ` Russell King - ARM Linux
2010-07-06 8:30 ` Per Fransson
2010-07-07 7:29 ` Mika Westerberg
2010-07-08 8:52 ` Per Fransson [this message]
2010-07-12 8:20 ` Mika Westerberg
2010-07-09 3:38 ` Simon Horman
2010-07-09 8:19 ` 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=4C3591DA.8030902@stericsson.com \
--to=per.xx.fransson@stericsson.com \
--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).