Skip to contentSkip to conversation

rpi: add an RPi Kconfig to configure size of initial page reservation

PATCH New kevans at FreeBSD.org 2 participants 4 messages Feb 26, 2020 – May 13, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rpi: add an RPi Kconfig to configure size of initial page reservation

From: Kyle Evans <[email protected]>

While the nearly-universal default for the Raspberry Pi family is to use spin tables and the spin table implementation provided by the Raspberry Pi Foundation, FreeBSD and others may use a PSCI implementation instead.

Accommodate these setups by allowing them to configure for more than one page to be reserved in the initial reservation. The default reservation remains as one page.

---
 arch/arm/mach-bcm283x/Kconfig |  2 ++
 board/raspberrypi/rpi/Kconfig | 10 ++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 board/raspberrypi/rpi/Kconfig
arch/arm/mach-bcm283x/Kconfig +2 -0
index 00419bf254..e6eb904e7f 100644
@@ -209,4 +209,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "rpi"
 
+source "board/raspberrypi/rpi/Kconfig"
+
 endmenu
board/raspberrypi/rpi/Kconfig new file +10 -0
new file mode 100644
index 0000000000..e40088fde1
@@ -0,0 +1,10 @@
+if SYS_BOARD = "rpi"
+
+config RPI_EFI_NR_SPIN_PAGES
+	int "Spin table page count"
+	default 1
+	help
+	  Number of pages to reserve starting at page 0 for spin tables in the EFI
+	  memory map
+
+endif
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 rpi: Kconfig option for initial page reservation

From: Kyle Evans <[email protected]>

While the nearly-universal default for the Raspberry Pi family is to use spin tables and the spin table implementation provided by the Raspberry Pi Foundation, FreeBSD and others may use a PSCI implementation instead.

Accommodate these setups by allowing them to configure for more than one page to be reserved in the initial reservation. The default reservation remains as one page.

---
 arch/arm/mach-bcm283x/Kconfig |  2 ++
 board/raspberrypi/rpi/Kconfig | 10 ++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 board/raspberrypi/rpi/Kconfig
arch/arm/mach-bcm283x/Kconfig +2 -0
index 00419bf254..e6eb904e7f 100644
@@ -209,4 +209,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "rpi"
 
+source "board/raspberrypi/rpi/Kconfig"
+
 endmenu
board/raspberrypi/rpi/Kconfig new file +10 -0
new file mode 100644
index 0000000000..e40088fde1
@@ -0,0 +1,10 @@
+if SYS_BOARD = "rpi"
+
+config RPI_EFI_NR_SPIN_PAGES
+	int "Spin table page count"
+	default 1
+	help
+	  Number of pages to reserve starting at page 0 for spin tables in the EFI
+	  memory map
+
+endif
Signature · 1 line
2.25.1
#2 lore raw

PATCH 1/2 rpi: Kconfig option for initial page reservation

Quoted 11 lines · kevans at FreeBSD.org

From: Kyle Evans <[email protected]>

While the nearly-universal default for the Raspberry Pi family is to use spin tables and the spin table implementation provided by the Raspberry Pi Foundation, FreeBSD and others may use a PSCI implementation instead.

Accommodate these setups by allowing them to configure for more than one page to be reserved in the initial reservation. The default reservation remains as one page.

Queued now for rpi-next.

Sorry for the long delay.

Quoted 34 lines
---
 arch/arm/mach-bcm283x/Kconfig |  2 ++
 board/raspberrypi/rpi/Kconfig | 10 ++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 board/raspberrypi/rpi/Kconfig
arch/arm/mach-bcm283x/Kconfig +2 -0
index 00419bf254..e6eb904e7f 100644
@@ -209,4 +209,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "rpi"
 
+source "board/raspberrypi/rpi/Kconfig"
+
 endmenu
board/raspberrypi/rpi/Kconfig new file +10 -0
new file mode 100644
index 0000000000..e40088fde1
@@ -0,0 +1,10 @@
+if SYS_BOARD = "rpi"
+
+config RPI_EFI_NR_SPIN_PAGES
+	int "Spin table page count"
+	default 1
+	help
+	  Number of pages to reserve starting at page 0 for spin tables in the EFI
+	  memory map
+
+endif
author
#3 lore raw

PATCH 1/2 rpi: add an RPi Kconfig to configure size of initial page reservation

In reply to kevans at FreeBSD.org
Quoted 11 lines · On Wed, Feb 26, 2020 at 3:38 PM <[email protected]> wrote:

From: Kyle Evans <[email protected]>

While the nearly-universal default for the Raspberry Pi family is to use spin tables and the spin table implementation provided by the Raspberry Pi Foundation, FreeBSD and others may use a PSCI implementation instead.

Accommodate these setups by allowing them to configure for more than one page to be reserved in the initial reservation. The default reservation remains as one page.

Apologies... this patch 1/2 was a mis-fire, to be replaced by "[PATCH 1/2] rpi: Kconfig option for initial page reservation" -- perhaps time to step away from the terminal for the day.