Re: [PATCH V9 18/21] dt-bindings: csky CPU Bindings

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:50:33PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:30 AM Guo Ren wrote: > > > > This patch adds the documentation to describe that how to add cpu nodes in > > dts for SMP. > > > > Signed-off-by: Guo Ren > > Cc: Rob H

Re: [PATCH V9 15/21] csky: Debug and Ptrace GDB

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:46:56PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:06 AM Guo Ren wrote: > > > > This patch adds arch ptrace implementation, stack dump and bug.h. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Review

Re: [PATCH V9 15/21] csky: Debug and Ptrace GDB

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:46:56PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:06 AM Guo Ren wrote: > > > > This patch adds arch ptrace implementation, stack dump and bug.h. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Review

Re: [PATCH V9 13/21] csky: Library functions

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:24:36PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > +++ b/arch/csky/lib/delay.c > > @@ -0,0 +1,39 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +// Copyright (C) 2018 Hangzhou C-SKY Micro

Re: [PATCH V9 13/21] csky: Library functions

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:24:36PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > +++ b/arch/csky/lib/delay.c > > @@ -0,0 +1,39 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +// Copyright (C) 2018 Hangzhou C-SKY Micro

Re: [PATCH V9 12/21] csky: ELF and module probe

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:18:49PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds ELF definition and module relocate codes. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > >

Re: [PATCH V9 12/21] csky: ELF and module probe

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:18:49PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds ELF definition and module relocate codes. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > >

Re: [PATCH V9 11/21] csky: Atomic operations

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:17:05PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds atomic, cmpxchg, spinlock files. > > > > Signed-off-by: Guo Ren > > Cc: Peter Zijlstra > > Cc: Andrea Parri > &g

Re: [PATCH V9 11/21] csky: Atomic operations

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:17:05PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds atomic, cmpxchg, spinlock files. > > > > Signed-off-by: Guo Ren > > Cc: Peter Zijlstra > > Cc: Andrea Parri > &g

Re: [PATCH V9 10/21] csky: IRQ handling

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:14:48PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds IRQ handling files. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Cc: Thomas Glei

Re: [PATCH V9 10/21] csky: IRQ handling

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:14:48PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:02 AM Guo Ren wrote: > > > > This patch adds IRQ handling files. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Cc: Thomas Glei

Re: [PATCH V9 08/21] csky: Process management and Signal

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:11:00PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > > > This patch adds files related to task_switch, sigcontext, signal, > > fpu context switch. > > > > Signed-off-by: Guo Ren > > C

Re: [PATCH V9 08/21] csky: Process management and Signal

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:11:00PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > > > This patch adds files related to task_switch, sigcontext, signal, > > fpu context switch. > > > > Signed-off-by: Guo Ren > > C

Re: [PATCH V9 07/21] csky: MMU and page table management

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:06:56PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > > > This patch adds files related to memory management and here is our > > memory-layout: > > > >Fixmap : 0xffc02000 – 0xf000

Re: [PATCH V9 07/21] csky: MMU and page table management

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:06:56PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > > > This patch adds files related to memory management and here is our > > memory-layout: > > > >Fixmap : 0xffc02000 – 0xf000

Re: [PATCH V9 05/21] csky: System Call

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:02:33PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > > > This patch adds files related to syscall. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Reviewed-by: Arnd Bergmann

Re: [PATCH V9 05/21] csky: System Call

2018-10-17 Thread Guo Ren
On Wed, Oct 17, 2018 at 05:02:33PM +0200, Arnd Bergmann wrote: > On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > > > This patch adds files related to syscall. > > > > Signed-off-by: Guo Ren > > Cc: Arnd Bergmann > > Reviewed-by: Arnd Bergmann

Re: [PATCH V13 0/4] C-SKY(csky) Linux Intc Driver

2018-10-17 Thread Guo Ren
Hi Marc, On Wed, Oct 17, 2018 at 09:29:45AM +0100, Marc Zyngier wrote: > Hi Guo, > > On 17/10/18 02:55, Guo Ren wrote: > > Hi Marc, > > > > On Tue, Oct 16, 2018 at 03:41:05PM +0100, Marc Zyngier wrote: > >> Guo, > >> > >> On 16/10/18 15:08,

Re: [PATCH V13 0/4] C-SKY(csky) Linux Intc Driver

2018-10-17 Thread Guo Ren
Hi Marc, On Wed, Oct 17, 2018 at 09:29:45AM +0100, Marc Zyngier wrote: > Hi Guo, > > On 17/10/18 02:55, Guo Ren wrote: > > Hi Marc, > > > > On Tue, Oct 16, 2018 at 03:41:05PM +0100, Marc Zyngier wrote: > >> Guo, > >> > >> On 16/10/18 15:08,

Re: [PATCH V13 0/4] C-SKY(csky) Linux Intc Driver

2018-10-16 Thread Guo Ren
Hi Marc, On Tue, Oct 16, 2018 at 03:41:05PM +0100, Marc Zyngier wrote: > Guo, > > On 16/10/18 15:08, Guo Ren wrote: > > This is about 13th patchset for C-SKY linux intc drivers and it should pair > > with 9th kernel patchset. Timer drivers are seperated accordin

Re: [PATCH V13 0/4] C-SKY(csky) Linux Intc Driver

2018-10-16 Thread Guo Ren
Hi Marc, On Tue, Oct 16, 2018 at 03:41:05PM +0100, Marc Zyngier wrote: > Guo, > > On 16/10/18 15:08, Guo Ren wrote: > > This is about 13th patchset for C-SKY linux intc drivers and it should pair > > with 9th kernel patchset. Timer drivers are seperated accordin

[PATCH V13 2/4] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-10-16 Thread Guo Ren
Dt-bindings doc about C-SKY Multi-processors interrupt controller. Changelog: - Should be: '#interrupt-cells' not 'interrupt-cells' Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40

[PATCH V13 2/4] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-10-16 Thread Guo Ren
Dt-bindings doc about C-SKY Multi-processors interrupt controller. Changelog: - Should be: '#interrupt-cells' not 'interrupt-cells' Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40

[PATCH V13 4/4] dt-bindings: interrupt-controller: C-SKY APB intc

2018-10-16 Thread Guo Ren
- Dt-bindings doc about C-SKY apb bus interrupt controller. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../interrupt-controller/csky,apb-intc.txt | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt

[PATCH V13 4/4] dt-bindings: interrupt-controller: C-SKY APB intc

2018-10-16 Thread Guo Ren
- Dt-bindings doc about C-SKY apb bus interrupt controller. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../interrupt-controller/csky,apb-intc.txt | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt

[PATCH V13 3/4] irqchip: add C-SKY APB bus interrupt controller

2018-10-16 Thread Guo Ren
The driver is for C-SKY APB bus interrupt controller. It's a simple interrupt controller which use pending reg to detect the irq and use enable/disable reg to mask/unmask interrupt sources. A lot of SOCs based on C-SKY CPU use the interrupt controller as root controller. Signed-off-by: Guo Ren

[PATCH V13 1/4] irqchip: add C-SKY SMP interrupt controller

2018-10-16 Thread Guo Ren
The driver is for C-SKY SMP interrupt controller. It support 16 soft-irqs, 16 private-irqs, and 992 max external-irqs, a total of 1024 interrupts. C-SKY CPU 807/810/860 SMP/non-SMP could use it. Signed-off-by: Guo Ren Cc: Thomas Gleixner Cc: Marc Zyngier --- Changelog: - Remove

[PATCH V13 3/4] irqchip: add C-SKY APB bus interrupt controller

2018-10-16 Thread Guo Ren
The driver is for C-SKY APB bus interrupt controller. It's a simple interrupt controller which use pending reg to detect the irq and use enable/disable reg to mask/unmask interrupt sources. A lot of SOCs based on C-SKY CPU use the interrupt controller as root controller. Signed-off-by: Guo Ren

[PATCH V13 1/4] irqchip: add C-SKY SMP interrupt controller

2018-10-16 Thread Guo Ren
The driver is for C-SKY SMP interrupt controller. It support 16 soft-irqs, 16 private-irqs, and 992 max external-irqs, a total of 1024 interrupts. C-SKY CPU 807/810/860 SMP/non-SMP could use it. Signed-off-by: Guo Ren Cc: Thomas Gleixner Cc: Marc Zyngier --- Changelog: - Remove

[PATCH V13 0/4] C-SKY(csky) Linux Intc Driver

2018-10-16 Thread Guo Ren
changelog. Hope it could be merged into linux-4.20 and I'm very grateful to any help. Guo Ren (4): irqchip: add C-SKY SMP interrupt controller dt-bindings: interrupt-controller: C-SKY SMP intc irqchip: add C-SKY APB bus interrupt controller dt-bindings: interrupt-controller: C-SK

[PATCH V13 0/4] C-SKY(csky) Linux Intc Driver

2018-10-16 Thread Guo Ren
changelog. Hope it could be merged into linux-4.20 and I'm very grateful to any help. Guo Ren (4): irqchip: add C-SKY SMP interrupt controller dt-bindings: interrupt-controller: C-SKY SMP intc irqchip: add C-SKY APB bus interrupt controller dt-bindings: interrupt-controller: C-SK

[PATCH V9 21/21] csky: support dword access for get_user_size()

2018-10-15 Thread Guo Ren
ow abiv2 gcc ABI for dword access. abiv1 couldn't support __get_user_dword now. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/include/asm/uaccess.h | 140 1 file changed, 56 insertions(+), 84 deletions(-) diff --git a/arch/csky/include/asm/uaccess

[PATCH V9 21/21] csky: support dword access for get_user_size()

2018-10-15 Thread Guo Ren
ow abiv2 gcc ABI for dword access. abiv1 couldn't support __get_user_dword now. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/include/asm/uaccess.h | 140 1 file changed, 56 insertions(+), 84 deletions(-) diff --git a/arch/csky/include/asm/uaccess

[PATCH V9 20/21] MAINTAINERS: Add csky

2018-10-15 Thread Guo Ren
Add a maintainer information for the csky(C-SKY) architecture. Signed-off-by: Guo Ren --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d870cb5..9dac20e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3211,6 +3211,15 @@ T: git git

[PATCH V9 20/21] MAINTAINERS: Add csky

2018-10-15 Thread Guo Ren
Add a maintainer information for the csky(C-SKY) architecture. Signed-off-by: Guo Ren --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d870cb5..9dac20e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3211,6 +3211,15 @@ T: git git

[PATCH V9 19/21] dt-bindings: Add vendor prefix for csky

2018-10-15 Thread Guo Ren
Add csky vendor definition. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor

[PATCH V9 19/21] dt-bindings: Add vendor prefix for csky

2018-10-15 Thread Guo Ren
Add csky vendor definition. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor

[PATCH V9 17/21] csky: Misc headers

2018-10-15 Thread Guo Ren
This patch adds csky registers' definition, bitops, byteorder, asm-offsets codes. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/abiv1/inc/abi/reg_ops.h | 27 +++ arch/csky/abiv1/inc/abi/regdef.h | 26 ++ arch/csky/abiv2/inc/abi/reg_ops.h | 17

[PATCH V9 18/21] dt-bindings: csky CPU Bindings

2018-10-15 Thread Guo Ren
This patch adds the documentation to describe that how to add cpu nodes in dts for SMP. Signed-off-by: Guo Ren Cc: Rob Herring --- Changelog: - Add compatible. - Remove status part. --- --- Documentation/devicetree/bindings/csky/cpus.txt | 73 + 1 file changed, 73

[PATCH V9 17/21] csky: Misc headers

2018-10-15 Thread Guo Ren
This patch adds csky registers' definition, bitops, byteorder, asm-offsets codes. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/abiv1/inc/abi/reg_ops.h | 27 +++ arch/csky/abiv1/inc/abi/regdef.h | 26 ++ arch/csky/abiv2/inc/abi/reg_ops.h | 17

[PATCH V9 18/21] dt-bindings: csky CPU Bindings

2018-10-15 Thread Guo Ren
This patch adds the documentation to describe that how to add cpu nodes in dts for SMP. Signed-off-by: Guo Ren Cc: Rob Herring --- Changelog: - Add compatible. - Remove status part. --- --- Documentation/devicetree/bindings/csky/cpus.txt | 73 + 1 file changed, 73

[PATCH V9 16/21] csky: SMP support

2018-10-15 Thread Guo Ren
This patch adds boot, ipi, hotplug codes for SMP. Signed-off-by: Guo Ren Cc: Marc Zyngier Cc: Mark Rutland Cc: Peter Zijlstra Cc: Arnd Bergmann --- Changelog: - Use PER_CPU_DEFINE for ipi_data. - Remove unused variable and add static for enable_smp_ipi(). - Add comment to explain pass

[PATCH V9 16/21] csky: SMP support

2018-10-15 Thread Guo Ren
This patch adds boot, ipi, hotplug codes for SMP. Signed-off-by: Guo Ren Cc: Marc Zyngier Cc: Mark Rutland Cc: Peter Zijlstra Cc: Arnd Bergmann --- Changelog: - Use PER_CPU_DEFINE for ipi_data. - Remove unused variable and add static for enable_smp_ipi(). - Add comment to explain pass

[PATCH V9 15/21] csky: Debug and Ptrace GDB

2018-10-15 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 104 arch/csky/kernel/dumpstack.c| 66 arch/csky/kernel/ptrace.c

[PATCH V9 15/21] csky: Debug and Ptrace GDB

2018-10-15 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 104 arch/csky/kernel/dumpstack.c| 66 arch/csky/kernel/ptrace.c

[PATCH V9 14/21] csky: User access

2018-10-15 Thread Guo Ren
The patch adds "user access from kernel" codes. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/include/asm/uaccess.h | 416 arch/csky/lib/usercopy.c| 262 + 2 files changed, 678 insertions(+) create m

[PATCH V9 14/21] csky: User access

2018-10-15 Thread Guo Ren
The patch adds "user access from kernel" codes. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/include/asm/uaccess.h | 416 arch/csky/lib/usercopy.c| 262 + 2 files changed, 678 insertions(+) create m

[PATCH V9 13/21] csky: Library functions

2018-10-15 Thread Guo Ren
This patch adds string optimize codes and some auxiliary codes. Signed-off-by: Chen Linfei Signed-off-by: Mao Han Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - Use bt instead of jbt in asm, jbt will cause relocation problem. - remove kernel/platform.c --- --- arch/csky/abiv1

[PATCH V9 13/21] csky: Library functions

2018-10-15 Thread Guo Ren
This patch adds string optimize codes and some auxiliary codes. Signed-off-by: Chen Linfei Signed-off-by: Mao Han Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - Use bt instead of jbt in asm, jbt will cause relocation problem. - remove kernel/platform.c --- --- arch/csky/abiv1

[PATCH V9 12/21] csky: ELF and module probe

2018-10-15 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/abiv1/inc/abi/elf.h | 26 arch/csky/abiv2/inc/abi/elf.h | 43 arch/csky/include/asm/elf.h | 85 +++ arch/csky

[PATCH V9 12/21] csky: ELF and module probe

2018-10-15 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/abiv1/inc/abi/elf.h | 26 arch/csky/abiv2/inc/abi/elf.h | 43 arch/csky/include/asm/elf.h | 85 +++ arch/csky

[PATCH V9 10/21] csky: IRQ handling

2018-10-15 Thread Guo Ren
This patch adds IRQ handling files. Signed-off-by: Guo Ren Cc: Arnd Bergmann Cc: Thomas Gleixner --- Changelog: - Use CONFIG_GENERIC_IRQ_MULTI_HANDLER --- --- arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 22

[PATCH V9 08/21] csky: Process management and Signal

2018-10-15 Thread Guo Ren
This patch adds files related to task_switch, sigcontext, signal, fpu context switch. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - abiv2/fpu.c: Userspace should never be sent NSIGXXX as a si_code. Use FPE_FLTUNK instead. - abiv2/fpu.c: Use force_sig_fault instead

[PATCH V9 07/21] csky: MMU and page table management

2018-10-15 Thread Guo Ren
2100.armlinux.org.uk/ Signed-off-by: Guo Ren Cc: Christoph Hellwig Cc: Arnd Bergmann --- Changelog: - fixup pfn_valid(pfn) compile error for modules. - fixup compile warning for CONFIG_DEBUG_HIGHMEM. - fixup module compile error for EXPORT_SYMBOL(empty_zero_page). - dma-mapping: fix up dma_map

[PATCH V9 10/21] csky: IRQ handling

2018-10-15 Thread Guo Ren
This patch adds IRQ handling files. Signed-off-by: Guo Ren Cc: Arnd Bergmann Cc: Thomas Gleixner --- Changelog: - Use CONFIG_GENERIC_IRQ_MULTI_HANDLER --- --- arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 22

[PATCH V9 08/21] csky: Process management and Signal

2018-10-15 Thread Guo Ren
This patch adds files related to task_switch, sigcontext, signal, fpu context switch. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - abiv2/fpu.c: Userspace should never be sent NSIGXXX as a si_code. Use FPE_FLTUNK instead. - abiv2/fpu.c: Use force_sig_fault instead

[PATCH V9 07/21] csky: MMU and page table management

2018-10-15 Thread Guo Ren
2100.armlinux.org.uk/ Signed-off-by: Guo Ren Cc: Christoph Hellwig Cc: Arnd Bergmann --- Changelog: - fixup pfn_valid(pfn) compile error for modules. - fixup compile warning for CONFIG_DEBUG_HIGHMEM. - fixup module compile error for EXPORT_SYMBOL(empty_zero_page). - dma-mapping: fix up dma_map

[PATCH V9 05/21] csky: System Call

2018-10-15 Thread Guo Ren
This patch adds files related to syscall. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/include/asm/syscall.h | 71 + arch/csky/include/asm/syscalls.h| 15 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c

[PATCH V9 09/21] csky: VDSO and rt_sigreturn

2018-10-15 Thread Guo Ren
This patch adds files related to VDSO and our VDSO only support rt_sigreturn. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/abiv1/inc/abi/vdso.h | 17 + arch/csky/abiv2/inc/abi/vdso.h | 23 +++ arch/csky/include/asm/vdso.h | 12 ++ arch/csky/kernel/vdso.c

[PATCH V9 05/21] csky: System Call

2018-10-15 Thread Guo Ren
This patch adds files related to syscall. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/include/asm/syscall.h | 71 + arch/csky/include/asm/syscalls.h| 15 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c

[PATCH V9 09/21] csky: VDSO and rt_sigreturn

2018-10-15 Thread Guo Ren
This patch adds files related to VDSO and our VDSO only support rt_sigreturn. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/abiv1/inc/abi/vdso.h | 17 + arch/csky/abiv2/inc/abi/vdso.h | 23 +++ arch/csky/include/asm/vdso.h | 12 ++ arch/csky/kernel/vdso.c

[PATCH V9 06/21] csky: Cache and TLB routines

2018-10-15 Thread Guo Ren
This patch adds cache and tlb sync codes for abiv1 & abiv2. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - fixup module compile error for EXPORT_SYMBOL(cache_wbinv_range). - tlb.h & cacheflush.h: fix flush_cache_range and tlb_start_vma of abiv1 in flush_cache_r

[PATCH V9 06/21] csky: Cache and TLB routines

2018-10-15 Thread Guo Ren
This patch adds cache and tlb sync codes for abiv1 & abiv2. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - fixup module compile error for EXPORT_SYMBOL(cache_wbinv_range). - tlb.h & cacheflush.h: fix flush_cache_range and tlb_start_vma of abiv1 in flush_cache_r

[PATCH V9 11/21] csky: Atomic operations

2018-10-15 Thread Guo Ren
This patch adds atomic, cmpxchg, spinlock files. Signed-off-by: Guo Ren Cc: Peter Zijlstra Cc: Andrea Parri Cc: Arnd Bergmann --- Changlog: - SMP supported - ticklock supported - queue-rwlock supported --- --- arch/csky/include/asm/atomic.h | 212 + arch

[PATCH V9 11/21] csky: Atomic operations

2018-10-15 Thread Guo Ren
This patch adds atomic, cmpxchg, spinlock files. Signed-off-by: Guo Ren Cc: Peter Zijlstra Cc: Andrea Parri Cc: Arnd Bergmann --- Changlog: - SMP supported - ticklock supported - queue-rwlock supported --- --- arch/csky/include/asm/atomic.h | 212 + arch

[PATCH V9 04/21] csky: Exception handling and mm-fault

2018-10-15 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - Fixup r15 may used by unalignment access and remove r1. --- --- arch/csky/abiv1/alignment.c | 326 + arch/csky/abiv1/inc/abi

[PATCH V9 04/21] csky: Exception handling and mm-fault

2018-10-15 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - Fixup r15 may used by unalignment access and remove r1. --- --- arch/csky/abiv1/alignment.c | 326 + arch/csky/abiv1/inc/abi

[PATCH V9 01/21] csky: Build infrastructure

2018-10-15 Thread Guo Ren
This patch adds Makefile, Kconfig for build infrastructure. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - make allmodconfig is OK. - Use BUILTIN_DTB as string, remove bool define for compile. - Add xor.h in asm/Kbuild - Add compat.h in asm/Kbuild. - Add select DMA_DIRECT_OPS

[PATCH V9 03/21] csky: Kernel booting

2018-10-15 Thread Guo Ren
This patch add boot code. Thx boot params is all in dtb and it's the only way to let kernel get bootloader param information. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - Use built-in dtb when dtb param is NULL. - Add dummy console for allmodconfig. --- --- arch/csky/kernel

[PATCH V9 03/21] csky: Kernel booting

2018-10-15 Thread Guo Ren
This patch add boot code. Thx boot params is all in dtb and it's the only way to let kernel get bootloader param information. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - Use built-in dtb when dtb param is NULL. - Add dummy console for allmodconfig. --- --- arch/csky/kernel

[PATCH V9 01/21] csky: Build infrastructure

2018-10-15 Thread Guo Ren
This patch adds Makefile, Kconfig for build infrastructure. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- Changelog: - make allmodconfig is OK. - Use BUILTIN_DTB as string, remove bool define for compile. - Add xor.h in asm/Kbuild - Add compat.h in asm/Kbuild. - Add select DMA_DIRECT_OPS

[PATCH V9 00/21] C-SKY(csky) Linux Kernel Port

2018-10-15 Thread Guo Ren
cleanup Kconfig and Makefile. 423d97e csky: cancel subdirectories cae2af4 csky: use asm-generic/fcntl.h Guo Ren (21): csky: Build infrastructure csky: defconfig csky: Kernel booting csky: Exception handling and mm-fault csky: System Call csky: Cache and TLB routines csky: MMU and

[PATCH V9 02/21] csky: defconfig

2018-10-15 Thread Guo Ren
This patch adds csky defconfig. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/configs/defconfig | 61 + 1 file changed, 61 insertions(+) create mode 100644 arch/csky/configs/defconfig diff --git a/arch/csky/configs/defconfig b/arch/csky

[PATCH V9 00/21] C-SKY(csky) Linux Kernel Port

2018-10-15 Thread Guo Ren
cleanup Kconfig and Makefile. 423d97e csky: cancel subdirectories cae2af4 csky: use asm-generic/fcntl.h Guo Ren (21): csky: Build infrastructure csky: defconfig csky: Kernel booting csky: Exception handling and mm-fault csky: System Call csky: Cache and TLB routines csky: MMU and

[PATCH V9 02/21] csky: defconfig

2018-10-15 Thread Guo Ren
This patch adds csky defconfig. Signed-off-by: Guo Ren Cc: Arnd Bergmann --- arch/csky/configs/defconfig | 61 + 1 file changed, 61 insertions(+) create mode 100644 arch/csky/configs/defconfig diff --git a/arch/csky/configs/defconfig b/arch/csky

[PATCH V13 4/4] dt-bindings: timer: gx6605s SOC timer

2018-10-14 Thread Guo Ren
Dt-bindings doc for gx6605s SOC's system timer. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s

[PATCH V13 3/4] clocksource: add gx6605s SOC system timer

2018-10-14 Thread Guo Ren
. Signed-off-by: Guo Ren Cc: Daniel Lezcano --- Changelog: - pass checkpatch.pl - Add COMIPLE_TEST in Kconfig - no cast is needed for "struct clock_event_device *ce = dev" - remove: extra space after (u64) - Add License and Copyright - Use timer-of framework - Change name with upstrea

[PATCH V13 2/4] dt-bindings: timer: C-SKY Multi-processor timer

2018-10-14 Thread Guo Ren
Dt-bingdings doc for C-SKY SMP system setting. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- Changelog: - Drop the interrupt-parent. --- --- .../devicetree/bindings/timer/csky,mptimer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation

[PATCH V13 3/4] clocksource: add gx6605s SOC system timer

2018-10-14 Thread Guo Ren
. Signed-off-by: Guo Ren Cc: Daniel Lezcano --- Changelog: - pass checkpatch.pl - Add COMIPLE_TEST in Kconfig - no cast is needed for "struct clock_event_device *ce = dev" - remove: extra space after (u64) - Add License and Copyright - Use timer-of framework - Change name with upstrea

[PATCH V13 2/4] dt-bindings: timer: C-SKY Multi-processor timer

2018-10-14 Thread Guo Ren
Dt-bingdings doc for C-SKY SMP system setting. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- Changelog: - Drop the interrupt-parent. --- --- .../devicetree/bindings/timer/csky,mptimer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation

[PATCH V13 4/4] dt-bindings: timer: gx6605s SOC timer

2018-10-14 Thread Guo Ren
Dt-bindings doc for gx6605s SOC's system timer. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s

[PATCH V13 1/4] clocksource: add C-SKY SMP timer

2018-10-14 Thread Guo Ren
The driver is for C-SKY SMP timer. It only support oneshot event and 32bit overflow for clocksource. Per cpu core has one timer and all timers share one clock-counter-input the same clocksource. This use mfcr instructions to access the regs. Signed-off-by: Guo Ren Cc: Daniel Lezcano

[PATCH V13 1/4] clocksource: add C-SKY SMP timer

2018-10-14 Thread Guo Ren
The driver is for C-SKY SMP timer. It only support oneshot event and 32bit overflow for clocksource. Per cpu core has one timer and all timers share one clock-counter-input the same clocksource. This use mfcr instructions to access the regs. Signed-off-by: Guo Ren Cc: Daniel Lezcano

Re: [PATCH V12 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-14 Thread Guo Ren
Hi Daniel, On Sun, Oct 14, 2018 at 10:38:36PM +0200, Daniel Lezcano wrote: > On 14/10/2018 18:26, Guo Ren wrote: > Thanks Guo, > > the descriptions look ok for the timer part. Can you resend the DT > bindings + timers patches separately with the commit log updated ? Ok, immediat

Re: [PATCH V12 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-14 Thread Guo Ren
Hi Daniel, On Sun, Oct 14, 2018 at 10:38:36PM +0200, Daniel Lezcano wrote: > On 14/10/2018 18:26, Guo Ren wrote: > Thanks Guo, > > the descriptions look ok for the timer part. Can you resend the DT > bindings + timers patches separately with the commit log updated ? Ok, immediat

Re: [PATCH V12 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-14 Thread Guo Ren
Hi Daniel, Thx for reply and review. On Sat, Oct 13, 2018 at 10:50:34PM +0200, Daniel Lezcano wrote: > On 12/10/2018 14:02, Guo Ren wrote: > > This is about 12th patchset for C-SKY linux drivers and it should pair > > with 8th kernel patchset. > > Guo, > > I'm

Re: [PATCH V12 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-14 Thread Guo Ren
Hi Daniel, Thx for reply and review. On Sat, Oct 13, 2018 at 10:50:34PM +0200, Daniel Lezcano wrote: > On 12/10/2018 14:02, Guo Ren wrote: > > This is about 12th patchset for C-SKY linux drivers and it should pair > > with 8th kernel patchset. > > Guo, > > I'm

Re: [PATCH V8 16/21] csky: SMP support

2018-10-13 Thread Guo Ren
Hi Marc, Thx for the review. On Fri, Oct 12, 2018 at 12:09:52PM +0100, Marc Zyngier wrote: > On 12/10/18 05:42, Guo Ren wrote: > > This patch adds boot, ipi, hotplug code for SMP. > > +static struct { > > + unsigned long bits cacheline_aligned; > > +} ipi_data[N

Re: [PATCH V8 16/21] csky: SMP support

2018-10-13 Thread Guo Ren
Hi Marc, Thx for the review. On Fri, Oct 12, 2018 at 12:09:52PM +0100, Marc Zyngier wrote: > On 12/10/18 05:42, Guo Ren wrote: > > This patch adds boot, ipi, hotplug code for SMP. > > +static struct { > > + unsigned long bits cacheline_aligned; > > +} ipi_data[N

Re: [PATCH V8 18/21] dt-bindings: csky CPU Bindings

2018-10-12 Thread Guo Ren
On Fri, Oct 12, 2018 at 06:35:51AM -0500, Rob Herring wrote: > On Fri, Oct 12, 2018 at 12:42:53PM +0800, Guo Ren wrote: > > This patch adds the documentation to describe that how to add cpu nodes in > > dts for SMP. > > > > Signed-off-by: Guo Ren > > Cc: Rob He

Re: [PATCH V8 18/21] dt-bindings: csky CPU Bindings

2018-10-12 Thread Guo Ren
On Fri, Oct 12, 2018 at 06:35:51AM -0500, Rob Herring wrote: > On Fri, Oct 12, 2018 at 12:42:53PM +0800, Guo Ren wrote: > > This patch adds the documentation to describe that how to add cpu nodes in > > dts for SMP. > > > > Signed-off-by: Guo Ren > > Cc: Rob He

[PATCH V12 6/8] dt-bindings: timer: C-SKY Multi-processor timer

2018-10-12 Thread Guo Ren
Dt-bingdings doc for C-SKY SMP system setting. Changelog: - Drop the interrupt-parent. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../devicetree/bindings/timer/csky,mptimer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation

[PATCH V12 6/8] dt-bindings: timer: C-SKY Multi-processor timer

2018-10-12 Thread Guo Ren
Dt-bingdings doc for C-SKY SMP system setting. Changelog: - Drop the interrupt-parent. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../devicetree/bindings/timer/csky,mptimer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation

[PATCH V12 7/8] clocksource: add gx6605s SOC system timer

2018-10-12 Thread Guo Ren
Signed-off-by: Guo Ren Cc: Daniel Lezcano --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/timer-gx6605s.c | 154 3 files changed, 163 insertions(+) create mode 100644 drivers/clocksource/timer

[PATCH V12 8/8] dt-bindings: timer: gx6605s SOC timer

2018-10-12 Thread Guo Ren
Dt-bindings doc for gx6605s SOC's system timer. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s

[PATCH V12 7/8] clocksource: add gx6605s SOC system timer

2018-10-12 Thread Guo Ren
Signed-off-by: Guo Ren Cc: Daniel Lezcano --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/timer-gx6605s.c | 154 3 files changed, 163 insertions(+) create mode 100644 drivers/clocksource/timer

[PATCH V12 8/8] dt-bindings: timer: gx6605s SOC timer

2018-10-12 Thread Guo Ren
Dt-bindings doc for gx6605s SOC's system timer. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s

[PATCH V12 5/8] clocksource: add C-SKY SMP timer

2018-10-12 Thread Guo Ren
CPUHP_AP_CSKY_TIMER_STARTING. - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h. - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Coding convention with upstream feed-back. Signed-off-by: Guo Ren Cc: Daniel Lezcano --- drivers/clocksource/Kconfig

[PATCH V12 5/8] clocksource: add C-SKY SMP timer

2018-10-12 Thread Guo Ren
CPUHP_AP_CSKY_TIMER_STARTING. - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h. - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Coding convention with upstream feed-back. Signed-off-by: Guo Ren Cc: Daniel Lezcano --- drivers/clocksource/Kconfig

[PATCH V12 4/8] dt-bindings: interrupt-controller: C-SKY APB intc

2018-10-12 Thread Guo Ren
- Dt-bindings doc about C-SKY apb bus interrupt controller. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../interrupt-controller/csky,apb-intc.txt | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt

<    1   2   3   4   5   6   7   8   9   10   >