Re: [PATCH v4] net: ethernet: faraday: To support device tree usage.

2017-02-08 Thread Greentime Hu
On Sat, Jan 28, 2017 at 6:17 AM, Rob Herring <r...@kernel.org> wrote: > > On Wed, Jan 25, 2017 at 10:09:20PM +0100, Arnd Bergmann wrote: > > On Wed, Jan 25, 2017 at 6:34 PM, David Miller <da...@davemloft.net> wrote: > > > From: Greentime Hu <green...@gmail.com

[PATCH v4] net: ethernet: faraday: To support device tree usage.

2017-01-24 Thread Greentime Hu
We also use the same binding document to describe the same faraday ethernet controller and add faraday to vendor-prefixes.txt. Signed-off-by: Greentime Hu <green...@gmail.com> --- Changes in v4: - Use the same binding document to describe the same faraday ethernet controller and add f

Re: [PATCH] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Greentime Hu
On Thu, Nov 17, 2016 at 12:12 AM, Arnd Bergmann <a...@arndb.de> wrote: > On Wednesday, November 16, 2016 3:37:15 PM CET Andrew Lunn wrote: >> On Wed, Nov 16, 2016 at 10:26:52PM +0800, Greentime Hu wrote: >> > On Wed, Nov 16, 2016 at 9:47 PM, Andrew Lunn <and...@lunn.ch

[PATCH] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Greentime Hu
To support device tree usage for ftmac100. Signed-off-by: Greentime Hu <green...@gmail.com> --- drivers/net/ethernet/faraday/ftmac100.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c index d

Re: [PATCH] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Greentime Hu
You are right. I didn't notice that. I should use ftmac100. On Wed, Nov 16, 2016 at 7:53 PM, Jiri Pirko <j...@resnulli.us> wrote: > Wed, Nov 16, 2016 at 09:43:15AM CET, green...@gmail.com wrote: >>To support device tree usage for ftmac100. >> >>Signed-off-by: Green

[PATCH v2] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Greentime Hu
Signed-off-by: Greentime Hu <green...@gmail.com> --- drivers/net/ethernet/faraday/ftmac100.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c index dce5f7b..5d70ee9 100644 --- a/drivers/net/et

Re: [PATCH] net: ethernet: faraday: To support device tree usage.

2016-11-16 Thread Greentime Hu
On Wed, Nov 16, 2016 at 9:47 PM, Andrew Lunn <and...@lunn.ch> wrote: > On Wed, Nov 16, 2016 at 04:43:15PM +0800, Greentime Hu wrote: >> To support device tree usage for ftmac100. >> >> Signed-off-by: Greentime Hu <green...@gmail.com> >> --- >> d

[PATCH v4] net: ethernet: faraday: To support device tree usage.

2017-01-05 Thread Greentime Hu
Signed-off-by: Greentime Hu <green...@gmail.com> --- Changes in v4: - Use the same binding document to describe the same faraday ethernet controller and add faraday to vendor-prefixes.txt. Changes in v3: - Nothing changed in this patch but I have committed andestech to vendor-prefix

[PATCH v3] net: ethernet: faraday: To support device tree usage.

2016-12-30 Thread Greentime Hu
Signed-off-by: Greentime Hu <green...@gmail.com> --- Changes in v3: - Nothing changed in this patch but I have committed andestech to vendor-prefixes.txt. drivers/net/ethernet/faraday/ftmac100.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/f

[PATCH v5] net: ethernet: faraday: To support device tree usage.

2017-05-17 Thread Greentime Hu
To support device tree usage for ftmac100. Signed-off-by: Greentime Hu <green...@gmail.com> --- Changes in v5: - Nothing changed in this patch and I have committed faraday,ftmac.txt. Changes in v4: - Use the same binding document to describe the same faraday ethernet controller a

Re: [PATCH 26/31] nds32: Build infrastructure

2017-11-10 Thread Greentime Hu
2017-11-09 18:33 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Thu, Nov 9, 2017 at 10:02 AM, Greentime Hu <green...@gmail.com> wrote: >> 2017-11-08 18:16 GMT+08:00 Arnd Bergmann <a...@arndb.de>: >>> On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu <gr

Re: [PATCH 30/31] dt-bindings: nds32 CPU Bindings

2017-11-10 Thread Greentime Hu
>>> Then having both is not valid. The strings should be in order of best >>> match to worst match where worst match is typically either older >>> implementations of IP blocks or generic'ish strings such as "ns16550" >>> for a UART. >> >> Thanks. >> I would like to explain it more clearly. >> They

[PATCH v2 28/35] MAINTAINERS: Add nds32

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..20284c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6

[PATCH v2 31/35] earlycon: add reg-offset to physical address before mapping

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> It will get the wrong virtual address because port->mapbase is not added the correct reg-offset yet. We have to update it before earlycon_map() is called --- drivers/tty/serial/earlycon.c |3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v2 19/35] nds32: L2 cache support

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds L2 cache support. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/l2_cache.h | 155 + arch/nd

[PATCH v2 17/35] nds32: Library functions

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch add support for various library functions. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/string.h | 30 arch/nds32/include/as

[PATCH v2 18/35] nds32: Debugging support

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds ptrace support. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/uapi/asm/ptrace.h | 42 + arch/nds32/kernel/ptrace.

[PATCH v2 22/35] nds32: Device tree support

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for device tree. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/boot/dts/Makefile |8 ++ arch/nds32/boot/dts

[PATCH v2 23/35] nds32: Miscellaneous header files

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch introduces some miscellaneous header files. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/delay.h | 51 +++

[PATCH v2 21/35] nds32: Generic timers support

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for timer. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/kernel/time.c | 22 ++ 1 file changed, 22 insertio

[PATCH v2 20/35] nds32: Loadable modules

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for loadable modules. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/module.h | 24 arch/nds32/kernel/mo

[PATCH v2 04/35] nds32: MMU definitions

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes virtual memory layout, PHYS_OFFSET is defined as 0x0. It also includes the 4KB/8KB page size configurations and pte operations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentim

[PATCH v2 01/35] nds32: Assembly macros and definitions

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/

[PATCH v2 02/35] nds32: Kernel booting and initialization

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes the kernel startup code. It can get dtb pointer passed from bootloader. It will create a temp mapping by tlb instructions at beginning and goto start_kernel. Signed-off-by: Vincent Chen <vince...@andestech.com>

[PATCH v2 33/35] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-11-27 Thread Greentime Hu
source and count downwards until underflow and restart again. It also set channel 0 32-bit timer0 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greenti

[PATCH v2 34/35] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-11-27 Thread Greentime Hu
From: Rick Chen <rickche...@gmail.com> Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. It often be used in Andestech AE3XX platform. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> --- drivers/clocksour

[PATCH v2 35/35] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-11-27 Thread Greentime Hu
From: Rick Chen <rickche...@gmail.com> Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen <rickche...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Greentime Hu <green...@gmail.com> --- .../

[PATCH v2 30/35] net: faraday add nds32 support.

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- drivers/net/ethernet/faraday/Kconfig |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/faraday/Kconfig b/drivers/net/ethernet/far

[PATCH v2 15/35] nds32: VDSO support

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent..

[PATCH v2 12/35] nds32: DMA mapping API

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for the DMA mapping API. It uses dma_map_ops for flexibility. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/dma-mapping

[PATCH v2 13/35] nds32: ELF definitions

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32

[PATCH v2 29/35] dt-bindings: nds32 CPU Bindings

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds nds32 CPU binding documents. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Rick Chen <r...@andestech.com> Signed-off-by: Zong Li <z...@andestech.com> Signed-off-by: Greentime Hu

[PATCH v2 14/35] nds32: System calls handling

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for system calls. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/syscall.h | 203

[PATCH v2 24/35] nds32: defconfig

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds nds32 defconfig. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/configs/defconfig | 111 ++ 1

[PATCH v2 25/35] nds32: Build infrastructure

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds Makefile, Kconfig and vmlinux.lds.S files required for building an nds32 kernel. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/Kconfig

[PATCH v2 08/35] nds32: Process management

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes copy_thread(), start_thread() implementation and cpu_context structure definition. nds32 uses $r25 to get current task_struct. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentim

[PATCH v2 00/35] Andes(nds32) Linux Kernel Port

2017-11-27 Thread Greentime Hu
() - Refine ioremap.c - Refine irq-ativic32.c - Fix a bug of earlycon.c - Export ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt - Add atcpit100 driver Greentime Hu (32): nds32: Assembly macros and definitions nds32: Kernel booting and initialization nds32: Exception handling nds32: MMU

[PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/lib/copy_page.S | 50 ++ arch/

[PATCH v2 03/35] nds32: Exception handling

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes the exception/interrupt entries, pt_reg structure and related accessors. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/a

[PATCH v2 05/35] nds32: MMU initialization

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/mm/highmem.c | 92 ++ ar

[PATCH v2 09/35] nds32: IRQ handling

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm

[PATCH v2 16/35] nds32: Signal handling support

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for signal handling. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/uapi/asm/sigcontext.h | 73 ++ arch/nds32/include

[PATCH v2 32/35] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- include/asm-generic/io.h | 18 +++

[PATCH v2 26/35] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds an irqchip driver document for the Andestech Internal Vector Interrupt Controller. Signed-off-by: Rick Chen <r...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- .../interrupt-controller/ande

[PATCH v2 11/35] nds32: Device specific operations

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch introduces ioremap implementations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/io.h | 25 +++ arch/nds32/mm/io

[PATCH v2 07/35] nds32: Cache and TLB routines

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/cache.h | 25 ++ arch

[PATCH v2 10/35] nds32: Atomic operations

2017-11-27 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes the atomic and futex operations. Many atomic operations use the load-lock word(llw) and store-condition word(scw) operations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent..

Re: [PATCH v2 29/35] dt-bindings: nds32 CPU Bindings

2017-11-27 Thread Greentime Hu
2017-11-27 21:42 GMT+08:00 Mark Rutland <mark.rutl...@arm.com>: > Him > > On Mon, Nov 27, 2017 at 08:28:16PM +0800, Greentime Hu wrote: >> From: Greentime Hu <greent...@andestech.com> >> >> This patch adds nds32 CPU binding documents. >> >>

Re: [PATCH 12/31] nds32: Device specific operations

2017-11-22 Thread Greentime Hu
2017-11-11 0:14 GMT+08:00 Arnd Bergmann : > Could you move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt > out of that #ifdef, or would that break other architectures? > It seems ok. I just tried arm64, x86 and nds32. #endif /* CONFIG_MMU */ #ifndef ioremap_nocache void __iomem

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Greentime Hu
2017-11-27 22:21 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu <green...@gmail.com> wrote: > >> diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu >> new file mode 100644 >> index 000..6b4013f >> ---

Re: [PATCH v2 31/35] earlycon: add reg-offset to physical address before mapping

2017-11-28 Thread Greentime Hu
2017-11-28 22:25 GMT+08:00 Greg KH <g...@kroah.com>: > On Mon, Nov 27, 2017 at 08:28:18PM +0800, Greentime Hu wrote: >> From: Greentime Hu <greent...@andestech.com> >> >> It will get the wrong virtual address because port->mapbase is not added >> the

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Greentime Hu
2017-11-29 17:25 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Wed, Nov 29, 2017 at 10:10 AM, Geert Uytterhoeven > <ge...@linux-m68k.org> wrote: >> Hi Arnd, >> >> On Wed, Nov 29, 2017 at 9:58 AM, Arnd Bergmann <a...@arndb.de> wrote: >>> O

Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-11-28 Thread Greentime Hu
Hi, Mark: 2017-11-27 21:51 GMT+08:00 Mark Rutland <mark.rutl...@arm.com>: > Hi, > > On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: >> +void do_page_fault(unsigned long entry, unsigned long addr, >> +unsigned int error

Re: [PATCH v2 19/35] nds32: L2 cache support

2017-11-29 Thread Greentime Hu
Hi, Arnd: 2017-11-27 22:33 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu <green...@gmail.com> wrote: >> + >> +#define L2C_R_REG(offset) __raw_readl(atl2c_base + offset) >> +#define L2C_W_REG(offset,

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Greentime Hu
2017-11-29 19:57 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Wed, Nov 29, 2017 at 12:39 PM, Greentime Hu <green...@gmail.com> wrote: >> 2017-11-29 17:25 GMT+08:00 Arnd Bergmann <a...@arndb.de>: >>> On Wed, Nov 29, 2017 at 10:10 AM, Geert Uytterhoeven >&

Re: [PATCH v2 27/35] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-11-29 Thread Greentime Hu
Hi, Marc: 2017-11-28 17:37 GMT+08:00 Marc Zyngier <marc.zyng...@arm.com>: > On 27/11/17 12:28, Greentime Hu wrote: >> +static void ativic32_ack_irq(struct irq_data *data) >> +{ >> + __nds32__mtsr_dsb(1 << data->hwirq, NDS32_SR_INT_PEND2); > > Consi

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Greentime Hu
2017-11-30 4:27 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Wed, Nov 29, 2017 at 3:10 PM, Greentime Hu <green...@gmail.com> wrote: >> 2017-11-29 19:57 GMT+08:00 Arnd Bergmann <a...@arndb.de>: >>> On Wed, Nov 29, 2017 at 12:39 PM, Greentime Hu <green..

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-30 Thread Greentime Hu
2017-11-30 15:52 GMT+08:00 Geert Uytterhoeven <ge...@linux-m68k.org>: > On Thu, Nov 30, 2017 at 6:48 AM, Greentime Hu <green...@gmail.com> wrote: >> 2017-11-30 4:27 GMT+08:00 Arnd Bergmann <a...@arndb.de>: >>> On Wed, Nov 29, 2017 at 3:10 PM, Greentime Hu <

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-30 Thread Greentime Hu
2017-11-30 17:30 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Thu, Nov 30, 2017 at 6:48 AM, Greentime Hu <green...@gmail.com> wrote: >> 2017-11-30 4:27 GMT+08:00 Arnd Bergmann <a...@arndb.de>: >>> On Wed, Nov 29, 2017 at 3:10 PM, Greentime Hu <green...@gmai

Re: [PATCH v2 22/35] nds32: Device tree support

2017-11-27 Thread Greentime Hu
2017-11-27 22:30 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu <green...@gmail.com> wrote: >> @@ -0,0 +1,55 @@ >> +/dts-v1/; >> +/ { >> + compatible = "nds32 ae3xx"; > > The compatible string d

Re: [PATCH v2 34/35] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-11-27 Thread Greentime Hu
2017-11-27 22:11 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu <green...@gmail.com> wrote: >> From: Rick Chen <rickche...@gmail.com> >> >> Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. >>

Re: [PATCH v2 30/35] net: faraday add nds32 support.

2017-11-27 Thread Greentime Hu
2017-11-27 22:15 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu <green...@gmail.com> wrote: >> From: Greentime Hu <greent...@andestech.com> >> >> Signed-off-by: Greentime Hu <greent...@andestech.com> >

Re: [PATCH v3 09/33] nds32: Cache and TLB routines

2017-12-13 Thread Greentime Hu
2017-12-13 17:45 GMT+08:00 Guo Ren <ren_...@c-sky.com>: > Hello, > > CPU team could improve the tlbop_*. Eg: Design a hardware > internal flag bit for SR_TLB_VPN, tlbop_* will invalid it and mtsr > SR_TLB_VPN will valid it. > > So: > On Wed, Dec 13, 2017 at 05:03:

Re: [PATCH v3 09/33] nds32: Cache and TLB routines

2017-12-13 Thread Greentime Hu
2017-12-13 16:19 GMT+08:00 Guo Ren <ren_...@c-sky.com>: > On Wed, Dec 13, 2017 at 01:45:02PM +0800, Greentime Hu wrote: > >> I think it should be fine if an interruption between mtsr_dsb and >> tlbop_rwr because this is a optimization by sw. > > Fine? Whe

Re: [PATCH v3 09/33] nds32: Cache and TLB routines

2017-12-13 Thread Greentime Hu
2017-12-13 16:53 GMT+08:00 Guo Ren <ren_...@c-sky.com>: > On Wed, Dec 13, 2017 at 04:30:41PM +0800, Greentime Hu wrote: >> 2017-12-13 16:19 GMT+08:00 Guo Ren <ren_...@c-sky.com>: >> > On Wed, Dec 13, 2017 at 01:45:02PM +0800, Greentime Hu wrote: >&g

[PATCH v4 12/36] nds32: Atomic operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes the atomic and futex operations. Many atomic operations use the load-lock word(llw) and store-condition word(scw) operations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent..

[PATCH v4 02/36] earlycon: add reg-offset to physical address before mapping

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> It will get the wrong virtual address because port->mapbase is not added the correct reg-offset yet. We have to update it before earlycon_map() is called Signed-off-by: Greentime Hu <greent...@andestech.com> --- drivers/tty/serial/ea

[PATCH v4 04/36] nds32: Kernel booting and initialization

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes the kernel startup code. It can get dtb pointer passed from bootloader. It will create a temp mapping by tlb instructions at beginning and goto start_kernel. Signed-off-by: Vincent Chen <vince...@andestech.com>

[PATCH v4 06/36] nds32: MMU definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes virtual memory layout, PHYS_OFFSET is defined as 0x0. It also includes the 4KB/8KB page size configurations and pte operations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentim

[PATCH v4 03/36] nds32: Assembly macros and definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/

[PATCH v4 05/36] nds32: Exception handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes the exception/interrupt entries, pt_reg structure and related accessors. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/a

[PATCH v4 33/36] net: faraday add nds32 support.

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch is used to support nds32 architecture to use these faraday mac IP. Signed-off-by: Greentime Hu <greent...@andestech.com> --- drivers/net/ethernet/faraday/Kconfig |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH v4 34/36] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-12-17 Thread Greentime Hu
source and count downwards until underflow and restart again. It also set channel 0 32-bit timer0 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greenti

[PATCH v4 32/36] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds the Andestech Internal Vector Interrupt Controller driver. You can find the spec here. Ch4.9 of AndeStar SPA V3 Manual. http://www.andestech.com/product.php?cls=9 Signed-off-by: Rick Chen <r...@andestech.com> Signed-off-b

[PATCH v4 31/36] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds an irqchip driver document for the Andestech Internal Vector Interrupt Controller. Signed-off-by: Rick Chen <r...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Reviewed-by: Rob Herrin

[PATCH v4 30/36] dt-bindings: nds32 SoC Bindings

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: Greentime Hu <greent...@andestech.com> Reviewed-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/nds32/andestech-boards | 40 ++

[PATCH v4 35/36] clocksource/drivers/atcpit100: VDSO support

2017-12-17 Thread Greentime Hu
<vince...@andestech.com> Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> --- drivers/clocksource/timer-atcpit100.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/clocksource/timer-atcpit100.c b/drivers/clock

[PATCH v4 36/36] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-12-17 Thread Greentime Hu
From: Rick Chen <rickche...@gmail.com> Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen <rickche...@gmail.com> Signed-off-by: Greentime Hu <green...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../

[PATCH v4 27/36] nds32: Build infrastructure

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds Makefile, Kconfig and vmlinux.lds.S files required for building an nds32 kernel. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/Kconfig

[PATCH v4 28/36] MAINTAINERS: Add nds32

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..20284c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6

[PATCH v4 25/36] nds32: Miscellaneous header files

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch introduces some miscellaneous header files. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/delay.h | 38 +++

[PATCH v4 26/36] nds32: defconfig

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds nds32 defconfig. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/configs/defconfig | 108 ++ 1

[PATCH v4 14/36] nds32: DMA mapping API

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for the DMA mapping API. It uses dma_map_ops for flexibility. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/dma-mapping

[PATCH v4 09/36] nds32: Cache and TLB routines

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/cache.h | 12 + arch

[PATCH v4 07/36] nds32: MMU initialization

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/mm/highmem.c | 79 + ar

[PATCH v4 08/36] nds32: MMU fault handling and page table management

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/lib/copy_page.S | 37 arch/

[PATCH v4 11/36] nds32: IRQ handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm

[PATCH v4 10/36] nds32: Process management

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch includes copy_thread(), start_thread() implementation and cpu_context structure definition. nds32 uses $r25 to get current task_struct. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentim

[PATCH v4 13/36] nds32: Device specific operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch introduces ioremap implementations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/io.h | 83 +

[PATCH v4 00/36] Andes(nds32) Linux Kernel

2017-12-17 Thread Greentime Hu
ioremap_wt - Add atcpit100 driver Greentime Hu (33): asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU earlycon: add reg-offset to physical address before mapping nds32: Assembly macros and definitions nds32: Kernel booting and init

[PATCH v4 01/36] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb

[PATCH v4 24/36] nds32: Device tree support

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for device tree. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/boot/dts/Makefile |8 + arch/nds32/boot/dt

[PATCH v4 29/36] dt-bindings: nds32 CPU Bindings

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds nds32 CPU binding documents. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Rick Chen <r...@andestech.com> Signed-off-by: Zong Li <z...@andestech.com> Signed-off-by: Greentime Hu <greent

[PATCH v4 19/36] nds32: Library functions

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch add support for various library functions. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/string.h | 17 +++ arch/nds32/include/as

[PATCH v4 17/36] nds32: VDSO support

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent..

[PATCH v4 21/36] nds32: L2 cache support

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds L2 cache support. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/l2_cache.h | 142 + arch/nd

[PATCH v4 16/36] nds32: System calls handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for system calls. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/syscall.h | 188

[PATCH v4 15/36] nds32: ELF definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32

[PATCH v4 18/36] nds32: Signal handling support

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for signal handling. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/uapi/asm/sigcontext.h | 60 ++ arch/nds

[PATCH v4 22/36] nds32: Loadable modules

2017-12-17 Thread Greentime Hu
From: Greentime Hu <greent...@andestech.com> This patch adds support for loadable modules. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/module.h | 11 ++ arch/nds32/kernel/mo

  1   2   3   4   >