[PATCH 1/2] ARM: mmu: fix the hang when we steal a section unaligned size memory

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Jun 19 04:28:40 EDT 2013


On Wed, Jun 19, 2013 at 10:36:06AM +0800, Huang Shijie wrote:
> 于 2013年06月19日 00:52, Russell King - ARM Linux 写道:
>> This is why I've always said - if you steal memory from memblock, it
>> _must_  be aligned to 1MB (the section size) to avoid this.  Not only
>
> firstly, it's a little waste to _must_ steal 1M for some board with less  
> memory such as 512M memory;

You're complaining about 512M memory?  Christ.  Some of my machines
which I run here have as little as 32M of memory!  1M is nothing in
512M.

> secondly, if we do not support the section unaligned mapping, we should  
> remove the alloc_init_pte() in alloc_init_pmd(),
> add a comment to tell that we do not support the section unaligned mapping.

No, because that breaks a whole load of other non-memory mappings.



More information about the linux-arm-kernel mailing list