ARM: shmobile: Yet another SMP series
[PATCH 01/05] ARM: shmobile: Introduce shmobile_smp_cpu_disable()
[PATCH 02/05] ARM: shmobile: Use shmobile_smp_cpu_disable() on sh73a0
[PATCH 03/05] ARM: shmobile: Remove unused shmobile_smp_init_cpus()
[PATCH 04/05] ARM: shmobile: Expose shmobile_invalidate_start()
[PATCH 05/05] ARM: shmobile: Introduce shmobile_boot_size
This series cleans up the existing SMP code and introduces various new SMP
functions for mach-shmobile. The new functions are partially used by existing
SMP support code, but are also consumed by upcoming SMP support patches.
Signed-off-by: Magnus Damm <redacted>
---
Written against renesas.git renesas-devel-20130806v4
arch/arm/mach-shmobile/headsmp.S | 3 +++
arch/arm/mach-shmobile/include/mach/common.h | 4 +++-
arch/arm/mach-shmobile/platsmp.c | 22 +++++++---------------
arch/arm/mach-shmobile/smp-sh73a0.c | 9 +--------
4 files changed, 14 insertions(+), 24 deletions(-)
From: Magnus Damm <redacted>
Introduce the shared CPU Hotplug function shmobile_smp_cpu_disable()
for mach-shmobile. It is useful for the case when all CPUs may be
hotplugged, including CPU 0.
Signed-off-by: Magnus Damm <redacted>
---
arch/arm/mach-shmobile/include/mach/common.h | 1 +
arch/arm/mach-shmobile/platsmp.c | 7 +++++++
2 files changed, 8 insertions(+)
@@ -17,6 +17,7 @@ extern unsigned long shmobile_smp_arg[];externunsignedlongshmobile_smp_mpidr[];externvoidshmobile_smp_hook(unsignedintcpu,unsignedlongfn,unsignedlongarg);+externintshmobile_smp_cpu_disable(unsignedintcpu);externvoidshmobile_boot_scu(void);externvoidshmobile_smp_scu_prepare_cpus(unsignedintmax_cpus);externintshmobile_smp_scu_boot_secondary(unsignedintcpu,---0009/arch/arm/mach-shmobile/platsmp.c+++work/arch/arm/mach-shmobile/platsmp.c2013-07-2922:19:29.000000000+0900
@@ -40,3 +40,10 @@ void shmobile_smp_hook(unsigned int cpu,shmobile_smp_arg[cpu]=arg;flush_cache_all();}++#ifdef CONFIG_HOTPLUG_CPU+intshmobile_smp_cpu_disable(unsignedintcpu)+{+return0;/* Hotplug of any CPU is supported */+}+#endif
From: Magnus Damm <redacted>
Use shmobile_smp_cpu_disable() on sh73a0 since it
allows CPU Hotplug of any CPU.
Signed-off-by: Magnus Damm <redacted>
---
arch/arm/mach-shmobile/smp-sh73a0.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
From: Magnus Damm <redacted>
Remove shmobile_smp_init_cpus() since all SMP platforms in
mach-shmobile now rely on DT for CPU core description instead
of for instance determining number of cores from the SCU.
Signed-off-by: Magnus Damm <redacted>
---
arch/arm/mach-shmobile/include/mach/common.h | 1 -
arch/arm/mach-shmobile/platsmp.c | 15 ---------------
2 files changed, 16 deletions(-)
From: Magnus Damm <redacted>
Expose shmobile_invalidate_start() in common.h for
mach-shmobile. This function will be used for boot of
secondary processors on future non-SCU SMP platforms.
Signed-off-by: Magnus Damm <redacted>
---
arch/arm/mach-shmobile/include/mach/common.h | 1 +
1 file changed, 1 insertion(+)
From: Magnus Damm <redacted>
Introduce shmobile_boot_size that can be used by
future SMP code to determine the size of the boot
code that needs to be copied to internal SRAM.
Signed-off-by: Magnus Damm <redacted>
---
arch/arm/mach-shmobile/headsmp.S | 3 +++
arch/arm/mach-shmobile/include/mach/common.h | 1 +
2 files changed, 4 insertions(+)
On Thu, Aug 08, 2013 at 07:13:21AM +0900, Magnus Damm wrote:
ARM: shmobile: Yet another SMP series
[PATCH 01/05] ARM: shmobile: Introduce shmobile_smp_cpu_disable()
[PATCH 02/05] ARM: shmobile: Use shmobile_smp_cpu_disable() on sh73a0
[PATCH 03/05] ARM: shmobile: Remove unused shmobile_smp_init_cpus()
[PATCH 04/05] ARM: shmobile: Expose shmobile_invalidate_start()
[PATCH 05/05] ARM: shmobile: Introduce shmobile_boot_size
This series cleans up the existing SMP code and introduces various new SMP
functions for mach-shmobile. The new functions are partially used by existing
SMP support code, but are also consumed by upcoming SMP support patches.
Signed-off-by: Magnus Damm <redacted>
Thanks Magnus,
I plan to queue this up in the smp branch which will most likely occur
tomorrow.
On Wed, Aug 21, 2013 at 05:59:49PM +0900, Simon Horman wrote:
On Thu, Aug 08, 2013 at 07:13:21AM +0900, Magnus Damm wrote:
quoted
ARM: shmobile: Yet another SMP series
[PATCH 01/05] ARM: shmobile: Introduce shmobile_smp_cpu_disable()
[PATCH 02/05] ARM: shmobile: Use shmobile_smp_cpu_disable() on sh73a0
[PATCH 03/05] ARM: shmobile: Remove unused shmobile_smp_init_cpus()
[PATCH 04/05] ARM: shmobile: Expose shmobile_invalidate_start()
[PATCH 05/05] ARM: shmobile: Introduce shmobile_boot_size
This series cleans up the existing SMP code and introduces various new SMP
functions for mach-shmobile. The new functions are partially used by existing
SMP support code, but are also consumed by upcoming SMP support patches.
Signed-off-by: Magnus Damm <redacted>
Thanks Magnus,
I plan to queue this up in the smp branch which will most likely occur
tomorrow.