Re: [PATCH v2] ARM: kexec: selective MMU identity mapping

2011-02-02 Thread Mika Westerberg
Hi, Few questions, see below. 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 t

Re: [PATCH v2] ARM: kexec: selective MMU identity mapping

2011-02-02 Thread Russell King - ARM Linux
On Wed, Feb 02, 2011 at 05:27:40PM -0500, Nicolas Pitre wrote: > On Wed, 2 Feb 2011, Russell King - ARM Linux wrote: > > > It's known to work on Assabet. It works on SA1100 because the kernel > > mapping is already a 1:1 mapping. > D'oh. > > > What setup_mm_for_reboot() is doing on Assabet thoug

Re: [PATCH v2] ARM: kexec: selective MMU identity mapping

2011-02-02 Thread Nicolas Pitre
On Wed, 2 Feb 2011, Russell King - ARM Linux wrote: > On Wed, Feb 02, 2011 at 05:10:37PM -0500, Nicolas Pitre wrote: > > On Wed, 2 Feb 2011, Russell King - ARM Linux wrote: > > > > > On Wed, Feb 02, 2011 at 03:43:29PM +0100, Per Fransson wrote: > > > > When restarting using the kernel kexec funct

Re: [PATCH v2] ARM: kexec: selective MMU identity mapping

2011-02-02 Thread Russell King - ARM Linux
On Wed, Feb 02, 2011 at 05:10:37PM -0500, Nicolas Pitre wrote: > On Wed, 2 Feb 2011, Russell King - ARM Linux wrote: > > > 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 d

Re: [PATCH v2] ARM: kexec: selective MMU identity mapping

2011-02-02 Thread Nicolas Pitre
On Wed, 2 Feb 2011, Russell King - ARM Linux wrote: > 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 resul

Re: [PATCH 0/2][concept RFC] x86: BIOS-save kernel log to disk upon panic

2011-02-02 Thread Ahmed S. Darwish
Hi, Quick note: the Internet has just returned back here after a full 5-day shutdown by the “authorities”. I will hopefully return back home on Saturday to continue working on this. thanks, ___ kexec mailing list kexec@lists.infradead.org http://lists.

Re: [PATCH v2] ARM: kexec: selective MMU identity mapping

2011-02-02 Thread Russell King - ARM Linux
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: >

Re: [PATCH v2] ARM: kexec: selective MMU identity mapping

2011-02-02 Thread Nicolas Pitre
On Wed, 2 Feb 2011, 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 t

[PATCH v2] ARM: kexec: selective MMU identity mapping

2011-02-02 Thread Per Fransson
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 normall