Skip to contentSkip to conversation

Add SMP support for the Allwinner A31 SoCs

PATCH In review Maxime Ripard 3 participants 11 messages Nov 3, 2013 – Dec 16, 2013

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

cover Add SMP support for the Allwinner A31 SoCs

Hi everyone,

The Allwinner A31 is a quad-Cortex-A7 SoC. This patchset adds support for the bringup of the others CPUs at startup.

Thanks,
Maxime

Maxime Ripard (2):
ARM: sun6i: dt: Add IP needed to bring up the additional cores
ARM: sun6i: Add SMP support for the Allwinner A31

 arch/arm/boot/dts/sun6i-a31.dtsi |  10 ++++
 arch/arm/mach-sunxi/Makefile     |   1 +
 arch/arm/mach-sunxi/common.h     |  19 +++++++
 arch/arm/mach-sunxi/headsmp.S    |  11 ++++
 arch/arm/mach-sunxi/platsmp.c    | 115 +++++++++++++++++++++++++++++++++++++++
 arch/arm/mach-sunxi/sunxi.c      |   3 +
 6 files changed, 159 insertions(+)
 create mode 100644 arch/arm/mach-sunxi/common.h
 create mode 100644 arch/arm/mach-sunxi/headsmp.S
 create mode 100644 arch/arm/mach-sunxi/platsmp.c
Signature · 1 line
1.8.4
#1 lore raw

PATCH 1/2 ARM: sun6i: dt: Add IP needed to bring up the additional cores

Add the PRCM and CPU configuration units needed for SMP in the A31 DTSI.

---
 arch/arm/boot/dts/sun6i-a31.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/sun6i-a31.dtsi +10 -0
index c1751a64889a..a0646877f5f2 100644
@@ -295,5 +295,15 @@
 			#interrupt-cells = <3>;
 			interrupts = <1 9 0xf04>;
 		};
+
+		cpucfg at 01f01c00 {
+			compatible = "allwinner,sun6i-a31-cpuconfig";
+			reg = <0x01f01c00 0x300>;
+		};
+
+		prcm at 01f01c00 {
+			compatible = "allwinner,sun6i-a31-prcm";
+			reg = <0x01f01400 0x200>;
+		};
 	};
 };
Signature · 1 line
1.8.4
#2 lore raw

PATCH 2/2 ARM: sun6i: Add SMP support for the Allwinner A31

In reply to Maxime Ripard

The A31 is a quad Cortex-A7. Add the logic to use the IPs used to control the CPU configuration and the CPU power so that we can bring up secondary CPUs at boot.

---
 arch/arm/mach-sunxi/Makefile  |   1 +
 arch/arm/mach-sunxi/common.h  |  19 +++++++
 arch/arm/mach-sunxi/headsmp.S |  11 ++++
 arch/arm/mach-sunxi/platsmp.c | 115 ++++++++++++++++++++++++++++++++++++++++++
 arch/arm/mach-sunxi/sunxi.c   |   3 ++
 5 files changed, 149 insertions(+)
 create mode 100644 arch/arm/mach-sunxi/common.h
 create mode 100644 arch/arm/mach-sunxi/headsmp.S
 create mode 100644 arch/arm/mach-sunxi/platsmp.c
arch/arm/mach-sunxi/Makefile +1 -0
index 93bebfc3ff9f..d9397202d6ec 100644
@@ -1 +1,2 @@
 obj-$(CONFIG_ARCH_SUNXI) += sunxi.o
+obj-$(CONFIG_SMP) += platsmp.o headsmp.o
arch/arm/mach-sunxi/common.h new file +19 -0
new file mode 100644
index 000000000000..9e5ac4756cbb
@@ -0,0 +1,19 @@
+/*
+ * Core functions for Allwinner SoCs
+ *
+ * Copyright (C) 2013 Maxime Ripard
+ *
+ * Maxime Ripard <[email protected]>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2.  This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#ifndef __ARCH_SUNXI_COMMON_H_
+#define __ARCH_SUNXI_COMMON_H_
+
+void sun6i_secondary_startup(void);
+extern struct smp_operations sun6i_smp_ops;
+
+#endif /* __ARCH_SUNXI_COMMON_H_ */
arch/arm/mach-sunxi/headsmp.S new file +11 -0
new file mode 100644
index 000000000000..f5ff05e0e6a3
@@ -0,0 +1,11 @@
+#include <linux/linkage.h>
+#include <linux/init.h>
+
+        .section ".text.head", "ax"
+	__CPUINIT
+
+ENTRY(sun6i_secondary_startup)
+	msr	cpsr_fsxc, #0xd3
+	b	secondary_startup
+ENDPROC(sun6i_secondary_startup)
+
arch/arm/mach-sunxi/platsmp.c new file +115 -0

115 lines not on this page · raw message

arch/arm/mach-sunxi/sunxi.c +3 -0
index f184f6c2fa33..b2e570253a8f 100644
@@ -26,6 +26,8 @@
 #include <asm/mach/map.h>
 #include <asm/system_misc.h>
 
+#include "common.h"
+
 #define SUN4I_WATCHDOG_CTRL_REG		0x00
 #define SUN4I_WATCHDOG_CTRL_RESTART		BIT(0)
 #define SUN4I_WATCHDOG_MODE_REG		0x04
@@ -147,6 +149,7 @@ DT_MACHINE_START(SUN6I_DT, "Allwinner sun6i (A31) Family")
 	.init_time	= sunxi_timer_init,
 	.dt_compat	= sun6i_board_dt_compat,
 	.restart	= sun6i_restart,
+	.smp		= smp_ops(sun6i_smp_ops),
 MACHINE_END
 
 static const char * const sun7i_board_dt_compat[] = {
Signature · 1 line
1.8.4
#3 lore raw

Re: [linux-sunxi] [PATCH 2/2] ARM: sun6i: Add SMP support for the Allwinner A31

Not a comment on the patch, or even A31, but a question about how the SMP boot process works on sunxi generally...

arch/arm/mach-sunxi/platsmp.c line 77

Quoted 7 lines · Maxime Ripard

The A31 is a quad Cortex-A7. Add the logic to use the IPs used to control the CPU configuration and the CPU power so that we can bring up secondary CPUs at boot.
[...]

arch/arm/mach-sunxi/platsmp.c new file +3 -0
+	/* Set CPU boot address */
+	writel(virt_to_phys(sun6i_secondary_startup),
+	       cpucfg_membase + CPUCFG_PRIVATE0_REG);

Does the secondary CPU jump straight here from the lowlevel firmware or does it go through the bootloader which reads the reg and does the jump? I can't see any reference to this reg in u-boot so I guess the former?

I'm trying to work out if we can make this work with the requirement which both Xen and KVM have to enter the kernel in NS-HYP mode.

The way this works on e.g. vexpress is (roughly) that u-boot wakes up the secondary CPUs from the lowlevel firmware and places them into its own holding pen, which has the same wake up protocol as the firmware so the kernel can just use the same code. If u-boot never gets to run on secondary CPUs that isn't going to help much.

My concern is that the sequence here appears to involve resetting the secondary CPU, which I figure will probably defeat that strategy by kicking the CPU back into the lowlevel firmware in the reset state, meaning it can't be done by a u-boot only change.

Hrm, what to do ... perhaps a DT driven selection between this mechanism and sev to kick a wfe loop reading the private register?

Ian.

Quoted 62 lines
arch/arm/mach-sunxi/platsmp.c new file +38 -0
+
+	/* Assert the CPU core in reset */
+	writel(0, cpucfg_membase + CPUCFG_CPU_RST_CTRL_REG(cpu));
+
+	/* Assert the L1 cache in reset */
+	reg = readl(cpucfg_membase + CPUCFG_GEN_CTRL_REG);
+	writel(reg & ~BIT(cpu), cpucfg_membase + CPUCFG_GEN_CTRL_REG);
+
+	/* Disable external debug access */
+	reg = readl(cpucfg_membase + CPUCFG_DBG_CTL1_REG);
+	writel(reg & ~BIT(cpu), cpucfg_membase + CPUCFG_DBG_CTL1_REG);
+
+	/* Power up the CPU */
+	for (i = 0; i <= 8; i++)
+		writel(0xff >> i, prcm_membase + PRCM_CPU_PWR_CLAMP_REG(cpu));
+	mdelay(10);
+
+	/* Clear CPU power-off gating */
+	reg = readl(prcm_membase + PRCM_CPU_PWROFF_REG);
+	writel(reg & ~BIT(cpu), prcm_membase + PRCM_CPU_PWROFF_REG);
+	mdelay(1);
+
+	/* Deassert the CPU core reset */
+	writel(3, cpucfg_membase + CPUCFG_CPU_RST_CTRL_REG(cpu));
+
+	/* Enable back the external debug accesses */
+	reg = readl(cpucfg_membase + CPUCFG_DBG_CTL1_REG);
+	writel(reg | BIT(cpu), cpucfg_membase + CPUCFG_DBG_CTL1_REG);
+
+	spin_unlock(&cpu_lock);
+
+	return 0;
+}
+
+struct smp_operations sun6i_smp_ops __initdata = {
+	.smp_prepare_cpus	= sun6i_smp_prepare_cpus,
+	.smp_boot_secondary	= sun6i_smp_boot_secondary,
+};
arch/arm/mach-sunxi/sunxi.c +3 -0
index f184f6c2fa33..b2e570253a8f 100644
@@ -26,6 +26,8 @@
 #include <asm/mach/map.h>
 #include <asm/system_misc.h>
 
+#include "common.h"
+
 #define SUN4I_WATCHDOG_CTRL_REG		0x00
 #define SUN4I_WATCHDOG_CTRL_RESTART		BIT(0)
 #define SUN4I_WATCHDOG_MODE_REG		0x04
@@ -147,6 +149,7 @@ DT_MACHINE_START(SUN6I_DT, "Allwinner sun6i (A31) Family")
 	.init_time	= sunxi_timer_init,
 	.dt_compat	= sun6i_board_dt_compat,
 	.restart	= sun6i_restart,
+	.smp		= smp_ops(sun6i_smp_ops),
 MACHINE_END
 
 static const char * const sun7i_board_dt_compat[] = {
Signature · 1 line
1.8.4
#4 lore raw

Re: [linux-sunxi] [PATCH 2/2] ARM: sun6i: Add SMP support for the Allwinner A31

Hi Ian,

Quoted 4 lines · Ian Campbell

Not a comment on the patch, or even A31, but a question about how the SMP boot process works on sunxi generally...

On Sun, 2013-11-03 at 10:30 +0100, Maxime Ripard wrote:

Quoted 11 lines

arch/arm/mach-sunxi/platsmp.c line 77

Quoted 7 lines

The A31 is a quad Cortex-A7. Add the logic to use the IPs used to control the CPU configuration and the CPU power so that we can bring up secondary CPUs at boot.
[...]

arch/arm/mach-sunxi/platsmp.c new file +3 -0
+	/* Set CPU boot address */
+	writel(virt_to_phys(sun6i_secondary_startup),
+	       cpucfg_membase + CPUCFG_PRIVATE0_REG);

Does the secondary CPU jump straight here from the lowlevel firmware or does it go through the bootloader which reads the reg and does the jump? I can't see any reference to this reg in u-boot so I guess the former?

There's no reference of this either in the A31 datasheet (or at least, none I could find), so I assume the former too.

Quoted 9 lines

I'm trying to work out if we can make this work with the requirement which both Xen and KVM have to enter the kernel in NS-HYP mode.

The way this works on e.g. vexpress is (roughly) that u-boot wakes up the secondary CPUs from the lowlevel firmware and places them into its own holding pen, which has the same wake up protocol as the firmware so the kernel can just use the same code. If u-boot never gets to run on secondary CPUs that isn't going to help much.

Quoted 4 lines

My concern is that the sequence here appears to involve resetting the secondary CPU, which I figure will probably defeat that strategy by kicking the CPU back into the lowlevel firmware in the reset state, meaning it can't be done by a u-boot only change.

I think this is where we're headed for the A20, Marc was interested in doing that, since we already have pretty much this in u-boot already, however, this is not the case for the A31.

As far as I know, the Allwinner's bootloader that we currently use isn't bringing up the secondary CPUs, and we don't have any port of some sort of u-boot yet that we could work on.

So, I guess we don't really have much choice in that case, even though eventually I'd like to have this for the A31 too.

Quoted 2 lines

Hrm, what to do ... perhaps a DT driven selection between this mechanism and sev to kick a wfe loop reading the private register?

We can discuss this whenever we will actually have that choice to make, but maybe a kernel parameter would be better?

Thanks,
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131108/cdb8410f/attachment.sig>
#5 lore raw

Re: [linux-sunxi] [PATCH 2/2] ARM: sun6i: Add SMP support for the Allwinner A31

Quoted 9 lines · Maxime Ripard
Quoted 9 lines

I'm trying to work out if we can make this work with the requirement which both Xen and KVM have to enter the kernel in NS-HYP mode.

The way this works on e.g. vexpress is (roughly) that u-boot wakes up the secondary CPUs from the lowlevel firmware and places them into its own holding pen, which has the same wake up protocol as the firmware so the kernel can just use the same code. If u-boot never gets to run on secondary CPUs that isn't going to help much.

Quoted 7 lines
Quoted 4 lines

My concern is that the sequence here appears to involve resetting the secondary CPU, which I figure will probably defeat that strategy by kicking the CPU back into the lowlevel firmware in the reset state, meaning it can't be done by a u-boot only change.

I think this is where we're headed for the A20, Marc was interested in doing that,

Marc Zyngier is that?

Quoted 6 lines

since we already have pretty much this in u-boot already,
however, this is not the case for the A31.

As far as I know, the Allwinner's bootloader that we currently use isn't bringing up the secondary CPUs, and we don't have any port of some sort of u-boot yet that we could work on.

Ah, OK. I'd assumed that A20 and A31 (indeed, most sunxi platforms) were mostly equivalent as far as u-boot support went.

Quoted 2 lines

So, I guess we don't really have much choice in that case, even though eventually I'd like to have this for the A31 too.

Right, I suppose it makes sense to consider what we want to do on the A20 now and keep in mind that A31 may want to follow in the future.

Quoted 5 lines
Quoted 2 lines

Hrm, what to do ... perhaps a DT driven selection between this mechanism and sev to kick a wfe loop reading the private register?

We can discuss this whenever we will actually have that choice to make, but maybe a kernel parameter would be better?

I don't think so -- u-boot would then have to munge the command line to say that it had/had not brought up secondaries. DTB seems more natural to me. e.g. on ARMv8 there is already a requirement to provide a per-CPU property describing the bringup protocol ("PSCI" and "spintable" are the options there).

Anyway, once I get to the point of being able to do something I'll coordinate with Marc etc and figure out what to do. In the meantime I think having the kernel do the bringup (like this patch does) is sensible. It's very likely to be what we want to do in the absence of any instruction to the contrary (DTB or otherwise) in the future anyway.

Thanks,

Ian.

#6 lore raw

PATCH 2/2 ARM: sun6i: Add SMP support for the Allwinner A31

Quoted 20 lines · Ian Campbell
Quoted 19 lines · Maxime Ripard
Quoted 1 line

I'm trying to work out if we can make this work with the

requirement

Quoted 3 lines

which both Xen and KVM have to enter the kernel in NS-HYP mode.

The way this works on e.g. vexpress is (roughly) that u-boot wakes

up

Quoted 1 line

the secondary CPUs from the lowlevel firmware and places them into

its

Quoted 1 line

own holding pen, which has the same wake up protocol as the

firmware so

Quoted 1 line

the kernel can just use the same code. If u-boot never gets to run

on

Quoted 3 lines

secondary CPUs that isn't going to help much.

My concern is that the sequence here appears to involve resetting

the

Quoted 1 line

secondary CPU, which I figure will probably defeat that strategy

by

Quoted 1 line

kicking the CPU back into the lowlevel firmware in the reset

Quoted 8 lines
Quoted 6 lines

state,

Quoted 1 line

meaning it can't be done by a u-boot only change.

I think this is where we're headed for the A20, Marc was interested in
doing that,

Marc Zyngier is that?

Yup, that's me. My cunning plan is to add PSCI support to u-boot, and do all the HYP stuff there.

Quoted 11 lines
Quoted 6 lines

since we already have pretty much this in u-boot already,
however, this is not the case for the A31.

As far as I know, the Allwinner's bootloader that we currently use isn't bringing up the secondary CPUs, and we don't have any port of some sort of u-boot yet that we could work on.

Ah, OK. I'd assumed that A20 and A31 (indeed, most sunxi platforms) were
mostly equivalent as far as u-boot support went.

Quoted 6 lines
Quoted 3 lines

So, I guess we don't really have much choice in that case, even though
eventually I'd like to have this for the A31 too.

Right, I suppose it makes sense to consider what we want to do on the A20 now and keep in mind that A31 may want to follow in the future.

If we have the magic incantations to power on the A31 secondaries, it should be fairly easy to integrate that into PSCI, assuming we have some SRAM available somewhere (otherwise, we'll have to reserve some memory in DRAM).

Quoted 17 lines
Quoted 6 lines
Quoted 1 line

Hrm, what to do ... perhaps a DT driven selection between this

mechanism

Quoted 1 line

and sev to kick a wfe loop reading the private register?

We can discuss this whenever we will actually have that choice to make, but maybe a kernel parameter would be better?

I don't think so -- u-boot would then have to munge the command line to
say that it had/had not brought up secondaries. DTB seems more natural
to me. e.g. on ARMv8 there is already a requirement to provide a per-CPU
property describing the bringup protocol ("PSCI" and "spintable" are the
options there).

Quoted 6 lines

Anyway, once I get to the point of being able to do something I'll coordinate with Marc etc and figure out what to do. In the meantime I think having the kernel do the bringup (like this patch does) is sensible. It's very likely to be what we want to do in the absence of any instruction to the contrary (DTB or otherwise) in the future anyway.

I'm planning to hack something over the weekend if nothing comes between me and the damned board.

         M.
Signature · 1 line
Who you jivin' with that Cosmik Debris?
#7 lore raw

Re: [linux-sunxi] [PATCH 2/2] ARM: sun6i: Add SMP support for the Allwinner A31

In reply to Ian Campbell

Hi Ian,

Quoted 15 lines · Ian Campbell
Quoted 14 lines · Maxime Ripard
Quoted 13 lines

I'm trying to work out if we can make this work with the requirement which both Xen and KVM have to enter the kernel in NS-HYP mode.

The way this works on e.g. vexpress is (roughly) that u-boot wakes up the secondary CPUs from the lowlevel firmware and places them into its own holding pen, which has the same wake up protocol as the firmware so the kernel can just use the same code. If u-boot never gets to run on secondary CPUs that isn't going to help much.

My concern is that the sequence here appears to involve resetting the secondary CPU, which I figure will probably defeat that strategy by kicking the CPU back into the lowlevel firmware in the reset state, meaning it can't be done by a u-boot only change.

Quoted 4 lines
Quoted 2 lines

I think this is where we're headed for the A20, Marc was interested in doing that,

Marc Zyngier is that?

Ah yes. I forgot to put it in CC...

Quoted 9 lines
Quoted 6 lines

since we already have pretty much this in u-boot already,
however, this is not the case for the A31.

As far as I know, the Allwinner's bootloader that we currently use isn't bringing up the secondary CPUs, and we don't have any port of some sort of u-boot yet that we could work on.

Ah, OK. I'd assumed that A20 and A31 (indeed, most sunxi platforms) were mostly equivalent as far as u-boot support went.

No. The A31 has no current support at all in u-boot(-sunxi, that is), so the only bootloader we can use is Allwinner's one.

It's one my TODO list somewhere, but as usual, time is lacking :)

Quoted 9 lines
Quoted 2 lines

So, I guess we don't really have much choice in that case, even though eventually I'd like to have this for the A31 too.

Right, I suppose it makes sense to consider what we want to do on the A20 now and keep in mind that A31 may want to follow in the future.

Quoted 3 lines
Quoted 2 lines

Hrm, what to do ... perhaps a DT driven selection between this mechanism and sev to kick a wfe loop reading the private register?

Quoted 8 lines
Quoted 2 lines

We can discuss this whenever we will actually have that choice to make, but maybe a kernel parameter would be better?

I don't think so -- u-boot would then have to munge the command line to say that it had/had not brought up secondaries. DTB seems more natural to me. e.g. on ARMv8 there is already a requirement to provide a per-CPU property describing the bringup protocol ("PSCI" and "spintable" are the options there).

Then I guess we can assume that we have to do all the CPU bring up work if this property is missing?

Quoted 5 lines

Anyway, once I get to the point of being able to do something I'll coordinate with Marc etc and figure out what to do. In the meantime I think having the kernel do the bringup (like this patch does) is sensible. It's very likely to be what we want to do in the absence of any instruction to the contrary (DTB or otherwise) in the future anyway.

Yep.

A part from the discussion on the approach, do you have any comments on the patches themselves?

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131110/875b99bf/attachment-0001.sig>
#8 lore raw

Re: [linux-sunxi] [PATCH 2/2] ARM: sun6i: Add SMP support for the Allwinner A31

Quoted 52 lines · Maxime Ripard

Hi Ian,

Quoted 15 lines · Ian Campbell
Quoted 14 lines · Maxime Ripard
Quoted 13 lines

I'm trying to work out if we can make this work with the requirement which both Xen and KVM have to enter the kernel in NS-HYP mode.

The way this works on e.g. vexpress is (roughly) that u-boot wakes up the secondary CPUs from the lowlevel firmware and places them into its own holding pen, which has the same wake up protocol as the firmware so the kernel can just use the same code. If u-boot never gets to run on secondary CPUs that isn't going to help much.

My concern is that the sequence here appears to involve resetting the secondary CPU, which I figure will probably defeat that strategy by kicking the CPU back into the lowlevel firmware in the reset state, meaning it can't be done by a u-boot only change.

Quoted 4 lines
Quoted 2 lines

I think this is where we're headed for the A20, Marc was interested in doing that,

Marc Zyngier is that?

Ah yes. I forgot to put it in CC...

Quoted 9 lines
Quoted 6 lines

since we already have pretty much this in u-boot already,
however, this is not the case for the A31.

As far as I know, the Allwinner's bootloader that we currently use isn't bringing up the secondary CPUs, and we don't have any port of some sort of u-boot yet that we could work on.

Ah, OK. I'd assumed that A20 and A31 (indeed, most sunxi platforms) were mostly equivalent as far as u-boot support went.

No. The A31 has no current support at all in u-boot(-sunxi, that is), so the only bootloader we can use is Allwinner's one.

It's one my TODO list somewhere, but as usual, time is lacking :)

Quoted 12 lines
Quoted 2 lines

So, I guess we don't really have much choice in that case, even though eventually I'd like to have this for the A31 too.

Right, I suppose it makes sense to consider what we want to do on the A20 now and keep in mind that A31 may want to follow in the future.

Quoted 5 lines
Quoted 2 lines

Hrm, what to do ... perhaps a DT driven selection between this mechanism and sev to kick a wfe loop reading the private register?

We can discuss this whenever we will actually have that choice to make, but maybe a kernel parameter would be better?

Quoted 8 lines
Quoted 5 lines

I don't think so -- u-boot would then have to munge the command line to say that it had/had not brought up secondaries. DTB seems more natural to me. e.g. on ARMv8 there is already a requirement to provide a per-CPU property describing the bringup protocol ("PSCI" and "spintable" are the options there).

Then I guess we can assume that we have to do all the CPU bring up work if this property is missing?

Yes, I think that is a fair enough assumption.

Quoted 10 lines
Quoted 5 lines

Anyway, once I get to the point of being able to do something I'll coordinate with Marc etc and figure out what to do. In the meantime I think having the kernel do the bringup (like this patch does) is sensible. It's very likely to be what we want to do in the absence of any instruction to the contrary (DTB or otherwise) in the future anyway.

Yep.

A part from the discussion on the approach, do you have any comments on the patches themselves?

I know approximately diddly about how one is supposed to bring up these processors, but I did correlate what you were doing as best I could with the A20 manual for the registers and it looked sensible to me, modulo the fact that I was looking at the manual for a slightly different processor ;-)

Not a terribly strong statement, sorry.

Ian.

#9 lore raw

Re: [linux-sunxi] [PATCH 2/2] ARM: sun6i: Add SMP support for the Allwinner A31

Quoted 11 lines · Ian Campbell
Quoted 10 lines
Quoted 5 lines

Anyway, once I get to the point of being able to do something I'll coordinate with Marc etc and figure out what to do. In the meantime I think having the kernel do the bringup (like this patch does) is sensible. It's very likely to be what we want to do in the absence of any instruction to the contrary (DTB or otherwise) in the future anyway.

Yep.

A part from the discussion on the approach, do you have any comments on the patches themselves?

Quoted 7 lines

I know approximately diddly about how one is supposed to bring up these processors, but I did correlate what you were doing as best I could with the A20 manual for the registers and it looked sensible to me, modulo the fact that I was looking at the manual for a slightly different processor ;-)

Not a terribly strong statement, sorry.

Fair enough :)

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131113/d60f51a1/attachment.sig>
#10 lore raw
In reply to Maxime Ripard
Quoted 4 lines · Maxime Ripard

Hi everyone,

The Allwinner A31 is a quad-Cortex-A7 SoC. This patchset adds support for the bringup of the others CPUs at startup.

Applied respectively to sunxi/dt-for-3.14 and sunxi/core-for-3.14.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131216/e0266e0a/attachment-0001.sig>