Hi,

Thanks for working on this

On Sat, Aug 02, 2014 at 04:06:09PM +0200, Luc Verhaegen wrote:
> +#define CONFIG_SYS_MEM_TOP_HIDE ((CONFIG_SUNXI_FB_SIZE + 0xFFF) & ~0xFFF)

I'm not too fond of this approach. I'd rather see this code generates
a reserved-memory node in the DT, as described here:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt

There's still a few patches pending that are not too far off and
should be merged soon to be able to use it at will:
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-July/272071.html

But that should provide Linux a way to not touch the memory at all,
while doing a proper memory allocation, and without having to cheat
like you're currently doing.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Attachment: signature.asc
Description: Digital signature

Reply via email to