[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

[PATCH V12 3/8] irqchip: add C-SKY APB bus interrupt controller

2018-10-12 Thread Guo Ren
back - add INTC_IFR to clear irq-pending - remove CSKY_VECIRQ_LEGENCY - change to generic irq chip framework - add License and Copyright - use irq_domain_add_linear instead of leagcy Signed-off-by: Guo Ren Cc: Mark Rutland --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makef

[PATCH V12 2/8] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-10-12 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 V12 3/8] irqchip: add C-SKY APB bus interrupt controller

2018-10-12 Thread Guo Ren
back - add INTC_IFR to clear irq-pending - remove CSKY_VECIRQ_LEGENCY - change to generic irq chip framework - add License and Copyright - use irq_domain_add_linear instead of leagcy Signed-off-by: Guo Ren Cc: Mark Rutland --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makef

[PATCH V12 2/8] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-10-12 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 V12 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-12 Thread Guo Ren
, and also modify the related codes in csky kernel patchset. - Add COMPILE_TEST for csky_mp_timer. - Fixup smp boot error, cpuhp_setup_state must after timer_of_init() for csky_mp_timer. Any feedback is welcome, thx for all people review my patchset. Guo Ren (8): irqchip: add C-SKY SMP

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

2018-10-12 Thread Guo Ren
, and also modify the related codes in csky kernel patchset. - Add COMPILE_TEST for csky_mp_timer. - Fixup smp boot error, cpuhp_setup_state must after timer_of_init() for csky_mp_timer. Any feedback is welcome, thx for all people review my patchset. Guo Ren (8): irqchip: add C-SKY SMP

[PATCH V12 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-12 Thread Guo Ren
-off-by: Guo Ren Cc: Marc Zyngier --- drivers/irqchip/Kconfig | 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-csky-mpintc.c | 198 ++ 3 files changed, 208 insertions(+) create mode 100644 drivers/irqchip/irq-csky-mpintc.c

[PATCH V12 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-12 Thread Guo Ren
-off-by: Guo Ren Cc: Marc Zyngier --- drivers/irqchip/Kconfig | 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-csky-mpintc.c | 198 ++ 3 files changed, 208 insertions(+) create mode 100644 drivers/irqchip/irq-csky-mpintc.c

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

2018-10-12 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 --- Documentation/devicetree/bindings/csky/cpus.txt | 70 + 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree

[PATCH V8 21/21] csky: add support get_user_size access dword

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

[PATCH V8 21/21] csky: add support get_user_size access dword

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

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

2018-10-12 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 --- Documentation/devicetree/bindings/csky/cpus.txt | 70 + 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree

[PATCH V8 20/21] MAINTAINERS: Add csky

2018-10-12 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 V8 19/21] dt-bindings: Add vendor prefix for csky

2018-10-12 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 V8 19/21] dt-bindings: Add vendor prefix for csky

2018-10-12 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 V8 20/21] MAINTAINERS: Add csky

2018-10-12 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 V8 17/21] csky: Misc headers

2018-10-12 Thread Guo Ren
This patch adds csky register definition, byteorder, asm-offsets codes. Signed-off-by: Guo Ren --- 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 +++ arch/csky/abiv2/inc/abi

[PATCH V8 17/21] csky: Misc headers

2018-10-12 Thread Guo Ren
This patch adds csky register definition, byteorder, asm-offsets codes. Signed-off-by: Guo Ren --- 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 +++ arch/csky/abiv2/inc/abi

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

2018-10-11 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren --- 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 | 314

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

2018-10-11 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren --- 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 | 314

[PATCH V8 16/21] csky: SMP support

2018-10-11 Thread Guo Ren
ly use IPI_IRQ. The modification also involves csky_mp_intc. Signed-off-by: Guo Ren Cc: Marc Zyngier Cc: Mark Rutland Cc: Peter Zijlstra --- arch/csky/include/asm/smp.h | 28 ++ arch/csky/kernel/smp.c | 237 2 files changed, 265 insertions(+

[PATCH V8 16/21] csky: SMP support

2018-10-11 Thread Guo Ren
ly use IPI_IRQ. The modification also involves csky_mp_intc. Signed-off-by: Guo Ren Cc: Marc Zyngier Cc: Mark Rutland Cc: Peter Zijlstra --- arch/csky/include/asm/smp.h | 28 ++ arch/csky/kernel/smp.c | 237 2 files changed, 265 insertions(+

[PATCH V8 14/21] csky: User access

2018-10-11 Thread Guo Ren
This patch adds "user access from kernel" codes. Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 416 arch/csky/lib/usercopy.c| 262 + 2 files changed, 678 insertions(+) create mode 100644 arch/cs

[PATCH V8 14/21] csky: User access

2018-10-11 Thread Guo Ren
This patch adds "user access from kernel" codes. Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 416 arch/csky/lib/usercopy.c| 262 + 2 files changed, 678 insertions(+) create mode 100644 arch/cs

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

2018-10-11 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- 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/kernel/module.c

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

2018-10-11 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- 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/kernel/module.c

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

2018-10-11 Thread Guo Ren
This patch adds files related to task_switch, sigcontext, signal. 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. Signed-off-by: Guo Ren --- arch/csky/abiv2/fpu.c | 275

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

2018-10-11 Thread Guo Ren
This patch adds files related to task_switch, sigcontext, signal. 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. Signed-off-by: Guo Ren --- arch/csky/abiv2/fpu.c | 275

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

2018-10-11 Thread Guo Ren
h vma->mm's asid for cache_flush_line and we use cache_wbinv_all() first. Wwe'll improve with cache_flush(vma, start, end) in future. For tlb_start_vma, we make it the same as other arch. - remove the abi/tlb.h Signed-off-by: Guo Ren --- arch/csky/abiv1/cacheflush.c | 52 +++

[PATCH V8 11/21] csky: Atomic operations

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

[PATCH V8 10/21] csky: IRQ handling

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

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

2018-10-11 Thread Guo Ren
h vma->mm's asid for cache_flush_line and we use cache_wbinv_all() first. Wwe'll improve with cache_flush(vma, start, end) in future. For tlb_start_vma, we make it the same as other arch. - remove the abi/tlb.h Signed-off-by: Guo Ren --- arch/csky/abiv1/cacheflush.c | 52 +++

[PATCH V8 11/21] csky: Atomic operations

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

[PATCH V8 10/21] csky: IRQ handling

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

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

2018-10-11 Thread Guo Ren
This patch adds files related to VDSO and our VDSO only support rt_sigreturn. Signed-off-by: Guo Ren --- 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| 86

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

2018-10-11 Thread Guo Ren
2100.armlinux.org.uk/ Signed-off-by: Guo Ren Cc: Christoph Hellwig --- arch/csky/abiv1/inc/abi/ckmmu.h| 75 arch/csky/abiv1/inc/abi/page.h | 27 +++ arch/csky/abiv1/inc/abi/pgtable-bits.h | 37 arch/csky/abiv1/mmap.c | 66 +++ arch/csky/abiv2/inc

[PATCH V8 13/21] csky: Library functions

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

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

2018-10-11 Thread Guo Ren
This patch adds files related to VDSO and our VDSO only support rt_sigreturn. Signed-off-by: Guo Ren --- 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| 86

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

2018-10-11 Thread Guo Ren
2100.armlinux.org.uk/ Signed-off-by: Guo Ren Cc: Christoph Hellwig --- arch/csky/abiv1/inc/abi/ckmmu.h| 75 arch/csky/abiv1/inc/abi/page.h | 27 +++ arch/csky/abiv1/inc/abi/pgtable-bits.h | 37 arch/csky/abiv1/mmap.c | 66 +++ arch/csky/abiv2/inc

[PATCH V8 13/21] csky: Library functions

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

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

2018-10-11 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren --- arch/csky/abiv1/alignment.c | 323 arch/csky/abiv1/inc/abi/entry.h | 160 arch/csky/abiv2/inc/abi/entry.h | 156 arch/csky

[PATCH V8 05/21] csky: System Call

2018-10-11 Thread Guo Ren
This patch adds files related to syscall. Signed-off-by: Guo Ren --- 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 | 43

[PATCH V8 05/21] csky: System Call

2018-10-11 Thread Guo Ren
This patch adds files related to syscall. Signed-off-by: Guo Ren --- 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 | 43

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

2018-10-11 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren --- arch/csky/abiv1/alignment.c | 323 arch/csky/abiv1/inc/abi/entry.h | 160 arch/csky/abiv2/inc/abi/entry.h | 156 arch/csky

[PATCH V8 03/21] csky: Kernel booting

2018-10-11 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. Changelog: - Use built-in dtb when dtb param is NULL. - Add dummy console for allmodconfig. Signed-off-by: Guo Ren --- arch/csky/kernel/head.S| 77

[PATCH V8 03/21] csky: Kernel booting

2018-10-11 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. Changelog: - Use built-in dtb when dtb param is NULL. - Add dummy console for allmodconfig. Signed-off-by: Guo Ren --- arch/csky/kernel/head.S| 77

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

2018-10-11 Thread Guo Ren
cd8f3 csky: revert back Kconfig select. 590c7e6 csky: bugfix compile error with CONFIG_AUDIT 1989292 csky: revert some back with cleanup unistd.h f1454fe csky: cleanup unistd.h 5d2985f csky: cleanup Kconfig and Makefile. 423d97e csky: cancel subdirectories cae2af4 csky: use asm-generic/fcntl.h Guo Ren (21

[PATCH V8 02/21] csky: defconfig

2018-10-11 Thread Guo Ren
This patch adds csky defconfig. Signed-off-by: Guo Ren --- 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/configs/defconfig new

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

2018-10-11 Thread Guo Ren
cd8f3 csky: revert back Kconfig select. 590c7e6 csky: bugfix compile error with CONFIG_AUDIT 1989292 csky: revert some back with cleanup unistd.h f1454fe csky: cleanup unistd.h 5d2985f csky: cleanup Kconfig and Makefile. 423d97e csky: cancel subdirectories cae2af4 csky: use asm-generic/fcntl.h Guo Ren (21

[PATCH V8 02/21] csky: defconfig

2018-10-11 Thread Guo Ren
This patch adds csky defconfig. Signed-off-by: Guo Ren --- 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/configs/defconfig new

[PATCH V8 01/21] csky: Build infrastructure

2018-10-11 Thread Guo Ren
in Makefile. Signed-off-by: Guo Ren --- arch/csky/Kconfig | 205 + arch/csky/Kconfig.debug| 9 ++ arch/csky/Makefile | 93 +++ arch/csky/abiv1/Makefile | 8 ++ arch/csky/abiv2/Makefile

[PATCH V8 01/21] csky: Build infrastructure

2018-10-11 Thread Guo Ren
in Makefile. Signed-off-by: Guo Ren --- arch/csky/Kconfig | 205 + arch/csky/Kconfig.debug| 9 ++ arch/csky/Makefile | 93 +++ arch/csky/abiv1/Makefile | 8 ++ arch/csky/abiv2/Makefile

Re: [PATCH V11 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-11 Thread Guo Ren
Hi Marc, On Tue, Oct 09, 2018 at 04:11:05PM +0100, Marc Zyngier wrote: > On 09/10/18 15:41, Guo Ren wrote: > > - Irq-csky-mpintc is C-SKY smp system interrupt controller and it > >could support 16 soft irqs, 16 private irqs, and 992 max common > >irqs. > > &

Re: [PATCH V11 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-11 Thread Guo Ren
Hi Marc, On Tue, Oct 09, 2018 at 04:11:05PM +0100, Marc Zyngier wrote: > On 09/10/18 15:41, Guo Ren wrote: > > - Irq-csky-mpintc is C-SKY smp system interrupt controller and it > >could support 16 soft irqs, 16 private irqs, and 992 max common > >irqs. > > &

Re: [PATCH V10 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-09 Thread Guo Ren
allback in irq-csky-mpintc.c void __init setup_smp_ipi(void) { int rc; ipi_irq = arch_ipi_irq_mapping(); if (ipi_irq == 0) panic("%s IRQ mapping failed\n", __func__); rc = request_percpu_irq(ipi_irq, handle_ipi, "IPI Interrupt", _dummy_dev); if (rc) panic("%s IRQ request failed\n", __func__); enable_smp_ipi(); } Best Regards Guo Ren

Re: [PATCH V10 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-09 Thread Guo Ren
allback in irq-csky-mpintc.c void __init setup_smp_ipi(void) { int rc; ipi_irq = arch_ipi_irq_mapping(); if (ipi_irq == 0) panic("%s IRQ mapping failed\n", __func__); rc = request_percpu_irq(ipi_irq, handle_ipi, "IPI Interrupt", _dummy_dev); if (rc) panic("%s IRQ request failed\n", __func__); enable_smp_ipi(); } Best Regards Guo Ren

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

2018-10-09 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 V11 4/8] dt-bindings: interrupt-controller: C-SKY APB intc

2018-10-09 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 V11 7/8] clocksource: add gx6605s SOC system timer

2018-10-09 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 V11 7/8] clocksource: add gx6605s SOC system timer

2018-10-09 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 V11 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-09 Thread Guo Ren
- Move IPI_IRQ into the driver - Remove irq_set_default_host() and use set_ipi_irq_mapping() - Change name with upstream feed-back - Change irq map, reserve soft_irq & private_irq space - Add License and Copyright - Support set_affinity for irq balance in SMP Signed-off-by: Guo Ren Cc:

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

2018-10-09 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 V11 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-09 Thread Guo Ren
- Move IPI_IRQ into the driver - Remove irq_set_default_host() and use set_ipi_irq_mapping() - Change name with upstream feed-back - Change irq map, reserve soft_irq & private_irq space - Add License and Copyright - Support set_affinity for irq balance in SMP Signed-off-by: Guo Ren Cc:

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

2018-10-09 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 V11 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-09 Thread Guo Ren
COMPILE_TEST for csky_mp_timer. - Fixup smp boot error, cpuhp_setup_state must after timer_of_init() for csky_mp_timer. Any feedback is welcome, thx for all people review my patchset. Guo Ren (8): irqchip: add C-SKY SMP interrupt controller dt-bindings: interrupt-controller: C-SKY SMP intc

[PATCH V11 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-09 Thread Guo Ren
COMPILE_TEST for csky_mp_timer. - Fixup smp boot error, cpuhp_setup_state must after timer_of_init() for csky_mp_timer. Any feedback is welcome, thx for all people review my patchset. Guo Ren (8): irqchip: add C-SKY SMP interrupt controller dt-bindings: interrupt-controller: C-SKY SMP intc

[PATCH V11 3/8] irqchip: add C-SKY APB bus interrupt controller

2018-10-09 Thread Guo Ren
back - add INTC_IFR to clear irq-pending - remove CSKY_VECIRQ_LEGENCY - change to generic irq chip framework - add License and Copyright - use irq_domain_add_linear instead of leagcy Signed-off-by: Guo Ren Cc: Mark Rutland --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makef

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

2018-10-09 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 V11 3/8] irqchip: add C-SKY APB bus interrupt controller

2018-10-09 Thread Guo Ren
back - add INTC_IFR to clear irq-pending - remove CSKY_VECIRQ_LEGENCY - change to generic irq chip framework - add License and Copyright - use irq_domain_add_linear instead of leagcy Signed-off-by: Guo Ren Cc: Mark Rutland --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makef

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

2018-10-09 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 V11 5/8] clocksource: add C-SKY SMP timer

2018-10-09 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 V11 2/8] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-10-09 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 V11 2/8] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-10-09 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 V11 5/8] clocksource: add C-SKY SMP timer

2018-10-09 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

Re: [PATCH V10 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-08 Thread Guo Ren
Hi Marc, On Mon, Oct 08, 2018 at 05:35:19PM +0100, Marc Zyngier wrote: > Hi Guo, > > On 04/10/18 18:22, Guo Ren wrote: > > - Irq-csky-mpintc is C-SKY smp system interrupt controller and it > >could support 16 soft irqs, 16 private irqs, and 992 max common > >

Re: [PATCH V10 1/8] irqchip: add C-SKY SMP interrupt controller

2018-10-08 Thread Guo Ren
Hi Marc, On Mon, Oct 08, 2018 at 05:35:19PM +0100, Marc Zyngier wrote: > Hi Guo, > > On 04/10/18 18:22, Guo Ren wrote: > > - Irq-csky-mpintc is C-SKY smp system interrupt controller and it > >could support 16 soft irqs, 16 private irqs, and 992 max common > >

Re: [PATCH V7 00/20] C-SKY(csky) Linux Kernel Port

2018-10-07 Thread Guo Ren
st Regards Guo Ren On Fri, Oct 05, 2018 at 01:41:42PM +0800, Guo Ren wrote: > This is the 7th version patchset to add the Linux kernel port for > C-SKY(csky) based on linux-4.19-rc3. > > In this patchset some fixup patches are folded into original patch in > order to make

Re: [PATCH V7 00/20] C-SKY(csky) Linux Kernel Port

2018-10-07 Thread Guo Ren
st Regards Guo Ren On Fri, Oct 05, 2018 at 01:41:42PM +0800, Guo Ren wrote: > This is the 7th version patchset to add the Linux kernel port for > C-SKY(csky) based on linux-4.19-rc3. > > In this patchset some fixup patches are folded into original patch in > order to make

Re: [PATCH V7 00/20] C-SKY(csky) Linux Kernel Port

2018-10-06 Thread Guo Ren
On Sat, Oct 06, 2018 at 10:06:49PM +0200, Eugene Syromiatnikov wrote: > On Fri, Oct 05, 2018 at 01:41:42PM +0800, Guo Ren wrote: > > This is the 7th version patchset to add the Linux kernel port for > > C-SKY(csky) based on linux-4.19-rc3. > > > > In this patchset so

Re: [PATCH V7 00/20] C-SKY(csky) Linux Kernel Port

2018-10-06 Thread Guo Ren
On Sat, Oct 06, 2018 at 10:06:49PM +0200, Eugene Syromiatnikov wrote: > On Fri, Oct 05, 2018 at 01:41:42PM +0800, Guo Ren wrote: > > This is the 7th version patchset to add the Linux kernel port for > > C-SKY(csky) based on linux-4.19-rc3. > > > > In this patchset so

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

2018-10-06 Thread Guo Ren
Hi Rob, Thx for the review. On Fri, Oct 05, 2018 at 03:21:08PM -0500, Rob Herring wrote: > On Fri, Oct 05, 2018 at 01:22:28AM +0800, Guo Ren wrote: > > Dt-bindings doc for gx6605s SOC's system timer. > > > > Signed-off-by: Guo Ren > > --- > > .../bind

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

2018-10-06 Thread Guo Ren
Hi Rob, Thx for the review. On Fri, Oct 05, 2018 at 03:21:08PM -0500, Rob Herring wrote: > On Fri, Oct 05, 2018 at 01:22:28AM +0800, Guo Ren wrote: > > Dt-bindings doc for gx6605s SOC's system timer. > > > > Signed-off-by: Guo Ren > > --- > > .../bind

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

2018-10-05 Thread Guo Ren
Hi Daniel, On Fri, Oct 05, 2018 at 03:48:58PM +0200, Daniel Lezcano wrote: > On 04/10/2018 19:22, Guo Ren wrote: > > This timer is used by SMP system and use mfcr/mtcr instruction > > to access the regs. > > > > Changelog: > > - Add rollback for timer_of_clean

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

2018-10-05 Thread Guo Ren
Hi Daniel, On Fri, Oct 05, 2018 at 03:48:58PM +0200, Daniel Lezcano wrote: > On 04/10/2018 19:22, Guo Ren wrote: > > This timer is used by SMP system and use mfcr/mtcr instruction > > to access the regs. > > > > Changelog: > > - Add rollback for timer_of_clean

[PATCH V7 20/20] MAINTAINERS: Add csky

2018-10-05 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 V7 20/20] MAINTAINERS: Add csky

2018-10-05 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 V7 18/20] dt-bindings: csky CPU Bindings

2018-10-05 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 --- Documentation/devicetree/bindings/csky/cpus.txt | 70 + 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/csky/cpus.txt

[PATCH V7 18/20] dt-bindings: csky CPU Bindings

2018-10-05 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 --- Documentation/devicetree/bindings/csky/cpus.txt | 70 + 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/csky/cpus.txt

[PATCH V7 19/20] dt-bindings: Add vendor prefix for csky

2018-10-05 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 V7 19/20] dt-bindings: Add vendor prefix for csky

2018-10-05 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 V7 10/20] csky: IRQ handling

2018-10-04 Thread Guo Ren
This patch adds IRQ handling files. Signed-off-by: Guo Ren --- arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 22 ++ 2 files changed, 71 insertions(+) create mode 100644 arch/csky/include/asm/irqflags.h create

[PATCH V7 12/20] csky: ELF and module probe

2018-10-04 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- 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/kernel/module.c

[PATCH V7 10/20] csky: IRQ handling

2018-10-04 Thread Guo Ren
This patch adds IRQ handling files. Signed-off-by: Guo Ren --- arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 22 ++ 2 files changed, 71 insertions(+) create mode 100644 arch/csky/include/asm/irqflags.h create

[PATCH V7 12/20] csky: ELF and module probe

2018-10-04 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- 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/kernel/module.c

[PATCH V7 17/20] csky: Misc headers

2018-10-04 Thread Guo Ren
This patch adds csky register definition, byteorder, asm-offsets codes. Signed-off-by: Guo Ren --- 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 +++ arch/csky/abiv2/inc/abi

[PATCH V7 17/20] csky: Misc headers

2018-10-04 Thread Guo Ren
This patch adds csky register definition, byteorder, asm-offsets codes. Signed-off-by: Guo Ren --- 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 +++ arch/csky/abiv2/inc/abi

[PATCH V7 15/20] csky: Debug and Ptrace GDB

2018-10-04 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren --- 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 | 314

[PATCH V7 15/20] csky: Debug and Ptrace GDB

2018-10-04 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren --- 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 | 314

[PATCH V7 16/20] csky: SMP support

2018-10-04 Thread Guo Ren
, because it's a interrupt controller specific. - Bugfix request_irq with IPI_IRQ, we must use irq_mapping return value not directly use IPI_IRQ. The modification also involves csky_mp_intc. Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 30 ++ arch/csky/kernel/sm

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