Skip to contentSkip to conversation

arm64: spin-table: add more information in Kconfig help

PATCH New Masahiro Yamada 2 participants 2 messages Jan 20, 2017 – Jan 28, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: spin-table: add more information in Kconfig help

This feature seems to be sometimes misunderstood. The intention is:

[1] Bring the slaves into the U-Boot proper image, not SPL (unless you have a special reason to do otherwise).

[2] The operation must be done in a board (SoC) specific manner since how to wake the slaves from the Boot ROM is SoC specific.

[3] The slaves must enter U-Boot proper after U-Boot relocates itself because the "cpu-release-addr" property points to the relocated memory area.

[2] is already explained in the help. We can make [1] even clearer by mentioning "U-Boot proper" instead of "U-Boot". [3] is missing, so I am adding it to the list. Instead, "before the master CPU jumps to the kernel" is a matter of course, so removed.

---

Changes in v2:
- Remove a trivial explanation, and rephrase

 arch/arm/cpu/armv8/Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/Kconfig +4 -2
index 22dce88..fcc387c 100644
@@ -12,8 +12,10 @@ config ARMV8_SPIN_TABLE
 	  To use this feature, you must do:
 	    - Specify enable-method = "spin-table" in each CPU node in the
 	      Device Tree you are using to boot the kernel
-	    - Let secondary CPUs in U-Boot (in a board specific manner)
-	      before the master CPU jumps to the kernel
+	    - Bring secondary CPUs into U-Boot proper in a board specific
+	      manner.  This must be done *after* relocation.  Otherwise, the
+	      secondary CPUs will spin in unprotected memory area because the
+	      master CPU protects the relocated spin code.
 
 	  U-Boot automatically does:
 	    - Set "cpu-release-addr" property of each CPU node
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 arm64: spin-table: add more information in Kconfig help

Quoted 12 lines · Masahiro Yamada

This feature seems to be sometimes misunderstood. The intention is:

[1] Bring the slaves into the U-Boot proper image, not SPL (unless you have a special reason to do otherwise).

[2] The operation must be done in a board (SoC) specific manner since how to wake the slaves from the Boot ROM is SoC specific.

[3] The slaves must enter U-Boot proper after U-Boot relocates itself because the "cpu-release-addr" property points to the relocated memory area.

Quoted 6 lines

[2] is already explained in the help. We can make [1] even clearer by mentioning "U-Boot proper" instead of "U-Boot". [3] is missing, so I am adding it to the list. Instead, "before the master CPU jumps to the kernel" is a matter of course, so removed.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170128/27a6c922/attachment.sig>