[PATCH v5 06/29] nios2: Memory management

2014-10-24 Thread Ley Foon Tan
This patch contains the initialisation of the memory blocks, MMU attributes and the memory map. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/mmu.h | 16 +++ arch/nios2/include/asm/page.h| 111 +++ arch/nios2/include/asm/uaccess.h | 231

[PATCH v5 02/29] nios2: Assembly macros and definitions

2014-10-24 Thread Ley Foon Tan
This patch add assembly macros and definitions used in the .S files across arch/nios2/ and together with asm-offsets.c. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/asm-macros.h | 309 +++ arch/nios2/include/asm/asm-offsets.h | 20

[PATCH v5 00/29] nios2 Linux kernel port

2014-10-24 Thread Ley Foon Tan
://lkml.org/lkml/2014/7/15/120 [v3] : https://lkml.org/lkml/2014/9/8/139 [v4] : https://lkml.org/lkml/2014/10/8/141 Ley Foon Tan (29): asm-generic: add generic futex for !CONFIG_SMP nios2: Assembly macros and definitions nios2: Kernel booting and initialization nios2: Exception handling nios2

Re: [PATCH v4 21/29] nios2: Time keeping

2014-10-09 Thread Ley Foon Tan
On Wed, Oct 8, 2014 at 6:44 PM, Thomas Gleixner wrote: > On Wed, 8 Oct 2014, Ley Foon Tan wrote: >> +static void nios2_timer_set_mode(enum clock_event_mode mode, >> + struct clock_event_device *evt) >> +{ >> + unsigned long period; >> + struc

Re: [PATCH v4 17/29] nios2: System calls handling

2014-10-09 Thread Ley Foon Tan
On Thu, Oct 9, 2014 at 3:47 PM, Tobias Klauser wrote: >> +#if defined(CONFIG_FB) || defined(CONFIG_FB_MODULE) >> +#include >> +unsigned long get_fb_unmapped_area(struct file *filp, unsigned long >> orig_addr, >> + unsigned long len, unsigned long pgoff, unsigned long flags) >> +{ >>

Re: [PATCH v4 18/29] nios2: Signal handling support

2014-10-09 Thread Ley Foon Tan
On Wed, Oct 8, 2014 at 7:29 PM, Richard Weinberger wrote: > On Wed, Oct 8, 2014 at 11:29 AM, Ley Foon Tan wrote: >> This patch adds support for signal handling. >> >> Signed-off-by: Ley Foon Tan > > Maybe I'm misreading your code but where do you check for multiple &g

Re: [PATCH v4 04/29] nios2: Exception handling

2014-10-09 Thread Ley Foon Tan
On Thu, Oct 9, 2014 at 6:27 AM, Al Viro wrote: > >> +Lsignal_return: >> + ANDI32 r1, r10, _TIF_SIGPENDING | _TIF_NOTIFY_RESUME >> + beq r1, r0, restore_all >> + mov r4, sp /* pt_regs */ >> + SAVE_SWITCH_STACK >> + calldo_notify_resume >> + beq

Re: [PATCH v4 04/29] nios2: Exception handling

2014-10-09 Thread Ley Foon Tan
On Thu, Oct 9, 2014 at 6:27 AM, Al Viro v...@zeniv.linux.org.uk wrote: +Lsignal_return: + ANDI32 r1, r10, _TIF_SIGPENDING | _TIF_NOTIFY_RESUME + beq r1, r0, restore_all + mov r4, sp /* pt_regs */ + SAVE_SWITCH_STACK + calldo_notify_resume +

Re: [PATCH v4 18/29] nios2: Signal handling support

2014-10-09 Thread Ley Foon Tan
On Wed, Oct 8, 2014 at 7:29 PM, Richard Weinberger richard.weinber...@gmail.com wrote: On Wed, Oct 8, 2014 at 11:29 AM, Ley Foon Tan lf...@altera.com wrote: This patch adds support for signal handling. Signed-off-by: Ley Foon Tan lf...@altera.com Maybe I'm misreading your code but where do

Re: [PATCH v4 17/29] nios2: System calls handling

2014-10-09 Thread Ley Foon Tan
On Thu, Oct 9, 2014 at 3:47 PM, Tobias Klauser tklau...@distanz.ch wrote: +#if defined(CONFIG_FB) || defined(CONFIG_FB_MODULE) +#include linux/fb.h +unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr, + unsigned long len, unsigned long pgoff, unsigned

Re: [PATCH v4 21/29] nios2: Time keeping

2014-10-09 Thread Ley Foon Tan
On Wed, Oct 8, 2014 at 6:44 PM, Thomas Gleixner t...@linutronix.de wrote: On Wed, 8 Oct 2014, Ley Foon Tan wrote: +static void nios2_timer_set_mode(enum clock_event_mode mode, + struct clock_event_device *evt) +{ + unsigned long period; + struct nios2_clockevent_dev *nios2_ced

[PATCH v4 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-10-08 Thread Ley Foon Tan
Follow m68k futex implementation for !CONFIG_SMP. Signed-off-by: Ley Foon Tan Acked-by: Arnd Bergmann --- include/asm-generic/futex.h | 82 +++ 1 files changed, 82 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/futex.h b/include/asm

[PATCH v4 04/29] nios2: Exception handling

2014-10-08 Thread Ley Foon Tan
This patch contains the exception entry code (kernel/entry.S) and misaligned exception. Signed-off-by: Ley Foon Tan --- arch/nios2/kernel/entry.S | 559 arch/nios2/kernel/misaligned.c | 255 ++ 2 files changed, 814 insertions

[PATCH v4 03/29] nios2: Kernel booting and initialization

2014-10-08 Thread Ley Foon Tan
This patch adds the kernel booting and the initial setup code. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/entry.h | 120 ++ arch/nios2/include/asm/setup.h | 38 +++ arch/nios2/kernel/head.S | 175 arch/nios2/kernel

[PATCH v4 05/29] nios2: Traps exception handling

2014-10-08 Thread Ley Foon Tan
This patch contains traps exception handling. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/traps.h | 19 ++ arch/nios2/kernel/insnemu.S| 592 arch/nios2/kernel/traps.c | 185 + 3 files changed, 796 insertions(+), 0

[PATCH v4 07/29] nios2: I/O Mapping

2014-10-08 Thread Ley Foon Tan
This patch adds several definitions for I/O accessors and ioremap(). Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/io.h | 84 +++ arch/nios2/lib/io.c | 138 arch/nios2/mm/ioremap.c | 186

[PATCH v4 06/29] nios2: Memory management

2014-10-08 Thread Ley Foon Tan
This patch contains the initialisation of the memory blocks, MMU attributes and the memory map. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/mmu.h | 16 +++ arch/nios2/include/asm/page.h| 111 ++ arch/nios2/include/asm/uaccess.h | 231

[PATCH v4 11/29] nios2: Cache handling

2014-10-08 Thread Ley Foon Tan
This patch adds functionality required for cache maintenance. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/cache.h | 36 + arch/nios2/include/asm/cacheflush.h | 52 +++ arch/nios2/mm/cacheflush.c | 270 +++ 3 files changed

[PATCH v4 12/29] nios2: TLB handling

2014-10-08 Thread Ley Foon Tan
This patch adds the TLB maintenance functions. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/tlb.h | 34 + arch/nios2/include/asm/tlbflush.h | 46 ++ arch/nios2/mm/tlb.c | 274 + 3 files changed, 354 insertions(+), 0

[PATCH v4 16/29] nios2: ELF definitions

2014-10-08 Thread Ley Foon Tan
This patch adds definitions for the ELF format Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/elf.h | 101 + arch/nios2/include/uapi/asm/elf.h | 67 2 files changed, 168 insertions(+), 0 deletions(-) create mode

[PATCH v4 14/29] nios2: DMA mapping API

2014-10-08 Thread Ley Foon Tan
This patch adds support for the DMA mapping API. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/dma-mapping.h | 130 arch/nios2/mm/dma-mapping.c | 185 ++ 2 files changed, 315 insertions(+), 0 deletions(-) create mode

[PATCH v4 22/29] nios2: Cpuinfo handling

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/cpuinfo.h | 57 +++ arch/nios2/kernel/cpuinfo.c | 201 ++ 2 files changed, 258 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/include/asm/cpuinfo.h create mode 100644 arch

[PATCH v4 20/29] nios2: Device tree support

2014-10-08 Thread Ley Foon Tan
Add device tree support to arch/nios2. Signed-off-by: Ley Foon Tan --- Documentation/devicetree/bindings/nios2/nios2.txt | 62 Documentation/devicetree/bindings/nios2/timer.txt | 19 +++ arch/nios2/boot/dts/3c120_devboard.dts| 164 + arch/nios2/boot

[PATCH v4 24/29] nios2: Nios2 registers

2014-10-08 Thread Ley Foon Tan
This file contains constants for the instruction macros, cpu registers, fields and bits. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/registers.h | 71 1 files changed, 71 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/include/asm

[PATCH v4 27/29] MAINTAINERS: Add nios2 maintainer

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a12edf2..580499e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6421,6 +6421,13 @@ S: Maintained F: Documentation/scsi

[PATCH v4 26/29] nios2: ptrace support

2014-10-08 Thread Ley Foon Tan
Add ptrace support for nios2. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/ptrace.h | 33 +++ arch/nios2/include/uapi/asm/ptrace.h | 120 arch/nios2/kernel/ptrace.c | 166 ++ 3 files changed, 319

[PATCH v4 28/29] Documentation: Add documentation for Nios2 architecture

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- Documentation/nios2/README | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 Documentation/nios2/README diff --git a/Documentation/nios2/README b/Documentation/nios2/README new file mode 100644 index 000

[PATCH v4 29/29] nios2: Build infrastructure

2014-10-08 Thread Ley Foon Tan
This patch adds Makefile and Kconfig files required for building a nios2 kernel. Signed-off-by: Ley Foon Tan --- arch/nios2/Kconfig | 201 ++ arch/nios2/Kconfig.debug | 17 +++ arch/nios2/Makefile | 73

[PATCH v4 21/29] nios2: Time keeping

2014-10-08 Thread Ley Foon Tan
Add time keeping code for nios2. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/delay.h | 21 +++ arch/nios2/include/asm/timex.h | 26 arch/nios2/kernel/time.c | 318 arch/nios2/lib/delay.c | 52 +++ 4 files changed

[PATCH v4 23/29] nios2: Miscellaneous header files

2014-10-08 Thread Ley Foon Tan
This patch introduces a few nios2-specific header files. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/cmpxchg.h| 61 +++ arch/nios2/include/asm/linkage.h| 25 + arch/nios2/include/asm/mutex.h |1 + arch/nios2

[PATCH v4 25/29] nios2: Module support

2014-10-08 Thread Ley Foon Tan
This patch adds support for loadable modules. Signed-off-by: Ley Foon Tan --- arch/nios2/kernel/module.c | 137 1 files changed, 137 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/kernel/module.c diff --git a/arch/nios2/kernel

[PATCH v4 19/29] nios2: Library functions

2014-10-08 Thread Ley Foon Tan
Add optimised library functions for nios2. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/checksum.h | 78 +++ arch/nios2/include/asm/string.h | 24 + arch/nios2/lib/memcpy.c | 199 + arch/nios2/lib/memmove.c

[PATCH v4 18/29] nios2: Signal handling support

2014-10-08 Thread Ley Foon Tan
This patch adds support for signal handling. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/signal.h | 22 ++ arch/nios2/include/asm/ucontext.h| 32 +++ arch/nios2/include/uapi/asm/sigcontext.h | 28 +++ arch/nios2/include/uapi/asm/signal.h | 23 +++ arch

[PATCH v4 15/29] Add ELF machine define for Nios2

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan Acked-by: Arnd Bergmann --- include/uapi/linux/elf-em.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 01529bd..7f06c0d 100644 --- a/include/uapi/linux/elf-em.h +++ b/include

[PATCH v4 13/29] nios2: Interrupt handling

2014-10-08 Thread Ley Foon Tan
This patch adds the support for IRQ handling. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/irq.h | 28 +++ arch/nios2/include/asm/irqflags.h | 69 +++ arch/nios2/kernel/irq.c | 93 + 3 files

[PATCH v4 17/29] nios2: System calls handling

2014-10-08 Thread Ley Foon Tan
This patch adds support for system calls from userspaces. It uses the asm-generic/unistd.h definitions with architecture spcific syscall. The sys_call_table is just an array defined in a C file and it contains pointers to the syscall functions. Signed-off-by: Ley Foon Tan --- arch/nios2

[PATCH v4 10/29] nios2: Process management

2014-10-08 Thread Ley Foon Tan
This patch adds support for thread creation and context switching. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/mmu_context.h | 66 + arch/nios2/include/asm/processor.h | 103 ++ arch/nios2/include/asm/switch_to.h | 31 arch/nios2/include/asm

[PATCH v4 08/29] nios2: MMU Fault handling

2014-10-08 Thread Ley Foon Tan
This patch adds support for the handling of the MMU faults (exception entry code introduced by a previous patch, kernel/entry.S). Signed-off-by: Ley Foon Tan --- arch/nios2/mm/extable.c | 25 + arch/nios2/mm/fault.c | 251 +++ 2 files changed

[PATCH v4 09/29] nios2: Page table management

2014-10-08 Thread Ley Foon Tan
This patch adds support for page table management. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/pgalloc.h | 86 + arch/nios2/include/asm/pgtable-bits.h | 35 arch/nios2/include/asm/pgtable.h | 305 + arch/nios2/mm/pgtable.c

[PATCH v4 02/29] nios2: Assembly macros and definitions

2014-10-08 Thread Ley Foon Tan
This patch add assembly macros and definitions used in the .S files across arch/nios2/ and together with asm-offsets.c. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/asm-macros.h | 309 ++ arch/nios2/include/asm/asm-offsets.h | 20 +++ arch/nios2

[PATCH v4 00/29] nios2 Linux kernel port

2014-10-08 Thread Ley Foon Tan
ory - [v1] : https://lkml.org/lkml/2014/4/18/216 [v2] : https://lkml.org/lkml/2014/7/15/120 [v3] : https://lkml.org/lkml/2014/9/8/139 Ley Foon Tan (29): asm-generic: add generic futex for !CONFIG_SMP nios2: Assembly macros and definitions nios2: Kernel booting and initializat

[PATCH v4 00/29] nios2 Linux kernel port

2014-10-08 Thread Ley Foon Tan
- [v1] : https://lkml.org/lkml/2014/4/18/216 [v2] : https://lkml.org/lkml/2014/7/15/120 [v3] : https://lkml.org/lkml/2014/9/8/139 Ley Foon Tan (29): asm-generic: add generic futex for !CONFIG_SMP nios2: Assembly macros and definitions nios2: Kernel booting and initialization

[PATCH v4 02/29] nios2: Assembly macros and definitions

2014-10-08 Thread Ley Foon Tan
This patch add assembly macros and definitions used in the .S files across arch/nios2/ and together with asm-offsets.c. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/asm-macros.h | 309 ++ arch/nios2/include/asm/asm-offsets.h | 20

[PATCH v4 08/29] nios2: MMU Fault handling

2014-10-08 Thread Ley Foon Tan
This patch adds support for the handling of the MMU faults (exception entry code introduced by a previous patch, kernel/entry.S). Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/mm/extable.c | 25 + arch/nios2/mm/fault.c | 251

[PATCH v4 09/29] nios2: Page table management

2014-10-08 Thread Ley Foon Tan
This patch adds support for page table management. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/pgalloc.h | 86 + arch/nios2/include/asm/pgtable-bits.h | 35 arch/nios2/include/asm/pgtable.h | 305 + arch

[PATCH v4 10/29] nios2: Process management

2014-10-08 Thread Ley Foon Tan
This patch adds support for thread creation and context switching. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/mmu_context.h | 66 + arch/nios2/include/asm/processor.h | 103 ++ arch/nios2/include/asm/switch_to.h | 31 arch/nios2

[PATCH v4 15/29] Add ELF machine define for Nios2

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan lf...@altera.com Acked-by: Arnd Bergmann a...@arndb.de --- include/uapi/linux/elf-em.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 01529bd..7f06c0d 100644 --- a/include/uapi

[PATCH v4 13/29] nios2: Interrupt handling

2014-10-08 Thread Ley Foon Tan
This patch adds the support for IRQ handling. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/irq.h | 28 +++ arch/nios2/include/asm/irqflags.h | 69 +++ arch/nios2/kernel/irq.c | 93

[PATCH v4 19/29] nios2: Library functions

2014-10-08 Thread Ley Foon Tan
Add optimised library functions for nios2. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/checksum.h | 78 +++ arch/nios2/include/asm/string.h | 24 + arch/nios2/lib/memcpy.c | 199 + arch/nios2/lib

[PATCH v4 17/29] nios2: System calls handling

2014-10-08 Thread Ley Foon Tan
This patch adds support for system calls from userspaces. It uses the asm-generic/unistd.h definitions with architecture spcific syscall. The sys_call_table is just an array defined in a C file and it contains pointers to the syscall functions. Signed-off-by: Ley Foon Tan lf...@altera.com

[PATCH v4 18/29] nios2: Signal handling support

2014-10-08 Thread Ley Foon Tan
This patch adds support for signal handling. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/signal.h | 22 ++ arch/nios2/include/asm/ucontext.h| 32 +++ arch/nios2/include/uapi/asm/sigcontext.h | 28 +++ arch/nios2/include/uapi/asm/signal.h

[PATCH v4 25/29] nios2: Module support

2014-10-08 Thread Ley Foon Tan
This patch adds support for loadable modules. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/kernel/module.c | 137 1 files changed, 137 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/kernel/module.c diff --git a/arch

[PATCH v4 21/29] nios2: Time keeping

2014-10-08 Thread Ley Foon Tan
Add time keeping code for nios2. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/delay.h | 21 +++ arch/nios2/include/asm/timex.h | 26 arch/nios2/kernel/time.c | 318 arch/nios2/lib/delay.c | 52

[PATCH v4 23/29] nios2: Miscellaneous header files

2014-10-08 Thread Ley Foon Tan
This patch introduces a few nios2-specific header files. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/cmpxchg.h| 61 +++ arch/nios2/include/asm/linkage.h| 25 + arch/nios2/include/asm/mutex.h |1

[PATCH v4 28/29] Documentation: Add documentation for Nios2 architecture

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan lf...@altera.com --- Documentation/nios2/README | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 Documentation/nios2/README diff --git a/Documentation/nios2/README b/Documentation/nios2/README new file mode 100644

[PATCH v4 29/29] nios2: Build infrastructure

2014-10-08 Thread Ley Foon Tan
This patch adds Makefile and Kconfig files required for building a nios2 kernel. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/Kconfig | 201 ++ arch/nios2/Kconfig.debug | 17 +++ arch/nios2/Makefile

[PATCH v4 26/29] nios2: ptrace support

2014-10-08 Thread Ley Foon Tan
Add ptrace support for nios2. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/ptrace.h | 33 +++ arch/nios2/include/uapi/asm/ptrace.h | 120 arch/nios2/kernel/ptrace.c | 166 ++ 3 files

[PATCH v4 27/29] MAINTAINERS: Add nios2 maintainer

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan lf...@altera.com --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a12edf2..580499e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6421,6 +6421,13 @@ S: Maintained F: Documentation

[PATCH v4 24/29] nios2: Nios2 registers

2014-10-08 Thread Ley Foon Tan
This file contains constants for the instruction macros, cpu registers, fields and bits. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/registers.h | 71 1 files changed, 71 insertions(+), 0 deletions(-) create mode 100644 arch

[PATCH v4 22/29] nios2: Cpuinfo handling

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/cpuinfo.h | 57 +++ arch/nios2/kernel/cpuinfo.c | 201 ++ 2 files changed, 258 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/include/asm/cpuinfo.h create

[PATCH v4 20/29] nios2: Device tree support

2014-10-08 Thread Ley Foon Tan
Add device tree support to arch/nios2. Signed-off-by: Ley Foon Tan lf...@altera.com --- Documentation/devicetree/bindings/nios2/nios2.txt | 62 Documentation/devicetree/bindings/nios2/timer.txt | 19 +++ arch/nios2/boot/dts/3c120_devboard.dts| 164

[PATCH v4 16/29] nios2: ELF definitions

2014-10-08 Thread Ley Foon Tan
This patch adds definitions for the ELF format Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/elf.h | 101 + arch/nios2/include/uapi/asm/elf.h | 67 2 files changed, 168 insertions(+), 0 deletions

[PATCH v4 14/29] nios2: DMA mapping API

2014-10-08 Thread Ley Foon Tan
This patch adds support for the DMA mapping API. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/dma-mapping.h | 130 arch/nios2/mm/dma-mapping.c | 185 ++ 2 files changed, 315 insertions(+), 0 deletions

[PATCH v4 11/29] nios2: Cache handling

2014-10-08 Thread Ley Foon Tan
This patch adds functionality required for cache maintenance. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/cache.h | 36 + arch/nios2/include/asm/cacheflush.h | 52 +++ arch/nios2/mm/cacheflush.c | 270 +++ 3

[PATCH v4 12/29] nios2: TLB handling

2014-10-08 Thread Ley Foon Tan
This patch adds the TLB maintenance functions. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/tlb.h | 34 + arch/nios2/include/asm/tlbflush.h | 46 ++ arch/nios2/mm/tlb.c | 274 + 3 files changed, 354

[PATCH v4 06/29] nios2: Memory management

2014-10-08 Thread Ley Foon Tan
This patch contains the initialisation of the memory blocks, MMU attributes and the memory map. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/mmu.h | 16 +++ arch/nios2/include/asm/page.h| 111 ++ arch/nios2/include/asm/uaccess.h | 231

[PATCH v4 07/29] nios2: I/O Mapping

2014-10-08 Thread Ley Foon Tan
This patch adds several definitions for I/O accessors and ioremap(). Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/io.h | 84 +++ arch/nios2/lib/io.c | 138 arch/nios2/mm/ioremap.c | 186

[PATCH v4 03/29] nios2: Kernel booting and initialization

2014-10-08 Thread Ley Foon Tan
This patch adds the kernel booting and the initial setup code. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/entry.h | 120 ++ arch/nios2/include/asm/setup.h | 38 +++ arch/nios2/kernel/head.S | 175

[PATCH v4 05/29] nios2: Traps exception handling

2014-10-08 Thread Ley Foon Tan
This patch contains traps exception handling. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/traps.h | 19 ++ arch/nios2/kernel/insnemu.S| 592 arch/nios2/kernel/traps.c | 185 + 3 files changed, 796

[PATCH v4 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-10-08 Thread Ley Foon Tan
Follow m68k futex implementation for !CONFIG_SMP. Signed-off-by: Ley Foon Tan lf...@altera.com Acked-by: Arnd Bergmann a...@arndb.de --- include/asm-generic/futex.h | 82 +++ 1 files changed, 82 insertions(+), 0 deletions(-) diff --git a/include/asm

[PATCH v4 04/29] nios2: Exception handling

2014-10-08 Thread Ley Foon Tan
This patch contains the exception entry code (kernel/entry.S) and misaligned exception. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/kernel/entry.S | 559 arch/nios2/kernel/misaligned.c | 255 ++ 2 files changed, 814

Re: [PATCH v3 28/29] Documentation: Add documentation for Nios2 architecture

2014-09-26 Thread Ley Foon Tan
On Fri, Sep 26, 2014 at 10:27 AM, Ley Foon Tan wrote: > On Mon, Sep 8, 2014 at 5:22 PM, Ley Foon Tan wrote: >> Signed-off-by: Ley Foon Tan >> --- >> Documentation/nios2/README | 23 +++ >> 1 file changed, 23 insertions(+) >> create mode

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-26 Thread Ley Foon Tan
On Fri, Sep 26, 2014 at 2:41 PM, Geert Uytterhoeven wrote: > On Fri, Sep 26, 2014 at 4:22 AM, Ley Foon Tan wrote: >>> Randy Dunlap is the maintainer listed for >>> Documentation, and I see you already have linux-...@vger.kernel.org >>> on Cc here. Please

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-26 Thread Ley Foon Tan
On Fri, Sep 26, 2014 at 2:41 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Fri, Sep 26, 2014 at 4:22 AM, Ley Foon Tan lf...@altera.com wrote: Randy Dunlap rdun...@infradead.org is the maintainer listed for Documentation, and I see you already have linux-...@vger.kernel.org on Cc here

Re: [PATCH v3 28/29] Documentation: Add documentation for Nios2 architecture

2014-09-26 Thread Ley Foon Tan
On Fri, Sep 26, 2014 at 10:27 AM, Ley Foon Tan lf...@altera.com wrote: On Mon, Sep 8, 2014 at 5:22 PM, Ley Foon Tan lf...@altera.com wrote: Signed-off-by: Ley Foon Tan lf...@altera.com --- Documentation/nios2/README | 23 +++ 1 file changed, 23 insertions(+) create mode

Re: [PATCH v3 28/29] Documentation: Add documentation for Nios2 architecture

2014-09-25 Thread Ley Foon Tan
On Mon, Sep 8, 2014 at 5:22 PM, Ley Foon Tan wrote: > Signed-off-by: Ley Foon Tan > --- > Documentation/nios2/README | 23 +++ > 1 file changed, 23 insertions(+) > create mode 100644 Documentation/nios2/README > > diff --git a/Documentation/nios2/R

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-25 Thread Ley Foon Tan
On Thu, Sep 25, 2014 at 6:54 PM, Arnd Bergmann wrote: > On Thursday 25 September 2014 16:33:33 Ley Foon Tan wrote: >> There are 4 patches that touching code outside of arch/nios2, >> including this patch. >> Do we have maintainers for common files for patch #15, #27 and #28

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-25 Thread Ley Foon Tan
On Wed, Sep 24, 2014 at 7:10 PM, Arnd Bergmann wrote: > Please add my 'Acked-by: Arnd Bergmann ' to this patch > once Thomas is ok with it. I think we had concluded already that it > was correct when we talked about it last time, but he doesn't seem > convinced yet so I want to wait for his

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-25 Thread Ley Foon Tan
On Thu, Sep 25, 2014 at 6:54 PM, Arnd Bergmann a...@arndb.de wrote: On Thursday 25 September 2014 16:33:33 Ley Foon Tan wrote: There are 4 patches that touching code outside of arch/nios2, including this patch. Do we have maintainers for common files for patch #15, #27 and #28 below? Can't

Re: [PATCH v3 28/29] Documentation: Add documentation for Nios2 architecture

2014-09-25 Thread Ley Foon Tan
On Mon, Sep 8, 2014 at 5:22 PM, Ley Foon Tan lf...@altera.com wrote: Signed-off-by: Ley Foon Tan lf...@altera.com --- Documentation/nios2/README | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/nios2/README diff --git a/Documentation/nios2

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-25 Thread Ley Foon Tan
On Wed, Sep 24, 2014 at 7:10 PM, Arnd Bergmann a...@arndb.de wrote: Please add my 'Acked-by: Arnd Bergmann a...@arndb.de' to this patch once Thomas is ok with it. I think we had concluded already that it was correct when we talked about it last time, but he doesn't seem convinced yet so I

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-24 Thread Ley Foon Tan
On Wed, Sep 24, 2014 at 6:40 PM, Arnd Bergmann wrote: > On Wednesday 24 September 2014 18:18:50 Ley Foon Tan wrote: >> On Tue, Sep 23, 2014 at 6:40 PM, Arnd Bergmann wrote: >> > On Tuesday 23 September 2014 18:20:08 LF.Tan wrote: >> >> Hi Arnd >> >>

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-24 Thread Ley Foon Tan
On Wed, Sep 24, 2014 at 5:47 AM, Thomas Gleixner wrote: > On Tue, 23 Sep 2014, LF.Tan wrote: >> On Mon, Sep 8, 2014 at 5:22 PM, Ley Foon Tan wrote: >> > Follow m68k futex implementation for !CONFIG_SMP. > > Great. Follow arch/random implementation blind

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-24 Thread Ley Foon Tan
On Tue, Sep 23, 2014 at 6:40 PM, Arnd Bergmann wrote: > On Tuesday 23 September 2014 18:20:08 LF.Tan wrote: >> Hi Arnd >> >> Are you okay with this generic futex in asm-generic? >> > > Yes, this looks good. Remind me again who need this, would it make > sense to merge this through an

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-24 Thread Ley Foon Tan
On Tue, Sep 23, 2014 at 6:40 PM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 23 September 2014 18:20:08 LF.Tan wrote: Hi Arnd Are you okay with this generic futex in asm-generic? Yes, this looks good. Remind me again who need this, would it make sense to merge this through an

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-24 Thread Ley Foon Tan
On Wed, Sep 24, 2014 at 5:47 AM, Thomas Gleixner t...@linutronix.de wrote: On Tue, 23 Sep 2014, LF.Tan wrote: On Mon, Sep 8, 2014 at 5:22 PM, Ley Foon Tan lf...@altera.com wrote: Follow m68k futex implementation for !CONFIG_SMP. Great. Follow arch/random implementation blindly and copy all

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-24 Thread Ley Foon Tan
On Wed, Sep 24, 2014 at 6:40 PM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 24 September 2014 18:18:50 Ley Foon Tan wrote: On Tue, Sep 23, 2014 at 6:40 PM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 23 September 2014 18:20:08 LF.Tan wrote: Hi Arnd Are you okay with this generic

Re: [PATCH v3 26/29] nios2: ptrace support

2014-09-17 Thread Ley Foon Tan
On Tue, Sep 16, 2014 at 5:43 PM, Tobias Klauser wrote: > > This could be simplified to: > > long arch_ptrace(struct task_struct *child, long request, unsigned long addr, > unsigned long data) > { > return ptrace_request(child, request, addr, data); > } Okay, will change

Re: [PATCH v3 26/29] nios2: ptrace support

2014-09-17 Thread Ley Foon Tan
On Tue, Sep 16, 2014 at 5:43 PM, Tobias Klauser tklau...@distanz.ch wrote: This could be simplified to: long arch_ptrace(struct task_struct *child, long request, unsigned long addr, unsigned long data) { return ptrace_request(child, request, addr, data); } Okay,

[PATCH v3 13/29] nios2: Interrupt handling

2014-09-08 Thread Ley Foon Tan
This patch adds the support for IRQ handling. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/irq.h | 28 arch/nios2/include/asm/irqflags.h | 69 + arch/nios2/kernel/irq.c | 93 +++ 3 files

[PATCH v3 15/29] Add ELF machine define for Nios2

2014-09-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- include/uapi/linux/elf-em.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 01529bd..7f06c0d 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -33,6 +33,7 @@ #define

[PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-08 Thread Ley Foon Tan
Follow m68k futex implementation for !CONFIG_SMP. Signed-off-by: Ley Foon Tan --- include/asm-generic/futex.h | 82 + 1 file changed, 82 insertions(+) diff --git a/include/asm-generic/futex.h b/include/asm-generic/futex.h index 01f227e..f5650a5

[PATCH v3 10/29] nios2: Process management

2014-09-08 Thread Ley Foon Tan
This patch adds support for thread creation and context switching. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/mmu_context.h | 66 + arch/nios2/include/asm/processor.h | 103 ++ arch/nios2/include/asm/switch_to.h | 31 + arch/nios2/include/asm

[PATCH v3 19/29] nios2: Library functions

2014-09-08 Thread Ley Foon Tan
Add optimised library functions for nios2. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/checksum.h | 78 +++ arch/nios2/include/asm/string.h | 24 + arch/nios2/lib/memcpy.c | 199 ++ arch/nios2/lib/memmove.c

[PATCH v3 09/29] nios2: Page table management

2014-09-08 Thread Ley Foon Tan
This patch adds support for page table management. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/pgalloc.h | 86 ++ arch/nios2/include/asm/pgtable-bits.h | 35 arch/nios2/include/asm/pgtable.h | 305 ++ arch/nios2/mm/pgtable.c

[PATCH v3 29/29] nios2: Build infrastructure

2014-09-08 Thread Ley Foon Tan
This patch adds Makefile and Kconfig files required for building a nios2 kernel. Signed-off-by: Ley Foon Tan --- arch/nios2/Kconfig | 201 +++ arch/nios2/Kconfig.debug | 17 +++ arch/nios2/Makefile | 73

[PATCH v3 04/29] nios2: Exception handling

2014-09-08 Thread Ley Foon Tan
This patch contains the exception entry code (kernel/entry.S) and misaligned exception. Signed-off-by: Ley Foon Tan --- arch/nios2/kernel/entry.S | 548 + arch/nios2/kernel/misaligned.c | 255 +++ 2 files changed, 803 insertions

[PATCH v3 14/29] nios2: DMA mapping API

2014-09-08 Thread Ley Foon Tan
This patch adds support for the DMA mapping API. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/dma-mapping.h | 130 arch/nios2/mm/dma-mapping.c | 185 +++ 2 files changed, 315 insertions(+) create mode 100644 arch/nios2

[PATCH v3 11/29] nios2: Cache handling

2014-09-08 Thread Ley Foon Tan
This patch adds functionality required for cache maintenance. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/cache.h | 36 + arch/nios2/include/asm/cacheflush.h | 52 +++ arch/nios2/mm/cacheflush.c | 270 3 files changed, 358

[PATCH v3 12/29] nios2: TLB handling

2014-09-08 Thread Ley Foon Tan
This patch adds the TLB maintenance functions. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/tlb.h | 34 + arch/nios2/include/asm/tlbflush.h | 46 +++ arch/nios2/mm/tlb.c | 274 ++ 3 files changed, 354 insertions

<    3   4   5   6   7   8   9   10   11   12   >