Skip to content

Commit 99a1e28

Browse files
Chester Lingregkh
authored andcommitted
ARM: 8904/1: skip nomap memblocks while finding the lowmem/highmem boundary
commit 1d31999 upstream. adjust_lowmem_bounds() checks every memblocks in order to find the boundary between lowmem and highmem. However some memblocks could be marked as NOMAP so they are not used by kernel, which should be skipped while calculating the boundary. Signed-off-by: Chester Lin <clin@suse.com> Reviewed-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1a7bee1 commit 99a1e28

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/arm/mm/mmu.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,9 @@ void __init adjust_lowmem_bounds(void)
11971197
phys_addr_t block_start = reg->base;
11981198
phys_addr_t block_end = reg->base + reg->size;
11991199

1200+
if (memblock_is_nomap(reg))
1201+
continue;
1202+
12001203
if (reg->base < vmalloc_limit) {
12011204
if (block_end > lowmem_limit)
12021205
/*

0 commit comments

Comments
 (0)