Re: [PATCH v6 19/36] nds32: VDSO support

2018-02-05 Thread Vincent Chen
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...@andestech.com> > > Acked-by: Arnd Bergmann <a...@arndb.de&g

Re: [PATCH v6 20/36] nds32: Signal handling support

2018-02-05 Thread Vincent Chen
ons by LTP 2017 related cases and glibc 2.26 testsuite. We plan to add it in the next version patch and hope you can give us some comments as before. Thanks Vincent 2018-01-24 19:13 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Wed, Jan 24, 2018 at 1:56 AM, Vincent Chen <deanbo...@g

Re: [PATCH v6 07/36] nds32: Exception handling

2018-01-30 Thread Vincent Chen
2018-01-24 19:10 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Wed, Jan 24, 2018 at 12:09 PM, Arnd Bergmann <a...@arndb.de> wrote: >> On Wed, Jan 24, 2018 at 11:53 AM, Vincent Chen <deanbo...@gmail.com> wrote: >>> 2018-01-18 18:14 GMT+08:00 Arnd Bergmann <

Re: [PATCH v6 07/36] nds32: Exception handling

2018-01-24 Thread Vincent Chen
and >> related accessors. >> >> Signed-off-by: Vincent Chen <vince...@andestech.com> >> Signed-off-by: Greentime Hu <greent...@andestech.com> > > Here it would be good to have a more detailed explanation about the alignment > trap handling. I remember disc

Re: [PATCH v6 20/36] nds32: Signal handling support

2018-01-23 Thread Vincent Chen
2018-01-18 18:30 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu <green...@gmail.com> wrote: >> From: Greentime Hu <greent...@andestech.com> >> >> This patch adds support for signal handling. >> >>

Re: [PATCH v6 22/36] nds32: Debugging support

2018-01-22 Thread Vincent Chen
2018-01-18 18:37 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu <green...@gmail.com> wrote: >> From: Greentime Hu <greent...@andestech.com> >> >> This patch adds ptrace support. >> >> Signed-off-by:

Re: [PATCH v6 2/3] clocksource/drivers/atcpit100: VDSO support

2018-01-20 Thread Vincent Chen
by summation of __get_timerpage() and counter register offset where __get_timerpage() is used to derive the virtual address of memory-mapped clock. 2018-01-20 19:11 GMT+08:00 Vincent Chen <deanbo...@gmail.com>: > 2018-01-18 19:08 GMT+08:00 Arnd Bergmann <a...@arndb.de>: >> On Mon,

Re: [PATCH v6 2/3] clocksource/drivers/atcpit100: VDSO support

2018-01-20 Thread Vincent Chen
ke others, nds32 architecture does not define clock source, >> hence VDSO needs atcpit100 offering real-time cycle count >> to derive the correct time. >> >> Signed-off-by: Vincent Chen <vince...@andestech.com> >> Signed-off-by: Rick Chen <rickche...@

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

2017-12-18 Thread Vincent Chen
2017-12-18 19:19 GMT+08:00 Arnd Bergmann : > On Mon, Dec 18, 2017 at 7:46 AM, Greentime Hu wrote: > > >> new file mode 100644 >> index 000..90da745 >> --- /dev/null >> +++ b/arch/nds32/include/uapi/asm/unistd.h >> @@ -0,0 +1,12 @@ >> +//

Re: [PATCH v3 17/33] nds32: VDSO support

2017-12-11 Thread Vincent Chen
2017-12-08 20:14 GMT+08:00 Mark Rutland : > On Fri, Dec 08, 2017 at 07:54:42PM +0800, Greentime Hu wrote: >> 2017-12-08 18:21 GMT+08:00 Mark Rutland : >> > On Fri, Dec 08, 2017 at 05:12:00PM +0800, Greentime Hu wrote: >> >> +static int

Re: [PATCH v2 10/35] nds32: Atomic operations

2017-11-27 Thread Vincent Chen
2017-11-27 21:57 GMT+08:00 Mark Rutland : > Hi, > > On Mon, Nov 27, 2017 at 08:27:57PM +0800, Greentime Hu wrote: >> +static inline void arch_spin_unlock(arch_spinlock_t * lock) >> +{ >> + asm volatile( >> + "xor$r15, $r15, $r15\n" >> + "swi

Re: [PATCH v2 18/35] nds32: Debugging support

2017-11-27 Thread Vincent Chen
2017-11-27 22:34 GMT+08:00 Arnd Bergmann : > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: >> +struct user_pt_regs { >> + long uregs[26]; >> + long fp; >> + long gp; >> + long lp; >> + long sp; >> + long ipc; >> +#if

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

2017-11-27 Thread Vincent Chen
2017-11-27 22:37 GMT+08:00 Arnd Bergmann : > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: > >> +#ifndef _ASMNDS32_SIGNAL_H >> +#define _ASMNDS32_SIGNAL_H >> + >> +#define SA_RESTORER0x0400 >> + >> +#include >> +#endif > > As documented in

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

2017-11-27 Thread Vincent Chen
2017-11-27 22:46 GMT+08:00 Arnd Bergmann : > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: > >> diff --git a/arch/nds32/include/asm/syscalls.h >> b/arch/nds32/include/asm/syscalls.h >> new file mode 100644 >> index 000..741ccdc >> --- /dev/null >>

Re: FW: [PATCH 24/31] nds32: Miscellaneous header files

2017-11-21 Thread Vincent Chen
2017-11-09 18:42 GMT+08:00 Vincent Chen <deanbo...@gmail.com>: >>>On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu <green...@gmail.com> wrote: >>> + >>> +static inline void __delay(unsigned long loops) { >>> + __asm__ __volatile__(&qu

Re: FW: [PATCH 15/31] nds32: System calls handling

2017-11-21 Thread Vincent Chen
2017-11-13 19:42 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Nov 13, 2017 at 3:51 AM, Vincent Chen <deanbo...@gmail.com> wrote: >>>>On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu <green...@gmail.com> wrote: >>>> From: Greentime Hu

Re: [PATCH 11/31] nds32: Atomic operations

2017-11-21 Thread Vincent Chen
2017-11-20 22:29 GMT+08:00 Will Deacon <will.dea...@arm.com>: > Hi Greentime, > > On Wed, Nov 08, 2017 at 01:54:59PM +0800, Greentime Hu wrote: >> From: Greentime Hu <greent...@andestech.com> >> >> Signed-off-by: Vincent Chen <vince...@andestech.c

Fwd: FW: [PATCH 18/31] nds32: Library functions

2017-11-13 Thread Vincent Chen
>>On Wed, Nov 08, 2017 at 01:55:06PM +0800, Greentime Hu wrote: > >> +#define __range_ok(addr, size) (size <= get_fs() && addr <= (get_fs() >> +-size)) >> + >> +#define access_ok(type, addr, size) \ >> + __range_ok((unsigned long)addr, (unsigned long)size) > >> +#define

Fwd: FW: [PATCH 04/31] nds32: Exception handling

2017-11-13 Thread Vincent Chen
>> From: Greentime Hu <greent...@andestech.com> >> >> Signed-off-by: Vincent Chen <vince...@andestech.com> >> Signed-off-by: Greentime Hu <greent...@andestech.com> >> arch/nds32/mm/alignment.c | 564 >> +++

Fwd: FW: [PATCH 15/31] nds32: System calls handling

2017-11-12 Thread Vincent Chen
>>On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> From: Greentime Hu > >> +#endif /* __ASM_NDS32_SYSCALLS_H */ >> diff --git a/arch/nds32/include/asm/unistd.h >> b/arch/nds32/include/asm/unistd.h new file mode 100644 index >> 000..b30adca

Fwd: FW: [PATCH 17/31] nds32: Signal handling support

2017-11-12 Thread Vincent Chen
>> +static int restore_sigframe(struct pt_regs *regs, >> + struct rt_sigframe __user * sf) { > >[snip] > >> + err |= !valid_user_regs(regs); > >IDGI... Where do you modify ->ipsw at all and how can valid_user_regs() come >to be false here? > Thanks. This code is

Re: FW: [PATCH 24/31] nds32: Miscellaneous header files

2017-11-09 Thread Vincent Chen
>>On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> + >> +static inline void __delay(unsigned long loops) { >> + __asm__ __volatile__(".align 2\n" >> +"1:\n" >> +"\taddi\t%0, %0, -1\n" >> +