Skip to content
Commit daa149dd authored by Huacai Chen's avatar Huacai Chen Committed by Catalin Marinas
Browse files

arm64: Use correct method to calculate nomap region boundaries



Nomap regions are treated as "reserved". When region boundaries are not
page aligned, we usually increase the "reserved" regions rather than
decrease them. So, we should use memblock_region_reserved_base_pfn()/
memblock_region_reserved_end_pfn() instead of memblock_region_memory_
base_pfn()/memblock_region_memory_base_pfn() to calculate boundaries.

Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/r/20211022070646.41923-1-chenhuacai@loongson.cn


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 89d30b11
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment