ARM: Actions Semi S500 SMP cleanups
Subsystems (3)
Andreas Färber
maintainerv2 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)
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
Andreas Färber
maintainerPATCH 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").
---
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
@@ -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
Andreas Färber
maintainerPATCH v2 2/2 ARM: owl: smp: Drop owl_secondary_boot()
In reply to Andreas FärberCommit 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.
---
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
@@ -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
@@ -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
Andreas Färber
maintainerAm 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-nextHave a lot of fun!
Cheers,
Andreasv1 -> v2:
* Prepended__pa_symbolcleanup (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: Dropowl_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)