summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/efi.c
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2014-07-28 20:03:03 +0200
committerWill Deacon <will.deacon@arm.com>2014-08-19 21:22:03 +0200
commit86c8b27a01cf6c16fc159ade223cb2ccc70dc4b5 (patch)
tree30dfe5c331c57934c9c534ed6b64e31e95b9ae5e /arch/arm64/kernel/efi.c
parentarm64: configs: Enable X-Gene SATA and ethernet in defconfig (diff)
downloadlinux-86c8b27a01cf6c16fc159ade223cb2ccc70dc4b5.tar.xz
linux-86c8b27a01cf6c16fc159ade223cb2ccc70dc4b5.zip
arm64: ignore DT memreserve entries when booting in UEFI mode
UEFI provides its own method for marking regions to reserve, via the memory map which is also used to initialise memblock. So when using the UEFI memory map, ignore any memreserve entries present in the DT. Reported-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/efi.c')
-rw-r--r--arch/arm64/kernel/efi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c
index e72f3100958f..24f0c6fb61d8 100644
--- a/arch/arm64/kernel/efi.c
+++ b/arch/arm64/kernel/efi.c
@@ -188,6 +188,8 @@ static __init void reserve_regions(void)
if (uefi_debug)
pr_cont("\n");
}
+
+ set_bit(EFI_MEMMAP, &efi.flags);
}