Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Maxime Ripard
Hi Guenter, On Sun, Sep 22, 2013 at 08:37:23PM -0700, Guenter Roeck wrote: > On 09/21/2013 07:00 AM, Maxime Ripard wrote: > > [ ... ] > > >>+ /* assert cpu core reset */ > >>+ writel(0, sunxi7i_cc_base + CPUX_RESET_CTL(cpu)); > >>+ /* L1RSTDISABLE hold low */ > >>+ pwr_reg =

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread maxime.rip...@free-electrons.com
Hi, On Mon, Sep 23, 2013 at 10:43:55PM +0800, cinifr wrote: > > In which case this kernel patch needs instead to speak the bootloader > > wakeup protocol instead of speaking to the h/w directly like you've done > > here, right? > > > > Or is it possible for the bootloader to set these things up

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Guenter Roeck
On Mon, Sep 23, 2013 at 09:19:17PM +0300, Maxime Ripard wrote: > Hi Guenter, > > On Sun, Sep 22, 2013 at 08:37:23PM -0700, Guenter Roeck wrote: > > On 09/21/2013 07:00 AM, Maxime Ripard wrote: > > > > [ ... ] > > > > >>+ /* assert cpu core reset */ > > >>+ writel(0, sunxi7i_cc_base +

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread cinifr
> In which case this kernel patch needs instead to speak the bootloader > wakeup protocol instead of speaking to the h/w directly like you've done > here, right? > > Or is it possible for the bootloader to set these things up and then put > the CPU back to sleep such that it both retains any

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Ian Campbell
On Sun, 2013-09-22 at 23:31 +0800, cinifr wrote: > > > On Sunday, 22 September 2013, Ian Campbell wrote: > > On Sun, 2013-09-22 at 20:21 +0800, Fan Rong wrote: > > > >> + /* Set boot addr */ > >> + paddr = virt_to_phys(sun7i_secondary_startup); > >> + writel(paddr, sunxi7i_cc_base +

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Uwe Kleine-König
Hello, On Sat, Sep 21, 2013 at 05:49:00PM -0500, Maxime Ripard wrote: > On Sun, Sep 22, 2013 at 12:49:45AM +0800, cinifr wrote: > > Thanks. I have modify my patch as you said. > > It is in attachments. Maybe I remail the new patch? > > Yes, remail the whole serie and change the prefix to PATCHv3

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Uwe Kleine-König
Hello, On Sat, Sep 21, 2013 at 05:49:00PM -0500, Maxime Ripard wrote: On Sun, Sep 22, 2013 at 12:49:45AM +0800, cinifr wrote: Thanks. I have modify my patch as you said. It is in attachments. Maybe I remail the new patch? Yes, remail the whole serie and change the prefix to PATCHv3 (you

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Ian Campbell
On Sun, 2013-09-22 at 23:31 +0800, cinifr wrote: On Sunday, 22 September 2013, Ian Campbell i...@hellion.org.uk wrote: On Sun, 2013-09-22 at 20:21 +0800, Fan Rong wrote: + /* Set boot addr */ + paddr = virt_to_phys(sun7i_secondary_startup); + writel(paddr,

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread cinifr
In which case this kernel patch needs instead to speak the bootloader wakeup protocol instead of speaking to the h/w directly like you've done here, right? Or is it possible for the bootloader to set these things up and then put the CPU back to sleep such that it both retains any settings

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Guenter Roeck
On Mon, Sep 23, 2013 at 09:19:17PM +0300, Maxime Ripard wrote: Hi Guenter, On Sun, Sep 22, 2013 at 08:37:23PM -0700, Guenter Roeck wrote: On 09/21/2013 07:00 AM, Maxime Ripard wrote: [ ... ] + /* assert cpu core reset */ + writel(0, sunxi7i_cc_base + CPUX_RESET_CTL(cpu)); + /*

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread maxime.rip...@free-electrons.com
Hi, On Mon, Sep 23, 2013 at 10:43:55PM +0800, cinifr wrote: In which case this kernel patch needs instead to speak the bootloader wakeup protocol instead of speaking to the h/w directly like you've done here, right? Or is it possible for the bootloader to set these things up and then

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Maxime Ripard
Hi Guenter, On Sun, Sep 22, 2013 at 08:37:23PM -0700, Guenter Roeck wrote: On 09/21/2013 07:00 AM, Maxime Ripard wrote: [ ... ] + /* assert cpu core reset */ + writel(0, sunxi7i_cc_base + CPUX_RESET_CTL(cpu)); + /* L1RSTDISABLE hold low */ + pwr_reg = readl(sunxi7i_cc_base +

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-22 Thread Guenter Roeck
On 09/21/2013 07:00 AM, Maxime Ripard wrote: [ ... ] + /* assert cpu core reset */ + writel(0, sunxi7i_cc_base + CPUX_RESET_CTL(cpu)); + /* L1RSTDISABLE hold low */ + pwr_reg = readl(sunxi7i_cc_base + AW_CPUCFG_GENCTL); + pwr_reg &= ~(1< Use BIT(cpu) here. And

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-22 Thread Guenter Roeck
On 09/21/2013 07:00 AM, Maxime Ripard wrote: [ ... ] + /* assert cpu core reset */ + writel(0, sunxi7i_cc_base + CPUX_RESET_CTL(cpu)); + /* L1RSTDISABLE hold low */ + pwr_reg = readl(sunxi7i_cc_base + AW_CPUCFG_GENCTL); + pwr_reg = ~(1cpu); + writel(pwr_reg,

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Maxime Ripard
On Sun, Sep 22, 2013 at 12:49:45AM +0800, cinifr wrote: > Thanks. I have modify my patch as you said. > It is in attachments. Maybe I remail the new patch? Yes, remail the whole serie and change the prefix to PATCHv3 (you can use the --subject-prefix option of git format-patch to do so). Maxime

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Russell King - ARM Linux
On Sun, Sep 22, 2013 at 12:49:45AM +0800, cinifr wrote: > Thanks. I have modify my patch as you said. > It is in attachments. Maybe I remail the new patch? Please don't attach patches (or if you do, ensure that they have an inline disposition) as non-inline attachments can't be easily quoted and

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread cinifr
Thanks. I have modify my patch as you said. It is in attachments. Maybe I remail the new patch? 0001-Add-smp-support-for-Allwinner-A20-sunxi-7i.patch Description: Binary data

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Maxime Ripard
Hi Fan, On Sat, Sep 21, 2013 at 09:05:14PM +0800, Fan Rong wrote: > Signed-off-by: Fan Rong I'd prefer a more verbose commit log here, and for the following patches as well. Usually, you detail what you're doing in the commit "title", and the rest of the commit log would be why you're doing

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Russell King - ARM Linux
On Sat, Sep 21, 2013 at 09:05:14PM +0800, Fan Rong wrote: > @@ -0,0 +1,12 @@ > +#include > +#include > + > +.section ".text.head", "ax" Please use a tab instead of 8 spaces. > + __CPUINIT __CPUINIT has been removed. > + > +ENTRY(sun7i_secondary_startup) > + msr cpsr_fsxc,

[PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Fan Rong
Signed-off-by: Fan Rong --- arch/arm/mach-sunxi/Makefile | 2 + arch/arm/mach-sunxi/headsmp.S | 12 ++ arch/arm/mach-sunxi/platform.h | 347 + arch/arm/mach-sunxi/platsmp.c | 100 arch/arm/mach-sunxi/sunxi.c| 34 +++- 5 files

[PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Fan Rong
Signed-off-by: Fan Rong cin...@gmail.com --- arch/arm/mach-sunxi/Makefile | 2 + arch/arm/mach-sunxi/headsmp.S | 12 ++ arch/arm/mach-sunxi/platform.h | 347 + arch/arm/mach-sunxi/platsmp.c | 100 arch/arm/mach-sunxi/sunxi.c| 34

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Russell King - ARM Linux
On Sat, Sep 21, 2013 at 09:05:14PM +0800, Fan Rong wrote: @@ -0,0 +1,12 @@ +#include linux/linkage.h +#include linux/init.h + +.section .text.head, ax Please use a tab instead of 8 spaces. + __CPUINIT __CPUINIT has been removed. + +ENTRY(sun7i_secondary_startup) + msr

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Maxime Ripard
Hi Fan, On Sat, Sep 21, 2013 at 09:05:14PM +0800, Fan Rong wrote: Signed-off-by: Fan Rong cin...@gmail.com I'd prefer a more verbose commit log here, and for the following patches as well. Usually, you detail what you're doing in the commit title, and the rest of the commit log would be why

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread cinifr
Thanks. I have modify my patch as you said. It is in attachments. Maybe I remail the new patch? 0001-Add-smp-support-for-Allwinner-A20-sunxi-7i.patch Description: Binary data

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Russell King - ARM Linux
On Sun, Sep 22, 2013 at 12:49:45AM +0800, cinifr wrote: Thanks. I have modify my patch as you said. It is in attachments. Maybe I remail the new patch? Please don't attach patches (or if you do, ensure that they have an inline disposition) as non-inline attachments can't be easily quoted and

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-21 Thread Maxime Ripard
On Sun, Sep 22, 2013 at 12:49:45AM +0800, cinifr wrote: Thanks. I have modify my patch as you said. It is in attachments. Maybe I remail the new patch? Yes, remail the whole serie and change the prefix to PATCHv3 (you can use the --subject-prefix option of git format-patch to do so). Maxime