|
@@ -32,6 +32,7 @@
|
|
|
#include <linux/of_fdt.h>
|
|
|
#include <linux/dma-mapping.h>
|
|
|
#include <linux/dma-contiguous.h>
|
|
|
+#include <linux/efi.h>
|
|
|
|
|
|
#include <asm/fixmap.h>
|
|
|
#include <asm/sections.h>
|
|
@@ -148,7 +149,8 @@ void __init arm64_memblock_init(void)
|
|
|
memblock_reserve(__virt_to_phys(initrd_start), initrd_end - initrd_start);
|
|
|
#endif
|
|
|
|
|
|
- early_init_fdt_scan_reserved_mem();
|
|
|
+ if (!efi_enabled(EFI_MEMMAP))
|
|
|
+ early_init_fdt_scan_reserved_mem();
|
|
|
|
|
|
/* 4GB maximum for 32-bit only capable devices */
|
|
|
if (IS_ENABLED(CONFIG_ZONE_DMA))
|