Re: [PATCH v2] arm: improve non-section-aligned low memory mapping

2015-05-07 Thread Min-Hua Chen
On Wed, May 06, 2015 at 11:32:49AM +0100, Russell King - ARM Linux wrote: > On Sun, Apr 26, 2015 at 04:47:08PM +0800, Min-Hua Chen wrote: > > @@ -1384,6 +1351,15 @@ static void __init map_lowmem(void) > > create_mapping(); > > } > > } > >

Re: [PATCH v2] arm: improve non-section-aligned low memory mapping

2015-05-07 Thread Min-Hua Chen
On Wed, May 06, 2015 at 11:32:49AM +0100, Russell King - ARM Linux wrote: On Sun, Apr 26, 2015 at 04:47:08PM +0800, Min-Hua Chen wrote: @@ -1384,6 +1351,15 @@ static void __init map_lowmem(void) create_mapping(map); } } + +

Re: [PATCH v2] arm: improve non-section-aligned low memory mapping

2015-05-06 Thread Russell King - ARM Linux
On Sun, Apr 26, 2015 at 04:47:08PM +0800, Min-Hua Chen wrote: > @@ -1384,6 +1351,15 @@ static void __init map_lowmem(void) > create_mapping(); > } > } > + > + /* > + * Find the first section-aligned memblock

Re: [PATCH v2] arm: improve non-section-aligned low memory mapping

2015-05-06 Thread Russell King - ARM Linux
On Sun, Apr 26, 2015 at 04:47:08PM +0800, Min-Hua Chen wrote: @@ -1384,6 +1351,15 @@ static void __init map_lowmem(void) create_mapping(map); } } + + /* + * Find the first section-aligned memblock and

[PATCH v2] arm: improve non-section-aligned low memory mapping

2015-04-26 Thread Min-Hua Chen
Fix space errors. In current design, the memblock.current_limit is set to a section-aligned value in sanity_check_meminfo(). However, the section-aligned memblock may become non-section-aligned after arm_memblock_init(). For example, the first section-aligned memblock is 0x-0x0100

[PATCH v2] arm: improve non-section-aligned low memory mapping

2015-04-26 Thread Min-Hua Chen
Fix space errors. In current design, the memblock.current_limit is set to a section-aligned value in sanity_check_meminfo(). However, the section-aligned memblock may become non-section-aligned after arm_memblock_init(). For example, the first section-aligned memblock is 0x-0x0100