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

2018-02-05 Thread Vincent Chen
t;> counter). >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu > > Acked-by: Arnd Bergmann Dear Arnd Bergmann: We find a small bug here which make LTP 20170929 clock_getres01 fail. The bug is in __vdso_clock_getres() function. When argument res is NU

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

2018-02-05 Thread Vincent Chen
ll recover it. We verify all modifications 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 : > On Wed, Jan 24, 2018 at 1:56 AM, Vincent C

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

2018-01-30 Thread Vincent Chen
2018-01-24 19:10 GMT+08:00 Arnd Bergmann : > On Wed, Jan 24, 2018 at 12:09 PM, Arnd Bergmann wrote: >> On Wed, Jan 24, 2018 at 11:53 AM, Vincent Chen wrote: >>> 2018-01-18 18:14 GMT+08:00 Arnd Bergmann : > >> Ok. I still wonder about the kernel part of this though: is

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

2018-01-24 Thread Vincent Chen
2018-01-18 18:14 GMT+08:00 Arnd Bergmann : > On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> This patch includes the exception/interrupt entries, pt_reg structure and >> related accessors. >> >> Signed-off-by: Vince

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 : > On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> This patch adds support for signal handling. >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu > > I n

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

2018-01-22 Thread Vincent Chen
2018-01-18 18:37 GMT+08:00 Arnd Bergmann : > On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> This patch adds ptrace support. >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu > > I must have missed th

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

2018-01-20 Thread Vincent Chen
er 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 : > 2018-01-18 19:08 GMT+08:00 Arnd Bergmann : >> On Mon, Jan 15, 2018 at 6:57 AM, Greentime Hu w

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

2018-01-20 Thread Vincent Chen
DSO needs atcpit100 offering real-time cycle count >> to derive the correct time. >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Rick Chen >> Signed-off-by: Greentime Hu > > I'm a bit puzzled by this patch, can you explain how the vdso actually >

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 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +// Copyright (C) 20

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 grab_timer_node_info(void) >> >> +{ >> >> + struct device_n

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$r15, [%0]\n" >> +

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 defined(CONFIG_HWZOL) >> + long

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 asm-generic/signal.h, new architectures sh

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 >> +++ b/arch/nds32/include/asm/syscalls.

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 : >>>On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >>> + >>> +static inline void __delay(unsigned long loops) { >>> + __asm__ __volatile__(".align 2\n" >>> +&quo

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 : > On Mon, Nov 13, 2017 at 3:51 AM, Vincent Chen wrote: >>>>On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >>>> From: Greentime Hu > >> >>>> +#define __ARCH_WANT_SYS_CLONE >>> >>>Th

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

2017-11-21 Thread Vincent Chen
2017-11-20 22:29 GMT+08:00 Will Deacon : > Hi Greentime, > > On Wed, Nov 08, 2017 at 01:54:59PM +0800, Greentime Hu wrote: >> From: Greentime Hu >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu >> --- >> arch/nds32/include/asm/futex.

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 __get_us

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

2017-11-13 Thread Vincent Chen
>> From: Greentime Hu >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu >> arch/nds32/mm/alignment.c | 564 >> +++ > >> diff --git a/arch/nds32/mm/alignment.c b/arch/nds32/mm/alignment.c n

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 >> --- /dev/null >> +++ b/arch/nds32/include/as

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 trivia

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" >> +"\tbgtz\t%0, 1