[Add SMP support for Allwinner A20: PATCH V5 0/3]
Subsystems (4)
v5 cover [Add SMP support for Allwinner A20: PATCH V5 0/3]
V1 V2:
The patchs add smp support for Allwinner A20. It add cpuregister node in dts for smp configure. The patchs also add a options for phy count timer to replace vir count timer as ARM arch timer clocksource.
V3 Changes since V2:
It delete platform.h and delete some code in platsmp.c that's not necessary. It delete phy count timer support because most linux kernel platform want to use vir count timer especially for kvm. SMP need arch timer as clocksource, It does use virtual counter timer and no longer use physical counter timer, so bootloader ***must*** set CNTVOFF register for a20 before kernel booting. I have add support set CNTVOFF register for uboot, if you want to test it in a20 board, you need update your sunxi uboot from: https://groups.google.com/forum/#!topic/linux-sunxi/O0Za7H5_jQI
V4 Changes since V3:
It use smp_prepare_cpus replacing early_init as cpuconfigure map init funcation caller and use sun7i replacing sunxi7i as funcation name and variable name.
V5 Changes since V4:
Move smp from struct DT_MACHINE_START(SUNXI_DT, "Allwinner A1X (Device Tree)") to struct DT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family") in file sunxi.c
*** BLURB HERE ***
Fan Rong (3):
Add smp support for Allwinner A20(sunxi 7i).
Add cpuconfig nodes in dts for smp configure.
Add arch count timer node in dts for Allwinner A20(sunxi 7i).
arch/arm/boot/dts/sun7i-a20.dtsi | 15 ++++++ arch/arm/mach-sunxi/Makefile | 2 + arch/arm/mach-sunxi/headsmp.S | 18 +++++++ arch/arm/mach-sunxi/platsmp.c | 114 +++++++++++++++++++++++++++++++++++++++ arch/arm/mach-sunxi/sunxi.c | 3 ++ 5 files changed, 152 insertions(+) create mode 100644 arch/arm/mach-sunxi/headsmp.S create mode 100644 arch/arm/mach-sunxi/platsmp.c mode change 100644 => 100755 arch/arm/mach-sunxi/sunxi.c
Signature · 1 line
1.8.1.2
PATCH v5 1/3 Add smp support for Allwinner A20(sunxi 7i).
This patch adds SMP support for the Allwinner A20 SoC. This SoC uses an IP to, among other things, handle the CPU-related configuration, like the power clamp, the boot address of the secondary CPUS, etc. We thus need to map this IP during the prepare_cpu SMP operation, before bringing up the secondary CPU in the secondary_startup operation.
--- arch/arm/mach-sunxi/Makefile | 2 + arch/arm/mach-sunxi/headsmp.S | 18 +++++++ arch/arm/mach-sunxi/platsmp.c | 114 ++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-sunxi/sunxi.c | 3 ++ 4 files changed, 137 insertions(+) create mode 100644 arch/arm/mach-sunxi/headsmp.S create mode 100644 arch/arm/mach-sunxi/platsmp.c mode change 100644 => 100755 arch/arm/mach-sunxi/sunxi.c
arch/arm/mach-sunxi/Makefile +2 -0
@@ -1 +1,3 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi.o +obj-$(CONFIG_ARCH_SUNXI) += platsmp.o +obj-$(CONFIG_ARCH_SUNXI) += headsmp.o
arch/arm/mach-sunxi/headsmp.S new file +18 -0
@@ -0,0 +1,18 @@ +/* + * SMP support for A20 + * + * Copyright (C) 2013 Fan Rong <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include <linux/linkage.h> +#include <linux/init.h> + +.section ".text.head", "ax" +ENTRY(sun7i_secondary_startup) + msr cpsr_fsxc,#0xd3 + b secondary_startup +ENDPROC(sun7i_secondary_startup)
arch/arm/mach-sunxi/platsmp.c new file +114 -0
114 lines not on this page · raw message
arch/arm/mach-sunxi/sunxi.c +3 -0
@@ -26,6 +26,8 @@#include <asm/mach/map.h> #include <asm/system_misc.h> +extern struct smp_operations sun7i_smp_ops; +#define SUN4I_WATCHDOG_CTRL_REG 0x00#define SUN4I_WATCHDOG_CTRL_RESTART BIT(0)#define SUN4I_WATCHDOG_MODE_REG 0x04
@@ -155,6 +157,7 @@ static const char * const sun7i_board_dt_compat[] = { };DT_MACHINE_START (SUN7I_DT ,"Allwinner sun7i (A20) Family" ) + .smp = smp_ops(sun7i_smp_ops), .init_machine = sunxi_dt_init, .init_time = sunxi_timer_init, .dt_compat = sun7i_board_dt_compat,
Signature · 1 line
1.8.1.2
Re: [Add SMP support for Allwinner A20: PATCH V5 1/3] Add smp support for Allwinner A20(sunxi 7i).
HI Maxime?
How about the new V5 patch?
Fan
Thanks
Quoted 191 lines · Fan Rong
This patch adds SMP support for the Allwinner A20 SoC. This SoC uses an IP to, among other things, handle the CPU-related configuration, like the power clamp, the boot address of the secondary CPUS, etc. We thus need to map this IP during the
prepare_cpuSMP operation, before bringing up the secondary CPU in thesecondary_startupoperation.Signed-off-by Fan Rong <[email protected]>--- arch/arm/mach-sunxi/Makefile | 2 + arch/arm/mach-sunxi/headsmp.S | 18 +++++++ arch/arm/mach-sunxi/platsmp.c | 114 ++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-sunxi/sunxi.c | 3 ++ 4 files changed, 137 insertions(+) create mode 100644 arch/arm/mach-sunxi/headsmp.S create mode 100644 arch/arm/mach-sunxi/platsmp.c mode change 100644 => 100755 arch/arm/mach-sunxi/sunxi.carch/arm/mach-sunxi/Makefile +2
-0@@ -1 +1,3 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi.o +obj-$(CONFIG_ARCH_SUNXI) += platsmp.o +obj-$(CONFIG_ARCH_SUNXI) += headsmp.oarch/arm/mach-sunxi/headsmp.S new file +18
-0@@ -0,0 +1,18 @@ +/* + * SMP support for A20 + * + * Copyright (C) 2013 Fan Rong <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include <linux/linkage.h> +#include <linux/init.h> + +.section ".text.head", "ax" +ENTRY(sun7i_secondary_startup) + msr cpsr_fsxc,#0xd3 + b secondary_startup +ENDPROC(sun7i_secondary_startup)arch/arm/mach-sunxi/platsmp.c new file +114
-0@@ -0,0 +1,114 @@ +/* +* linux/arch/arm/mach-sun7i/platsmp.c +* +* Copyright (C) 2013 Fan Rong <[email protected]> +* All Rights Reserved +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ +#include <linux/init.h> +#include <linux/errno.h> +#include <linux/smp.h> +#include <linux/io.h> +#include <linux/delay.h> +#include <linux/smp.h> + +#include <linux/of_address.h> +#include <linux/of_irq.h> +#include <linux/of_platform.h> + +/* +* CPU Configure module support +* 1: Software reset for smp cpus +* 2: Configure for smp cpus including boot. +* 3: Three 64-bit idle counters and two 64-bit common counters +* it is needed for smp cpus +*/ +void __iomem *sun7i_cc_base;/*CPU Configure Base*/ +extern void sun7i_secondary_startup (void ); + +/* +* CPUCFG +*/ +#define SUN7I_CPUCFG_BOOTADDR 0x01a4 + +#define SUN7I_CPUCFG_GENCTL 0x0184 +#define SUN7I_CPUCFG_DBGCTL0 0x01e0 +#define SUN7I_CPUCFG_DBGCTL1 0x01e4 + +#define SUN7I_CPU1_PWR_CLAMP 0x01b0 +#define SUN7I_CPU1_PWROFF_REG 0x01b4 +#define SUN7I_CPUX_RESET_CTL (x) (0x40 + (x)*0x40) + +static struct of_device_id sun7i_cc_ids[] = { + { .compatible ="allwinner,sun7i-a20-cpuconfig" }, + {/*sentinel*/ } +}; + +static int sun7i_boot_secondary (unsigned int cpu,struct task_struct *idle) +{ +long paddr; +uint32_t pwr_reg; +uint32_t j =0xff <<1 ; +if (!sun7i_cc_base) { +pr_debug ("error map cpu configure\n" ); +return -ENOSYS ; + } +/* Set boot addr */ + paddr =virt_to_phys (sun7i_secondary_startup); +writel (paddr, sun7i_cc_base +SUN7I_CPUCFG_BOOTADDR ); + +/* Assert cpu core reset */ +writel (0 , sun7i_cc_base +SUN7I_CPUX_RESET_CTL (cpu)); + +/* Ensure CPU reset also invalidates L1 caches */ + pwr_reg =readl (sun7i_cc_base +SUN7I_CPUCFG_GENCTL ); + pwr_reg &= ~BIT (cpu); +writel (pwr_reg, sun7i_cc_base +SUN7I_CPUCFG_GENCTL ); + +/* DBGPWRDUP hold low */ + pwr_reg =readl (sun7i_cc_base +SUN7I_CPUCFG_DBGCTL1 ); + pwr_reg &= ~BIT (cpu); +writel (pwr_reg, sun7i_cc_base +SUN7I_CPUCFG_DBGCTL1 ); + +/* Ramp up power to CPU1 */ +do { +writel (j, sun7i_cc_base +SUN7I_CPU1_PWR_CLAMP ); + j = j >>1 ; + }while (j !=0 ); + +mdelay (10 ); + + pwr_reg =readl (sun7i_cc_base +SUN7I_CPU1_PWROFF_REG ); + pwr_reg &= ~1 ; +writel (pwr_reg, sun7i_cc_base +SUN7I_CPU1_PWROFF_REG ); +mdelay (1 ); + +/* Release CPU reset */ +writel (3 , sun7i_cc_base +SUN7I_CPUX_RESET_CTL (cpu)); + +/* Unlock CPU */ + pwr_reg =readl (sun7i_cc_base +SUN7I_CPUCFG_DBGCTL1 ); + pwr_reg |=BIT (cpu); +writel (pwr_reg, sun7i_cc_base +SUN7I_CPUCFG_DBGCTL1 ); + +return 0 ; +} + +static void __init sun7i_init_cpuconfig_map (unsigned int max_cpus) +{ +struct device_node *np; + np =of_find_matching_node (NULL , sun7i_cc_ids); +if (WARN (!np,"unable to setup cup configure" )) +return ; + sun7i_cc_base =of_iomap (np,0 ); +if (WARN (!sun7i_cc_base,"failed to map cup configure base address" )) +return ; +} + +struct smp_operations sun7i_smp_ops__initdata = { + .smp_boot_secondary = sun7i_boot_secondary, + .smp_prepare_cpus = sun7i_init_cpuconfig_map, +};arch/arm/mach-sunxi/sunxi.c +3
-1@@ -26,6 +26,8 @@#include <asm/mach/map.h> #include <asm/system_misc.h> +extern struct smp_operations sun7i_smp_ops; +#define SUN4I_WATCHDOG_CTRL_REG 0x00#define SUN4I_WATCHDOG_CTRL_RESTART BIT(0)#define SUN4I_WATCHDOG_MODE_REG 0x04@@ -155,6 +157,7 @@ static const char * const sun7i_board_dt_compat[] = { };DT_MACHINE_START (SUN7I_DT ,"Allwinner sun7i (A20) Family" ) + .smp = smp_ops(sun7i_smp_ops), .init_machine = sunxi_dt_init, .init_time = sunxi_timer_init, .dt_compat = sun7i_board_dt_compat, --1.8.1.2
Re: [Add SMP support for Allwinner A20: PATCH V5 1/3] Add smp support for Allwinner A20(sunxi 7i).
In reply to Fan RongQuoted 5 lines · Fan Rong
This patch adds SMP support for the Allwinner A20 SoC. This SoC uses an IP to, among other things, handle the CPU-related configuration, like the power clamp, the boot address of the secondary CPUS, etc. We thus need to map this IP during the
prepare_cpuSMP operation, before bringing up the secondary CPU in thesecondary_startupoperation.
Please wrap this to 80 chars, and use sun7i in your commit title.
Quoted 120 lines
Signed-off-by Fan Rong <[email protected]>--- arch/arm/mach-sunxi/Makefile | 2 + arch/arm/mach-sunxi/headsmp.S | 18 +++++++ arch/arm/mach-sunxi/platsmp.c | 114 ++++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-sunxi/sunxi.c | 3 ++ 4 files changed, 137 insertions(+) create mode 100644 arch/arm/mach-sunxi/headsmp.S create mode 100644 arch/arm/mach-sunxi/platsmp.c mode change 100644 => 100755 arch/arm/mach-sunxi/sunxi.carch/arm/mach-sunxi/Makefile +2
-0@@ -1 +1,3 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi.o +obj-$(CONFIG_ARCH_SUNXI) += platsmp.o +obj-$(CONFIG_ARCH_SUNXI) += headsmp.oarch/arm/mach-sunxi/headsmp.S new file +18
-0@@ -0,0 +1,18 @@ +/* + * SMP support for A20 + * + * Copyright (C) 2013 Fan Rong <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include <linux/linkage.h> +#include <linux/init.h> + +.section ".text.head", "ax" +ENTRY(sun7i_secondary_startup) + msr cpsr_fsxc,#0xd3 + b secondary_startup +ENDPROC(sun7i_secondary_startup)arch/arm/mach-sunxi/platsmp.c new file +70
-0@@ -0,0 +1,114 @@ +/* +* linux/arch/arm/mach-sun7i/platsmp.c +* +* Copyright (C) 2013 Fan Rong <[email protected]> +* All Rights Reserved +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ +#include <linux/init.h> +#include <linux/errno.h> +#include <linux/smp.h> +#include <linux/io.h> +#include <linux/delay.h> +#include <linux/smp.h> + +#include <linux/of_address.h> +#include <linux/of_irq.h> +#include <linux/of_platform.h> + +/* +* CPU Configure module support +* 1: Software reset for smp cpus +* 2: Configure for smp cpus including boot. +* 3: Three 64-bit idle counters and two 64-bit common counters +* it is needed for smp cpus +*/ +void __iomem *sun7i_cc_base;/*CPU Configure Base*/ +extern void sun7i_secondary_startup (void ); + +/* +* CPUCFG +*/ +#define SUN7I_CPUCFG_BOOTADDR 0x01a4 + +#define SUN7I_CPUCFG_GENCTL 0x0184 +#define SUN7I_CPUCFG_DBGCTL0 0x01e0 +#define SUN7I_CPUCFG_DBGCTL1 0x01e4 + +#define SUN7I_CPU1_PWR_CLAMP 0x01b0 +#define SUN7I_CPU1_PWROFF_REG 0x01b4 +#define SUN7I_CPUX_RESET_CTL (x) (0x40 + (x)*0x40) + +static struct of_device_id sun7i_cc_ids[] = { + { .compatible ="allwinner,sun7i-a20-cpuconfig" }, + {/*sentinel*/ } +}; + +static int sun7i_boot_secondary (unsigned int cpu,struct task_struct *idle) +{ +long paddr; +uint32_t pwr_reg; +uint32_t j =0xff <<1 ; +if (!sun7i_cc_base) { +pr_debug ("error map cpu configure\n" ); +return -ENOSYS ; + } +/* Set boot addr */ + paddr =virt_to_phys (sun7i_secondary_startup); +writel (paddr, sun7i_cc_base +SUN7I_CPUCFG_BOOTADDR ); + +/* Assert cpu core reset */ +writel (0 , sun7i_cc_base +SUN7I_CPUX_RESET_CTL (cpu)); + +/* Ensure CPU reset also invalidates L1 caches */ + pwr_reg =readl (sun7i_cc_base +SUN7I_CPUCFG_GENCTL ); + pwr_reg &= ~BIT (cpu); +writel (pwr_reg, sun7i_cc_base +SUN7I_CPUCFG_GENCTL ); +
arch/arm/mach-sunxi/platsmp.c line 80
Quoted 10 lines
arch/arm/mach-sunxi/platsmp.c new file +10
-0+/* DBGPWRDUP hold low */ + pwr_reg =readl (sun7i_cc_base +SUN7I_CPUCFG_DBGCTL1 ); + pwr_reg &= ~BIT (cpu); +writel (pwr_reg, sun7i_cc_base +SUN7I_CPUCFG_DBGCTL1 ); + +/* Ramp up power to CPU1 */ +do { +writel (j, sun7i_cc_base +SUN7I_CPU1_PWR_CLAMP ); + j = j >>1 ; + }while (j !=0 );
In your first version, you were starting by writing 0xff, while here the first iteration of the loop writes (0xff << 1), is that intentionnal ?
Maybe you could move the j variable affectation just before the loop so that we can more easily spot such mistakes.
Quoted 12 lines
arch/arm/mach-sunxi/platsmp.c new file +12
-0+ +mdelay (10 ); + + pwr_reg =readl (sun7i_cc_base +SUN7I_CPU1_PWROFF_REG ); + pwr_reg &= ~1 ; +writel (pwr_reg, sun7i_cc_base +SUN7I_CPU1_PWROFF_REG ); +mdelay (1 ); + +/* Release CPU reset */ +writel (3 , sun7i_cc_base +SUN7I_CPUX_RESET_CTL (cpu)); + +/* Unlock CPU */
arch/arm/mach-sunxi/platsmp.c line 102
Quoted 10 lines
arch/arm/mach-sunxi/platsmp.c new file +10
-0+ pwr_reg =readl (sun7i_cc_base +SUN7I_CPUCFG_DBGCTL1 ); + pwr_reg |=BIT (cpu); +writel (pwr_reg, sun7i_cc_base +SUN7I_CPUCFG_DBGCTL1 ); + +return 0 ; +} + +static void __init sun7i_init_cpuconfig_map (unsigned int max_cpus) +{ +struct device_node *np;
Add a new line here.
arch/arm/mach-sunxi/platsmp.c line 104
Quoted 2 lines
arch/arm/mach-sunxi/platsmp.c new file +2
-0+ np =of_find_matching_node (NULL , sun7i_cc_ids); +if (WARN (!np,"unable to setup cup configure" ))
^ cpu
arch/arm/mach-sunxi/platsmp.c line 105
Quoted 1 line
arch/arm/mach-sunxi/platsmp.c new file +1
-0+return ;
Add a new line here.
arch/arm/mach-sunxi/platsmp.c line 107
Quoted 2 lines
arch/arm/mach-sunxi/platsmp.c new file +2
-0+ sun7i_cc_base =of_iomap (np,0 ); +if (WARN (!sun7i_cc_base,"failed to map cup configure base address" ))
^ cpu
arch/arm/mach-sunxi/platsmp.c line 108
Quoted 1 line
arch/arm/mach-sunxi/platsmp.c new file +1
-0+return ;
I think I would panic here instead of issuing a warning.
Quoted 22 lines
arch/arm/mach-sunxi/platsmp.c new file +6
-0+} + +struct smp_operations sun7i_smp_ops__initdata = { + .smp_boot_secondary = sun7i_boot_secondary, + .smp_prepare_cpus = sun7i_init_cpuconfig_map, +};arch/arm/mach-sunxi/sunxi.c +2
-0@@ -26,6 +26,8 @@#include <asm/mach/map.h> #include <asm/system_misc.h> +extern struct smp_operations sun7i_smp_ops; +#define SUN4I_WATCHDOG_CTRL_REG 0x00#define SUN4I_WATCHDOG_CTRL_RESTART BIT(0)#define SUN4I_WATCHDOG_MODE_REG 0x04
arch/arm/mach-sunxi/sunxi.c static const char * const sun7i_board_dt_compat[] = { · line 160
Quoted 4 lines
arch/arm/mach-sunxi/sunxi.c +1
-0@@ -155,6 +157,7 @@ static const char * const sun7i_board_dt_compat[] = { };DT_MACHINE_START (SUN7I_DT ,"Allwinner sun7i (A20) Family" ) + .smp = smp_ops(sun7i_smp_ops),
Please align it with the other affectations.
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/20131025/2df2cb5a/attachment.sig>
PATCH v5 2/3 Add cpuconfig nodes in dts for smp configure.
In reply to Fan RongCpu Configure regiser can be used for reset and boot smp cpus in allwiner's A20.
--- arch/arm/boot/dts/sun7i-a20.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/sun7i-a20.dtsi +5 -0
@@ -270,6 +270,11 @@ reg = <0x01c23800 0x200>; }; + cpuconfig: cpuconfig at 01c25c00 { + compatible = "allwinner,sun7i-a20-cpuconfig"; + reg = <0x01c25c00 0x400>; + }; + uart0: serial at 01c28000 { compatible = "snps,dw-apb-uart"; reg = <0x01c28000 0x400>;
Signature · 1 line
1.8.1.2
PATCH v5 3/3 Add arch count timer node in dts for Allwinner A20(sunxi 7i).
In reply to Fan RongLinux kernel usually use virtual arch timer for smp cpu tick. But the arch timer register VCTOFF normally is very different between the two cpus in A20 afer hardware reset, so SMP Cpus will see different time tick. It will cause kernel crash currently. You have two choices to fix it: 1 Simpley use physical arch timer, 2 Set VCTOFF to same value for each cpu in bootloader. The first choice will cause some other problem for kernel, especially for KVM, guest OS want to use virtual arch timer. So the second choice is perfect. So if you want to use arch timer for smp cpu tick, you must ensure you bootload have set same VCTOFF for all cpus.
--- arch/arm/boot/dts/sun7i-a20.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/sun7i-a20.dtsi +10 -0
@@ -410,5 +410,15 @@ #interrupt-cells = <3>; interrupts = <1 9 0xf04>; }; + + timer { + compatible ="arm,armv7-timer"; + interrupts = <1 13 0x308>, + <1 14 0x308>, + <1 11 0x308>, + <1 10 0x308>; + clock-frequency = <24000000>; + }; + }; };
Signature · 1 line
1.8.1.2
Re: [Add SMP support for Allwinner A20: PATCH V5 3/3] Add arch count timer node in dts for Allwinner A20(sunxi 7i).
Quoted 11 lines · Fan Rong
Linux kernel usually use virtual arch timer for smp cpu tick. But the arch timer register VCTOFF normally is very different between the two cpus in A20 afer hardware reset, so SMP Cpus will see different time tick. It will cause kernel crash currently. You have two choices to fix it: 1 Simpley use physical arch timer, 2 Set VCTOFF to same value for each cpu in bootloader. The first choice will cause some other problem for kernel, especially for KVM, guest OS want to use virtual arch timer. So the second choice is perfect. So if you want to use arch timer for smp cpu tick, you must ensure you bootload have set same VCTOFF for all cpus.
Is your patchset working without that last patch?
I'm not really wanting to apply it right now.
It relies on a bootloader behaviour that is not implemented by any bootloader we have openly available right now. I will apply it after it's been merged in at least u-boot-sunxi.
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/20131023/dd85d6b0/attachment-0001.sig>
Quoted 10 lines · Fan Rong
V1 V2:
The patchs add smp support for Allwinner A20. It add cpuregister node in dts for smp configure. The patchs also add a options for phy count timer to replace vir count timer as ARM arch timer clocksource.
V3 Changes since V2:
It deleteplatform.hand delete some code inplatsmp.cthat's not necessary. It delete phy count timer support because most linux kernel platform want to use vir count timer especially for kvm. SMP need arch timer as clocksource, It does use virtual counter timer and no longer use physical counter timer, so bootloader ***must*** set CNTVOFF register for a20 before kernel booting. I have add support set CNTVOFF register for uboot, if you want to test it in a20 board, you need update your sunxi uboot from: https://groups.google.com/forum/#!topic/linux-sunxi/O0Za7H5_jQI
V4 Changes since V3:
It usesmp_prepare_cpusreplacingearly_initas cpuconfigure map init funcation caller and use sun7i replacing sunxi7i as funcation name and variable name.
V5 Changes since V4:
Move smp from structDT_MACHINE_START(SUNXI_DT, "Allwinner A1X (Device Tree)")to structDT_MACHINE_START(SUN7I_DT, "Allwinner sun7i (A20) Family")in filesunxi.c*** BLURB HERE ***
Seriously?
I explained to you several times what we were expecting, with references to examples of what you should do, and you're still not listening?
You just make me feel like I'm wasting my time here. If you don't want to make any effort, I won't either.
This is my last warning. Here is what is wrong about your patchset:
- Wrap your commit log and cover letter to 80 chars
- You don't have any introduction letter
- The prefix is wrong, again, while you had it fixed in your v4
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/20131023/2efd4bf7/attachment.sig>