[PATCH 2/2] ARM: don't depend on vmalloc_start
Mika Westerberg
ext-mika.1.westerberg at nokia.com
Fri Nov 5 04:03:37 EDT 2010
On Fri, Nov 05, 2010 at 04:41:34PM +0900, ext Masayuki Igawa wrote:
> On Fri, 5 Nov 2010 08:02:26 +0200, Mika Westerberg wrote:
> >
> > Normal makedumpfile run (at least on ARM) only does V->P translation on kernel
> > directly mapped memory so I considered this to save few clock cycles since that
> > translation is trivial compared to the one using page tables.
>
> Unfortunately, I'm not good at ARM. So I have a few questions.
> In (all) ARM, is all the kernel memory directly mapped?
Not all -- vmalloc() memory is not directly mapped.
> The result of vtop_arm()'s translation is always equals __pa()'s in ARM?
vtop_arm() also handles this vmalloc() memory as it uses page tables to perform
the translation.
> > Well my intention was to leave user a option to use '--vtop' for all the kernel
> > memory (not just for kernel directly mapped memory). IMO, it is useful to have
> > such option available for debugging etc. Is it ok for you?
>
> IIUC, is there the kernel memory which isn't directly mapped?
Yes, see above.
> If so, the memory(which isn't directly mapped) is not supported by your patch?
As makedumpfile uses only values from VMCOREINFO which are in kernel direct
mapped memory the patch should work (I've tested this).
For example ppc64 does the same, it only allows V->P translation on kernel
direct mapped memory.
Regards,
MW
More information about the kexec
mailing list