[PATCH V5 14/30] csky: User access

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

[PATCH V5 09/30] csky: VDSO and rt_sigreturn

2018-09-24 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 | 18 + arch/csky/abiv2/inc/abi/vdso.h | 24 arch/csky/include/asm/vdso.h | 13 +++ arch/csky/kernel/vdso.c| 85

[PATCH V5 03/30] csky: Kernel booting

2018-09-24 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 --- arch/csky/kernel/head.S| 78 + arch/csky/kernel/setup.c

[PATCH V5 01/30] csky: Build infrastructure

2018-09-24 Thread Guo Ren
This patch adds Makefile, Kconfig for build infrastructure. Signed-off-by: Guo Ren --- arch/csky/Kconfig | 204 + arch/csky/Kconfig.debug| 8 ++ arch/csky/Makefile | 92 +++ arch/csky/abiv1

[PATCH V5 12/30] csky: ELF and module probe

2018-09-24 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- arch/csky/include/asm/elf.h | 150 arch/csky/kernel/module.c | 83 2 files changed, 233 insertions(+) create mode 100644 arch/csky

[PATCH V5 05/30] csky: System Call

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

[PATCH V5 04/30] csky: Exception handling and mm-fault

2018-09-24 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren --- arch/csky/abiv1/alignment.c | 332 + arch/csky/abiv1/inc/abi/entry.h | 160 arch/csky/abiv2/inc/abi/entry.h | 157 arch/csky

[PATCH V5 06/30] csky: Cache and TLB routines

2018-09-24 Thread Guo Ren
This patch adds cache and tlb sync codes for abiv1 & abiv2. Signed-off-by: Guo Ren --- arch/csky/abiv1/cacheflush.c | 51 arch/csky/abiv1/inc/abi/cacheflush.h | 43 +++ arch/csky/abiv1/inc/abi/tlb.h | 12 ++ arch/csky/abiv2/cacheflush.c |

[PATCH V5 02/30] csky: defconfig

2018-09-24 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 V5 00/30] C-SKY(csky) Linux Kernel Port

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

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

2018-09-21 Thread Guo Ren
; >> On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > I don't want to hijack this thread, but in RISC-V land we were hoping to > > have a > > user ABI free of 32-bit time_t. Our 32-bit glibc ABI hasn't been finalized > > yet, and when I talked to the glibc

Re: [PATCH V8 1/2] clocksource: add gx6605s SOC system timer

2018-09-21 Thread Guo Ren
On Fri, Sep 21, 2018 at 01:57:27AM +0200, Daniel Lezcano wrote: > On 21/09/2018 01:31, Guo Ren wrote: > > On Thu, Sep 20, 2018 at 06:06:19PM +0200, Daniel Lezcano wrote: > >> On 20/09/2018 10:03, Guo Ren wrote: > >>> Changelog: > >>> - Add License and

Re: [PATCH V8 1/2] clocksource: add gx6605s SOC system timer

2018-09-20 Thread Guo Ren
On Thu, Sep 20, 2018 at 06:06:19PM +0200, Daniel Lezcano wrote: > On 20/09/2018 10:03, Guo Ren wrote: > > Changelog: > > - Add License and Copyright > > - Use timer-of framework > > - Change name with upstream feedback > > - Use clksource_mmio framewor

Re: [PATCH] MAINTAINERS: Add csky

2018-09-20 Thread Guo Ren
On Thu, Sep 20, 2018 at 12:17:43PM +0200, Greg KH wrote: > On Thu, Sep 20, 2018 at 06:14:07PM +0800, Guo Ren wrote: > > Add a maintainer information for the csky(C-SKY) architecture. > > > > Signed-off-by: Guo Ren > > --- > > MAINTAINERS | 16 &

[PATCH] MAINTAINERS: Add csky

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

[PATCH V8 0/2] irqchip: add C-SKY APB bus interrupt controller

2018-09-20 Thread Guo Ren
- Dt-bindings documentation - irq-csky-apb-intc driver Guo Ren (2): irqchip: add C-SKY APB bus interrupt controller dt-bindings: interrupt-controller: C-SKY APB intc .../interrupt-controller/csky,apb-intc.txt | 62 + drivers/irqchip/Kconfig| 8

[PATCH V8 1/2] irqchip: add C-SKY APB bus interrupt controller

2018-09-20 Thread Guo Ren
rq-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 --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makefile| 1 + drivers/irqchip/irq-c

[PATCH V8 2/2] dt-bindings: interrupt-controller: C-SKY APB intc

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

[PATCH V8 2/2] dt-bindings: timer: gx6605s SOC timer

2018-09-20 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,gx

[PATCH V8 0/2] clocksource: add gx6605s SOC system timer

2018-09-20 Thread Guo Ren
- Dt-bindings documentation - timer-gx6605s driver Guo Ren (2): clocksource: add gx6605s SOC system timer dt-bindings: timer: gx6605s SOC timer .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ drivers/clocksource/Kconfig| 8 ++ drivers/clocksource

[PATCH V8 1/2] clocksource: add gx6605s SOC system timer

2018-09-20 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/timer-gx6605s.c | 150

Re: [PATCH V8 5/6] clocksource: add C-SKY SMP timer

2018-09-19 Thread Guo Ren
On Thu, Sep 20, 2018 at 01:39:31PM +0800, Guo Ren wrote: > +struct clocksource csky_clocksource = { > + .name = "csky", > + .rating = 400, > + .mask = CLOCKSOURCE_MASK(32), > + .flags = CLOCK_SOURCE_IS_CONTINUOUS, > + .read = clksr

Re: [PATCH V5 1/3] irqchip: add C-SKY irqchip drivers

2018-09-19 Thread Guo Ren
ot;%s IRQ request failed\n", __func__); > > To be honest, I'd tend to question the need for this level of > abstraction, unless you actually plan for multiple SMP-capable > interrupt controllers... But at the end of the day, that's your call, > and the above code looks mostly correct. Thx for the review. I will consider your suggestion. Best Regards GUo Ren

[PATCH V8 4/6] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-19 Thread Guo Ren
- Dt-bindings doc about C-SKY Multi-processors interrupt controller. Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky

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

2018-09-19 Thread Guo Ren
- Dt-bingdings doc for C-SKY SMP system setting. Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation

[PATCH V8 2/6] csky: remove irq_mapping from smp.c

2018-09-19 Thread Guo Ren
- Add irq_mapping return check - Move IPI_IRQ into irq-driver - remove irq_mapping from smp.c to irq-driver - Add set_ipi_irq_mapping api to irq-driver - update asm/smp.h Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 4 +++- arch/csky/kernel/smp.c | 27

[PATCH V8 3/6] irqchip: add C-SKY SMP interrupt controller

2018-09-19 Thread Guo Ren
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 --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-csky-mpintc.c |

[PATCH V8 0/6] C-SKY(csky) Linux Kernel Port

2018-09-19 Thread Guo Ren
- Add irq-csky-mpintc.c patch in this patchset - Add mptimer.c patch in this patchset - Fixup dma_sync_for_cpu/device in dma-mapping.c Guo Ren (6): csky/dma: bugfix dma_sync_for_cpu/device csky: remove irq_mapping from smp.c irqchip: add C-SKY SMP interrupt controller dt-bindings: interrupt-co

[PATCH V8 5/6] clocksource: add C-SKY SMP timer

2018-09-19 Thread Guo Ren
-off-by: Guo Ren --- drivers/clocksource/Kconfig| 8 ++ drivers/clocksource/Makefile | 1 + drivers/clocksource/csky_mptimer.c | 178 + include/linux/cpuhotplug.h | 1 + 4 files changed, 188 insertions(+) create mode 100644 drivers

[PATCH V8 1/6] csky/dma: bugfix dma_sync_for_cpu/device

2018-09-19 Thread Guo Ren
invalidate Signed-off-by: Guo Ren --- arch/csky/mm/dma-mapping.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/csky/mm/dma-mapping.c b/arch/csky/mm/dma-mapping.c index 16c2087..30a2041 100644 --- a/arch/csky/mm/dma-mapping.c +++ b/arch/csky/mm/dma-mapping.c @@ -217,7

Re: [PATCH V5 2/3] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-18 Thread Guo Ren
On Tue, Sep 18, 2018 at 05:56:50PM -0700, Rob Herring wrote: > > > but does need a vendor prefix. > > vendor prefix? Em ... it's just used in fpga now. > > What I mean is make it: csky,support-pulse-signal Ok. no problem. Best Regards Guo Ren

[PATCH V7 1/2] irqchip: add C-SKY SMP interrupt controller

2018-09-18 Thread Guo Ren
& private_irq space - add License and Copyright - support set_affinity for irq balance in SMP Signed-off-by: Guo Ren --- drivers/irqchip/Kconfig | 16 drivers/irqchip/Makefile | 2 + drivers/irqchip/irq-csky-mpintc.c | 196 ++ 3 f

[PATCH V7 0/2] irqchip: add C-SKY SMP interrupt controller

2018-09-18 Thread Guo Ren
Guo Ren (2): irqchip: add C-SKY SMP interrupt controller dt-bindings: interrupt-controller: C-SKY SMP intc .../bindings/interrupt-controller/csky,mpintc.txt | 40 + drivers/irqchip/Kconfig| 16 ++ drivers/irqchip/Makefile | 2

[PATCH V7 1/2] irqchip: add C-SKY APB bus interrupt controller

2018-09-18 Thread Guo Ren
rq-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 --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makefile| 1 + drivers/irqchip/irq-c

[PATCH V7 0/2] irqchip: add C-SKY APB bus interrupt controller

2018-09-18 Thread Guo Ren
Guo Ren (2): irqchip: add C-SKY APB bus interrupt controller dt-bindings: interrupt-controller: C-SKY APB intc .../interrupt-controller/csky,apb-intc.txt | 70 ++ drivers/irqchip/Kconfig| 8 + drivers/irqchip/Makefile | 1

[PATCH V7 2/2] dt-bindings: interrupt-controller: C-SKY APB intc

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

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

2018-09-18 Thread Guo Ren
- Dt-bindings doc about C-SKY Multi-processors interrupt controller. Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky

[PATCH V7 2/2] dt-bindings: timer: gx6605s SOC timer

2018-09-18 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,gx

[PATCH V7 1/2] clocksource: add gx6605s SOC system timer

2018-09-18 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/timer-gx6605s.c | 150

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

2018-09-18 Thread Guo Ren
- Dt-bingdings doc for C-SKY SMP system setting. Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation

[PATCH V7 0/2] clocksource: add gx6605s SOC system timer

2018-09-18 Thread Guo Ren
Guo Ren (2): clocksource: add gx6605s SOC system timer dt-bindings: timer: gx6605s SOC timer .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ drivers/clocksource/Kconfig| 8 ++ drivers/clocksource/Makefile | 1 + drivers

[PATCH V7 1/2] clocksource: add C-SKY SMP timer

2018-09-18 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - 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 --- drivers/clocksource/Kconfig

[PATCH V7 2/2] csky: remove irq_mapping from smp.c.

2018-09-18 Thread Guo Ren
- remove irq_mapping from smp.c to irq-driver - Add set_ipi_irq_mapping api to irq-driver - update asm/smp.h Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 4 arch/csky/kernel/smp.c | 18 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a

[PATCH V7 0/2] clocksource: add C-SKY SMP timer

2018-09-18 Thread Guo Ren
Guo Ren (2): clocksource: add C-SKY SMP timer dt-bindings: timer: C-SKY Multi-processor timer .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ drivers/clocksource/Kconfig| 8 + drivers/clocksource/Makefile | 1 + drivers

[PATCH V7 0/2] bugfix based on csky linux-next

2018-09-18 Thread Guo Ren
Because I've sent to Stephen Roth with the linux-4.19-rc3 git-tree for linux-next, I shouldn't rebase any more. - Fixup smp.c irq mapping problem found by Marc Zyngier - Fixup dma_sync_for_cpu/device in dma-mapping.c Guo Ren (2): csky/dma: bugfix dma_sync_for_cpu/device cs

[PATCH V7 1/2] csky/dma: bugfix dma_sync_for_cpu/device

2018-09-18 Thread Guo Ren
invalidate Signed-off-by: Guo Ren --- arch/csky/mm/dma-mapping.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/csky/mm/dma-mapping.c b/arch/csky/mm/dma-mapping.c index 16c2087..30a2041 100644 --- a/arch/csky/mm/dma-mapping.c +++ b/arch/csky/mm/dma-mapping.c @@ -217,7

Re: [PATCH V5 1/3] irqchip: add C-SKY irqchip drivers

2018-09-18 Thread Guo Ren
On Mon, Sep 17, 2018 at 02:27:31PM +0100, Marc Zyngier wrote: > On Mon, 17 Sep 2018 03:09:29 +0100, > Guo Ren wrote: > > [...] > > > > > + > > > > + irq_set_default_host(root_domain); > > > > > > Please drop this. There is no reas

Re: [PATCH V5 2/3] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-17 Thread Guo Ren
On Mon, Sep 17, 2018 at 07:23:36AM -0700, Rob Herring wrote: > On Mon, Sep 17, 2018 at 1:36 AM Guo Ren wrote: > > > > On Mon, Sep 17, 2018 at 02:23:36AM -0400, Rob Herring wrote: > > > On Sun, Sep 16, 2018 at 04:50:03PM +0800, Guo Ren wrote: > > > > Signed-

Re: [PATCH V3 11/27] csky: Atomic operations

2018-09-17 Thread Guo Ren
On Mon, Sep 17, 2018 at 10:17:55AM +0200, Peter Zijlstra wrote: > On Sat, Sep 15, 2018 at 10:55:13PM +0800, Guo Ren wrote: > > > > +#define ATOMIC_OP_RETURN(op, c_op) > > > > \ > > > &

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

2018-09-17 Thread Guo Ren
On Mon, Sep 17, 2018 at 10:03:57PM +1000, Stephen Rothwell wrote: > Hi Guo, > > On Mon, 17 Sep 2018 21:54:43 +1000 Stephen Rothwell > wrote: > > > > Added from today (called "csky"). > > Actually from tomorrow :-) Ok.

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

2018-09-17 Thread Guo Ren
On Mon, Sep 17, 2018 at 09:54:43PM +1000, Stephen Rothwell wrote: > Hi Guo, > > On Sun, 16 Sep 2018 12:53:26 +0800 Guo Ren wrote: > > > > I'm Guo Ren from C-SKY and I'm working on csky linux port upstream. > > I've prepared my git-tree based on linux-4

Re: [PATCH V5 2/3] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-17 Thread Guo Ren
On Mon, Sep 17, 2018 at 02:23:36AM -0400, Rob Herring wrote: > On Sun, Sep 16, 2018 at 04:50:03PM +0800, Guo Ren wrote: > > Signed-off-by: Guo Ren > > Needs a commit description. > > > --- > > .../interrupt-controller/csky,apb-intc.txt | 70 > >

Re: [PATCH V5 2/3] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-16 Thread Guo Ren
On Sun, Sep 16, 2018 at 08:27:01PM +0100, Marc Zyngier wrote: > On Sun, 16 Sep 2018 09:50:03 +0100, > Guo Ren wrote: > > > > Signed-off-by: Guo Ren > > Please write a commit message. Same thing for the following patch. Ok. Best Regards Guo Ren

Re: [PATCH V5 1/3] irqchip: add C-SKY irqchip drivers

2018-09-16 Thread Guo Ren
On Sun, Sep 16, 2018 at 08:07:55PM +0100, Marc Zyngier wrote: > On Sun, 16 Sep 2018 09:50:02 +0100, > Guo Ren wrote: > > +static void csky_mpintc_handler(struct pt_regs *regs) > > +{ > > + void __iomem *reg_base = this_cpu_read(intcl_reg); > > + > > + do

Re: [PATCH V5 1/2] clocksource: add C-SKY SMP timer

2018-09-16 Thread Guo Ren
Sorry for duplicate patch-sets, for gx6605s-timer See PATCH V6. On Sun, Sep 16, 2018 at 05:13:57PM +0800, Guo Ren wrote: > This timer is used by SMP system and use mfcr/mtcr instruction > to access the regs. > > Changelog: > - Support csky mp timer alpha version. > - Just us

[PATCH V6 1/2] clocksource: add gx6605s SOC system timer

2018-09-16 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/timer-gx6605s.c | 150

[PATCH V6 2/2] dt-bindings: timer: gx6605s SOC timer

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,gx6605s

[PATCH V5 1/2] clocksource: add gx6605s SOC system timer

2018-09-16 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/timer-gx6605s.c | 150

[PATCH V5 2/2] dt-bindings: timer: gx6605s SOC timer

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,gx6605s

[PATCH V5 1/2] clocksource: add C-SKY SMP timer

2018-09-16 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - 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 --- drivers/clocksource/Kconfig

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

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,mptimer.txt b

[PATCH V5 1/3] irqchip: add C-SKY irqchip drivers

2018-09-16 Thread Guo Ren
e in SMP - add INTC_IFR to clear irq-pending - use irq_domain_add_linear instead of leagcy Signed-off-by: Guo Ren --- drivers/irqchip/Kconfig | 16 +++ drivers/irqchip/Makefile | 2 + drivers/irqchip/irq-csky-mpintc.c | 191 irq-csky-apb-in

[PATCH V5 3/3] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt diff --git a/Documentation/devicetree/bindings/interrupt

[PATCH V5 2/3] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-16 Thread Guo Ren
Signed-off-by: Guo Ren --- .../interrupt-controller/csky,apb-intc.txt | 70 ++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt diff --git a/Documentation/devicetree/bindings/interrupt

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

2018-09-15 Thread Guo Ren
Hello Stephen, I'm Guo Ren from C-SKY and I'm working on csky linux port upstream. I've prepared my git-tree based on linux-4.19-rc3: git clone -b linux-next https://github.com/c-sky/csky-linux.git Here is the pre-built cross compiler for fast test from our CI: https://g

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

2018-09-15 Thread Guo Ren
On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: > On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > > > This is the 3th version patchset to add the Linux kernel port for > > C-SKY(csky). > > Thanks to everyone who provided feedback on the previous ver

Re: [PATCH V3 11/27] csky: Atomic operations

2018-09-15 Thread Guo Ren
Thx for the review, that's very helpful. On Wed, Sep 12, 2018 at 05:55:14PM +0200, Peter Zijlstra wrote: > On Wed, Sep 12, 2018 at 09:24:45PM +0800, Guo Ren wrote: > > > +#define ATOMIC_OP(op, c_op) > > \ > > +static

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

2018-09-14 Thread Guo Ren
On Fri, Sep 14, 2018 at 06:09:35PM +0200, Arnd Bergmann wrote: > On Fri, Sep 14, 2018 at 6:02 PM Guo Ren wrote: > > > > On Fri, Sep 14, 2018 at 04:46:56PM +0200, Arnd Bergmann wrote: > > > On Fri, Sep 14, 2018 at 4:37 PM Guo Ren wrote: > > > > > One level

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

2018-09-14 Thread Guo Ren
On Fri, Sep 14, 2018 at 04:46:56PM +0200, Arnd Bergmann wrote: > On Fri, Sep 14, 2018 at 4:37 PM Guo Ren wrote: > > On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: > > > On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > > > > > One big questi

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

2018-09-14 Thread Guo Ren
On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: > On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > > > This is the 3th version patchset to add the Linux kernel port for > > C-SKY(csky). > > Thanks to everyone who provided feedback on the previous ver

[PATCH V4 18/27] dt-bindings: csky CPU Bindings

2018-09-12 Thread Guo Ren
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 diff --git a/Documentation/devicetree/bindings/csky/cpus.txt b/Documentation

[PATCH V4 26/27] irqchip: add C-SKY irqchip drivers

2018-09-12 Thread Guo Ren
use irq_domain_add_linear instead of leagcy. - add set_handle_irq(), ref from openrisc & arm. Signed-off-by: Guo Ren --- drivers/irqchip/Makefile| 1 + drivers/irqchip/irq-csky-apb-intc.c | 243 drivers/irqchip/irq-csky-mpintc.c

[PATCH V4 20/27] dt-bindings: timer: C-SKY Multi-processor timer

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,mptimer.txt b

[PATCH V4 22/27] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt diff --git a/Documentation/devicetree/bindings/interrupt

[PATCH V4 23/27] clocksource: add gx6605s SOC system timer

2018-09-12 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/timer-gx6605s.c | 150 1 file changed, 150 insertions(+) create mode

[PATCH V4 27/27] dt-bindings: Add vendor prefix for csky

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- 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-prefixes.txt index 7cad066..335f9e0 100644 --- a/Documentation

[PATCH V4 25/27] clocksource: add C-SKY timers' build infrastructure

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- drivers/clocksource/Kconfig | 15 +++ drivers/clocksource/Makefile | 2 ++ 2 files changed, 17 insertions(+) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index dec0dd8..6ff0a25 100644 --- a/drivers/clocksource/Kconfig +++ b

[PATCH V4 24/27] clocksource: add C-SKY SMP timer

2018-09-12 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - 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 --- drivers/clocksource

[PATCH V4 14/27] csky: User access

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 398 arch/csky/lib/usercopy.c| 271 +++ 2 files changed, 669 insertions(+) create mode 100644 arch/csky/include/asm/uaccess.h create mode 100644 arch/csky/lib

[PATCH V4 21/27] dt-bindings: interrupt-controller: C-SKY APB intc

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../interrupt-controller/csky,apb-intc.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt diff --git a/Documentation/devicetree/bindings/interrupt

[PATCH V4 16/27] csky: SMP support

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 26 + arch/csky/kernel/smp.c | 234 2 files changed, 260 insertions(+) create mode 100644 arch/csky/include/asm/smp.h create mode 100644 arch/csky/kernel/smp.c diff --git a/arch

[PATCH V4 15/27] csky: Debug and Ptrace GDB

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 103 arch/csky/kernel/dumpstack.c| 64 arch/csky/kernel/ptrace.c | 317 4 files changed, 510 insertions

[PATCH V4 17/27] csky: Misc headers

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/reg_ops.h | 26 +++ arch/csky/abiv1/inc/abi/regdef.h | 25 +++ arch/csky/abiv2/inc/abi/reg_ops.h | 17 ++ arch/csky/abiv2/inc/abi/regdef.h | 26 +++ arch/csky/boot/dts/qemu.dts| 77 + arch/csky

[PATCH V4 19/27] dt-bindings: timer: gx6605s SOC timer

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,gx6605s

[PATCH V4 13/27] csky: Library functions

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/abiv1/bswapdi.c| 18 ++ arch/csky/abiv1/bswapsi.c| 14 ++ arch/csky/abiv1/inc/abi/string.h | 13 ++ arch/csky/abiv1/memcpy.S | 344 +++ arch/csky/abiv1/memset.c | 37 + arch/csky

[PATCH V4 12/27] csky: ELF and module probe

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/elf.h | 149 arch/csky/kernel/module.c | 82 2 files changed, 231 insertions(+) create mode 100644 arch/csky/include/asm/elf.h create mode 100644 arch/csky/kernel/module.c

[PATCH V4 11/27] csky: Atomic operations

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/atomic.h | 215 + arch/csky/include/asm/cmpxchg.h| 70 arch/csky/include/asm/spinlock.h | 286 + arch/csky/include/asm/spinlock_types.h | 35 arch/csky

[PATCH V3 09/27] csky: VDSO and rt_sigreturn

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/vdso.h | 17 + arch/csky/abiv2/inc/abi/vdso.h | 24 arch/csky/include/asm/vdso.h | 12 ++ arch/csky/kernel/vdso.c| 85 ++ 4 files changed, 138 insertions(+) create mode

[PATCH V3 08/27] csky: Process management and Signal

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/abiv2/fpu.c | 281 + arch/csky/abiv2/inc/abi/fpu.h | 66 ++ arch/csky/include/asm/mmu_context.h | 148 ++ arch/csky/include/asm/processor.h | 120 +++ arch/csky/include/asm

[PATCH V3 16/27] csky: SMP support

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 26 + arch/csky/kernel/smp.c | 234 2 files changed, 260 insertions(+) create mode 100644 arch/csky/include/asm/smp.h create mode 100644 arch/csky/kernel/smp.c diff --git a/arch

[PATCH V3 10/27] csky: IRQ handling

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/irq.h | 8 +++ arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 21 + 3 files changed, 78 insertions(+) create mode 100644 arch/csky/include/asm/irq.h

[PATCH V3 15/27] csky: Debug and Ptrace GDB

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 103 arch/csky/kernel/dumpstack.c| 64 arch/csky/kernel/ptrace.c | 317 4 files changed, 510 insertions

[PATCH V3 05/27] csky: System Call

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/syscall.h | 69 + arch/csky/include/asm/syscalls.h| 14 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c | 42 ++ arch/csky/kernel

[PATCH V3 12/27] csky: ELF and module probe

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/elf.h | 149 arch/csky/kernel/module.c | 82 2 files changed, 231 insertions(+) create mode 100644 arch/csky/include/asm/elf.h create mode 100644 arch/csky/kernel/module.c

[PATCH V3 14/27] csky: User access

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 398 arch/csky/lib/usercopy.c| 271 +++ 2 files changed, 669 insertions(+) create mode 100644 arch/csky/include/asm/uaccess.h create mode 100644 arch/csky/lib

[PATCH V3 19/27] dt-bindings: timer: gx6605s SOC timer

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer.txt diff --git a/Documentation/devicetree/bindings/timer/csky,gx6605s

[PATCH V3 01/27] csky: Build infrastructure

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/Kconfig | 231 + arch/csky/Kconfig.debug| 14 ++ arch/csky/Makefile | 93 + arch/csky/abiv1/Makefile | 8 ++ arch/csky/abiv2/Makefile

[PATCH V3 07/27] csky: MMU and page table management

2018-09-12 Thread Guo Ren
alloc : 0xf020 – 0xff00 (238 MB) Lowmem : 0x8000 – 0xc000 (1GB) Lowmem is directly mapped by msa0 & msa1 reg, and we needn't setup page-table for it. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/ckmmu.h| 74 arch/csky/abiv1/

[PATCH V3 23/27] clocksource: add gx6605s SOC system timer

2018-09-12 Thread Guo Ren
Changelog: - Add License and Copyright - Use timer-of framework - Change name with upstream feedback - Use clksource_mmio framework Signed-off-by: Guo Ren --- drivers/clocksource/timer-gx6605s.c | 150 1 file changed, 150 insertions(+) create mode

[PATCH V3 22/27] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-12 Thread Guo Ren
Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt diff --git a/Documentation/devicetree/bindings/interrupt

<    1   2   3   4   5   6   7   8   >