Skip to contentSkip to conversation

ARM: Actions Semi S500 SMP cleanups

PATCH In review Andreas Färber 1 participant 4 messages Sep 5, 2017 – Sep 20, 2017

Subsystems (3)
lore
Share & tools
lore

Andreas Färber

author maintainer
#0 lore raw

v2 cover ARM: Actions Semi S500 SMP cleanups

Hello,

This mini-series further cleans up the SMP code for Actions Semi S500 SoC.

@David, can you please reply with an Acked-by for the second patch? Thanks!

Work branch for testing:
https://github.com/afaerber/linux/commits/bg96-next

Have a lot of fun!

Cheers,
Andreas

v1 -> v2:
* Prepended __pa_symbol cleanup (Florian)

Cc David Liu <[email protected]>
Cc Florian Fainelli <[email protected]>

Andreas F?rber (2):
ARM: owl: smp: Use __pa_symbol()
ARM: owl: smp: Drop owl_secondary_boot()

 arch/arm/mach-actions/Makefile  |  4 +---
 arch/arm/mach-actions/headsmp.S | 52 -----------------------------------------
 arch/arm/mach-actions/platsmp.c |  2 +-
 3 files changed, 2 insertions(+), 56 deletions(-)
 delete mode 100644 arch/arm/mach-actions/headsmp.S
Signature · 1 line
2.13.5
author maintainer
#1 lore raw

PATCH v2 1/2 ARM: owl: smp: Use __pa_symbol()

Replace an occurrence of virt_to_phys() with __pa_symbol() macro.

See 64fc2a947a9873700929ec0ef02b4654a04e0476 ("ARM: 8641/1: treewide:
Replace uses of virt_to_phys with __pa_symbol").

Fixes 172067e0bc87 ("ARM: owl: Implement CPU enable-method for S500")

---
v1 -> v2: New

 arch/arm/mach-actions/platsmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-actions/platsmp.c +1 -1
index 12a9e331b432..7238926ab015 100644
@@ -71,7 +71,7 @@ static int s500_wakeup_secondary(unsigned int cpu)
 	/* wait for CPUx to run to WFE instruction */
 	udelay(200);
 
-	writel(virt_to_phys(owl_secondary_startup),
+	writel(__pa_symbol(owl_secondary_startup),
 	       timer_base_addr + OWL_CPU1_ADDR + (cpu - 1) * 4);
 	writel(OWL_CPUx_FLAG_BOOT,
 	       timer_base_addr + OWL_CPU1_FLAG + (cpu - 1) * 4);
Signature · 1 line
2.13.5
author maintainer
#2 lore raw

PATCH v2 2/2 ARM: owl: smp: Drop owl_secondary_boot()

In reply to Andreas Färber

Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 simplified the S500 SMP code by removing a loop for pen_release in owl_secondary_boot().

Since then it is only calling owl_v7_invalidate_l1() before branching to secondary_startup().

The owl_v7_invalidate_l1() assembler function is superfluous, too. Therefore drop owl_secondary_boot() and use secondary_boot() directly.

Fixes 18cfd9429d8a ("ARM: owl: smp: Drop bogus holding pen")
Cc David Liu <[email protected]>

---
v1 -> v2:
* Rebased onto __pa_symbol()
* Tweaked commit message

 arch/arm/mach-actions/Makefile  |  4 +---
 arch/arm/mach-actions/headsmp.S | 52 -----------------------------------------
 arch/arm/mach-actions/platsmp.c |  2 +-
 3 files changed, 2 insertions(+), 56 deletions(-)
 delete mode 100644 arch/arm/mach-actions/headsmp.S
arch/arm/mach-actions/Makefile +1 -3
index c0f116241da7..13831037d8cd 100644
@@ -1,3 +1 @@
-obj-${CONFIG_SMP} += platsmp.o headsmp.o
-
-AFLAGS_headsmp.o := -Wa,-march=armv7-a
+obj-${CONFIG_SMP} += platsmp.o
arch/arm/mach-actions/headsmp.S deleted +0 -52

52 lines not on this page · raw message

arch/arm/mach-actions/platsmp.c +1 -1
index 7238926ab015..3efaa10efc43 100644
@@ -71,7 +71,7 @@ static int s500_wakeup_secondary(unsigned int cpu)
 	/* wait for CPUx to run to WFE instruction */
 	udelay(200);
 
-	writel(__pa_symbol(owl_secondary_startup),
+	writel(__pa_symbol(secondary_startup),
 	       timer_base_addr + OWL_CPU1_ADDR + (cpu - 1) * 4);
 	writel(OWL_CPUx_FLAG_BOOT,
 	       timer_base_addr + OWL_CPU1_FLAG + (cpu - 1) * 4);
Signature · 1 line
2.13.5
author maintainer
#3 lore raw
In reply to Andreas Färber

Am 05.09.2017 um 23:19 schrieb Andreas F?rber:

Quoted 17 lines

Hello,

This mini-series further cleans up the SMP code for Actions Semi S500 SoC.

@David, can you please reply with an Acked-by for the second patch? Thanks!

Work branch for testing:
https://github.com/afaerber/linux/commits/bg96-next

Have a lot of fun!

Cheers,
Andreas

v1 -> v2:
* Prepended __pa_symbol cleanup (Florian)

Quoted 6 lines
Cc David Liu <[email protected]>
Cc Florian Fainelli <[email protected]>

Andreas F?rber (2):
ARM: owl: smp: Use __pa_symbol()
ARM: owl: smp: Drop owl_secondary_boot()

No further review from David or Florian on v1 or this v2, so applied to v4.15/arm now:

https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-actions.git/log/?h=v4.15/arm

Regards,
Andreas

Quoted 5 lines
 arch/arm/mach-actions/Makefile  |  4 +---
 arch/arm/mach-actions/headsmp.S | 52 -----------------------------------------
 arch/arm/mach-actions/platsmp.c |  2 +-
 3 files changed, 2 insertions(+), 56 deletions(-)
 delete mode 100644 arch/arm/mach-actions/headsmp.S
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)