[PATCH] ramoops appears geared to not support ARM
Russell King - ARM Linux
linux at arm.linux.org.uk
Sat Oct 29 08:53:42 EDT 2011
On Sat, Oct 29, 2011 at 02:42:42PM +0200, Marco Stornelli wrote:
> Ok, I understand, but other question: isn't there any way to reserve
> normal memory? Or at least, hasn't the mem kernel option any effect from
> that point of view?
mem= can be used to redefine the available memory to the kernel, but
then you have to have some way to define a region of the memory you've
excluded to the kernel to use for ramoops.
A platform can also use the memblock stuff to extract some memory
dynamically from the information passed from the firmware - by using
memblock_alloc + memblock_remove + memblock_free. The memblock_remove
call will take the memory out of the available memory to the kernel,
and thus will prevent it being mapped.
This must be done via the ->reserve callback in the ARM board/SoC
record (it can't be done later because the memory will have already
been mapped.)
More information about the linux-arm-kernel
mailing list