Skip to contentSkip to conversation

rpi: use the newly-added RPI_EFI_NR_SPIN_PAGES

PATCH New kevans at FreeBSD.org 2 participants 3 messages Feb 26, 2020 – May 13, 2020 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 rpi: use the newly-added RPI_EFI_NR_SPIN_PAGES

From: Kyle Evans <[email protected]>

Some systems may use a slightly larger stub to do PSCI for booting the RPi family. The number of pages has been made configurable so that operating systems building U-Boot for use in these kinds of environments can reserve more memory in the EFI memory map.

---
 board/raspberrypi/rpi/rpi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/raspberrypi/rpi/rpi.c +2 -1
index e367ba3092..0206a093d4 100644
@@ -489,7 +489,8 @@ int ft_board_setup(void *blob, bd_t *bd)
 
 #ifdef CONFIG_EFI_LOADER
 	/* Reserve the spin table */
-	efi_add_memory_map(0, 1, EFI_RESERVED_MEMORY_TYPE, 0);
+	efi_add_memory_map(0, CONFIG_RPI_EFI_NR_SPIN_PAGES,
+			   EFI_RESERVED_MEMORY_TYPE, 0);
 #endif
 
 	return 0;
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 rpi: use the newly-added RPI_EFI_NR_SPIN_PAGES

Quoted 9 lines · kevans at FreeBSD.org

From: Kyle Evans <[email protected]>

Some systems may use a slightly larger stub to do PSCI for booting the RPi family. The number of pages has been made configurable so that operating systems building U-Boot for use in these kinds of environments can reserve more memory in the EFI memory map.

---

Queued now for rpi-next

Sorry for the far to long delay

Quoted 18 lines
 board/raspberrypi/rpi/rpi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/raspberrypi/rpi/rpi.c +2 -1
index e367ba3092..0206a093d4 100644
@@ -489,7 +489,8 @@ int ft_board_setup(void *blob, bd_t *bd)
 
 #ifdef CONFIG_EFI_LOADER
 	/* Reserve the spin table */
-	efi_add_memory_map(0, 1, EFI_RESERVED_MEMORY_TYPE, 0);
+	efi_add_memory_map(0, CONFIG_RPI_EFI_NR_SPIN_PAGES,
+			   EFI_RESERVED_MEMORY_TYPE, 0);
 #endif
 
 	return 0;
author
#2 lore raw

PATCH 2/2 rpi: use the newly-added RPI_EFI_NR_SPIN_PAGES

Quoted 9 lines · Matthias Brugger
Quoted 7 lines · kevans at FreeBSD.org

From: Kyle Evans <[email protected]>

Some systems may use a slightly larger stub to do PSCI for booting the RPi family. The number of pages has been made configurable so that operating systems building U-Boot for use in these kinds of environments can reserve more memory in the EFI memory map.

Quoted 7 lines
Quoted 2 lines

---

Queued now for rpi-next

Sorry for the far to long delay

No worries, thanks! =-)