]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Use correct method to calculate nomap region boundaries
authorHuacai Chen <chenhuacai@loongson.cn>
Fri, 22 Oct 2021 07:06:46 +0000 (15:06 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 5 Jan 2022 14:46:06 +0000 (14:46 +0000)
commit1f3009d4a0b377a8ac3e86e0c1142c75f554eda8
tree66e685bb878ee89d3be875aff736497b9be50322
parentf8a10e3a9e3bd4c7a29ba019eaea43d2e8cfb7f6
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: Huacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/r/20211022070646.41923-1-chenhuacai@loongson.cn
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/setup.c