public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] [U-boot]: Change FDT memory typpe from runtime data to acpi reclaim
@ 2019-04-11 18:39 Ilias Apalodimas
  2019-04-11 18:43 ` Ard Biesheuvel
  2019-04-11 19:34 ` Heinrich Schuchardt
  0 siblings, 2 replies; 17+ messages in thread
From: Ilias Apalodimas @ 2019-04-11 18:39 UTC (permalink / raw)
  To: u-boot

Following Ard's suggestion:
Runtime data sections are intended for data that is used by the runtime
services implementations.
Let's change they type to EFI_ACPI_RECLAIM_MEMORY

Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
---
 cmd/bootefi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index 3619a20e6433..b54181909aff 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -111,13 +111,13 @@ static efi_status_t copy_fdt(void **fdtp)
 	new_fdt_addr = (uintptr_t)map_sysmem(fdt_ram_start + 0x7f00000 +
 					     fdt_size, 0);
 	ret = efi_allocate_pages(EFI_ALLOCATE_MAX_ADDRESS,
-				 EFI_RUNTIME_SERVICES_DATA, fdt_pages,
+				 EFI_ACPI_RECLAIM_MEMORY, fdt_pages,
 				 &new_fdt_addr);
 	if (ret != EFI_SUCCESS) {
 		/* If we can't put it there, put it somewhere */
 		new_fdt_addr = (ulong)memalign(EFI_PAGE_SIZE, fdt_size);
 		ret = efi_allocate_pages(EFI_ALLOCATE_MAX_ADDRESS,
-					 EFI_RUNTIME_SERVICES_DATA, fdt_pages,
+					 EFI_ACPI_RECLAIM_MEMORY, fdt_pages,
 					 &new_fdt_addr);
 		if (ret != EFI_SUCCESS) {
 			printf("ERROR: Failed to reserve space for FDT\n");
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-04-12 19:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-11 18:39 [U-Boot] [PATCH] [U-boot]: Change FDT memory typpe from runtime data to acpi reclaim Ilias Apalodimas
2019-04-11 18:43 ` Ard Biesheuvel
2019-04-11 18:46   ` Ilias Apalodimas
2019-04-11 19:34 ` Heinrich Schuchardt
2019-04-11 19:41   ` Ilias Apalodimas
2019-04-11 19:59     ` Heinrich Schuchardt
2019-04-11 20:50       ` Ard Biesheuvel
2019-04-12 17:16         ` Heinrich Schuchardt
2019-04-12 17:24           ` Ard Biesheuvel
2019-04-12 17:44             ` Heinrich Schuchardt
2019-04-12 17:47               ` Ard Biesheuvel
2019-04-12 17:36           ` Ilias Apalodimas
2019-04-12 17:49             ` Heinrich Schuchardt
2019-04-11 19:50   ` Ard Biesheuvel
2019-04-11 20:08     ` Heinrich Schuchardt
2019-04-11 20:44       ` Ard Biesheuvel
2019-04-12 19:24       ` Leif Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox