Skip to content

Commit e02f144

Browse files
chesterlintwgregkh
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 046f0fc commit e02f144

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm/mm/mmu.c

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

1198+
if (memblock_is_nomap(reg))
1199+
continue;
1200+
11981201
if (reg->base < vmalloc_limit) {
11991202
if (block_end > lowmem_limit)
12001203
/*

0 commit comments

Comments
 (0)