Re: [PATCH V15] mm/debug: Add tests validating architecture page table helpers

2020-03-06 Thread Christophe Leroy
Le 07/03/2020 à 01:56, Anshuman Khandual a écrit : On 03/07/2020 06:04 AM, Qian Cai wrote: On Mar 6, 2020, at 7:03 PM, Anshuman Khandual wrote: Hmm, set_pte_at() function is not preferred here for these tests. The idea is to avoid or atleast minimize TLB/cache flushes triggered from

Re: [PATCH v3 16/17] NEWS: mention ARC port

2020-03-06 Thread Joseph Myers
On Sat, 7 Mar 2020, Vineet Gupta wrote: > On 3/6/20 5:08 PM, Joseph Myers wrote: > > > "normal" means "the versions documented in install.texi, node Tools for > > Compilation, as the minimum for building glibc on most architectures". > > > > That node should give comprehensive information on

Re: [PATCH v3 16/17] NEWS: mention ARC port

2020-03-06 Thread Vineet Gupta
On 3/6/20 5:08 PM, Joseph Myers wrote: > "normal" means "the versions documented in install.texi, node Tools for > Compilation, as the minimum for building glibc on most architectures". > > That node should give comprehensive information on what tool versions are > needed to build glibc. If

Re: [PATCH v3 00/17] glibc port to ARC processors

2020-03-06 Thread Joseph Myers
On Sat, 7 Mar 2020, Vineet Gupta wrote: > On 3/6/20 4:21 PM, Joseph Myers wrote: > > Please give details of what the entries would be for > > and > > ARC >* 32-bit, hard-float, LE: /lib/ld-linux-arc.so.2 >* 32-bit, soft-float, LE:

Re: [PATCH V15] mm/debug: Add tests validating architecture page table helpers

2020-03-06 Thread Qian Cai
> On Mar 6, 2020, at 7:56 PM, Anshuman Khandual > wrote: > > > > On 03/07/2020 06:04 AM, Qian Cai wrote: >> >> >>> On Mar 6, 2020, at 7:03 PM, Anshuman Khandual >>> wrote: >>> >>> Hmm, set_pte_at() function is not preferred here for these tests. The idea >>> is to avoid or atleast

Re: [PATCH v3 16/17] NEWS: mention ARC port

2020-03-06 Thread Joseph Myers
On Sat, 7 Mar 2020, Vineet Gupta wrote: > On 3/6/20 4:14 PM, Joseph Myers wrote: > > On Fri, 6 Mar 2020, Vineet Gupta wrote: > > > >> +* Support for ARC HS cores running Linux has been contributed by Synopsys. > >> + Port requires atleast > >> +- binutils-2.31 (binutils-2_31-branch: commit

Re: [PATCH V15] mm/debug: Add tests validating architecture page table helpers

2020-03-06 Thread Anshuman Khandual
On 03/07/2020 06:04 AM, Qian Cai wrote: > > >> On Mar 6, 2020, at 7:03 PM, Anshuman Khandual >> wrote: >> >> Hmm, set_pte_at() function is not preferred here for these tests. The idea >> is to avoid or atleast minimize TLB/cache flushes triggered from these sort >> of 'static' tests.

Re: [PATCH v3 00/17] glibc port to ARC processors

2020-03-06 Thread Vineet Gupta
On 3/6/20 4:21 PM, Joseph Myers wrote: > Please give details of what the entries would be for > and ARC * 32-bit, hard-float, LE: /lib/ld-linux-arc.so.2 * 32-bit, soft-float, LE: /lib/ld-linux-arc.so.2 (soft-float ABI is compatible with

Re: [PATCH v3 16/17] NEWS: mention ARC port

2020-03-06 Thread Vineet Gupta
On 3/6/20 4:14 PM, Joseph Myers wrote: > On Fri, 6 Mar 2020, Vineet Gupta wrote: > >> +* Support for ARC HS cores running Linux has been contributed by Synopsys. >> + Port requires atleast >> +- binutils-2.31 (binutils-2_31-branch: commit 6ce881c15fc4, 2018-10-04) >> +- gcc 8.2

Re: [PATCH v3 17/17] ARC: changes to enable 64-bit time_t, off_t, ino_t etc

2020-03-06 Thread Vineet Gupta
On 3/6/20 4:19 PM, Joseph Myers wrote: > On Fri, 6 Mar 2020, Vineet Gupta wrote: > >> Signed-off-by: Vineet Gupta >> --- >> .../sysv/linux/arc/bits/socket-constants.h| 4 +-- > > There is a general principle for patch series: you should not have later > patches fixing up things that were

Re: [PATCH V15] mm/debug: Add tests validating architecture page table helpers

2020-03-06 Thread Qian Cai
> On Mar 6, 2020, at 7:03 PM, Anshuman Khandual > wrote: > > Hmm, set_pte_at() function is not preferred here for these tests. The idea > is to avoid or atleast minimize TLB/cache flushes triggered from these sort > of 'static' tests. set_pte_at() is platform provided and could/might trigger

Re: [PATCH v3 14/17] ARC: Build Infrastructure

2020-03-06 Thread Vineet Gupta
On 3/6/20 4:16 PM, Joseph Myers wrote: > On Fri, 6 Mar 2020, Vineet Gupta wrote: >> + >> +arch_minimum_kernel=3.9.0 > > Surely you mean 5.1.0, at least until the glibc support for falling back > to 32-bit time syscalls from 64-bit time interfaces is completed? Indeed patch 17/17 does that as

Re: [PATCH v3 01/17] gcc PR 88409: miscompilation due to missing cc clobber in longlong.h macros

2020-03-06 Thread Vineet Gupta
On 3/6/20 4:12 PM, Joseph Myers wrote: > If this gets longlong.h back in sync with changes made in the GCC version, > then please commit. Yes it does. The only differences now are in the initial licensing header due to glibc's variant bumping year and the http -> https. BTW, I don't think I

Re: [PATCH v3 00/17] glibc port to ARC processors

2020-03-06 Thread Joseph Myers
Please give details of what the entries would be for and for this port that you intend to add once the port is in. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH v3 17/17] ARC: changes to enable 64-bit time_t, off_t, ino_t etc

2020-03-06 Thread Joseph Myers
On Fri, 6 Mar 2020, Vineet Gupta wrote: > Signed-off-by: Vineet Gupta > --- > .../sysv/linux/arc/bits/socket-constants.h| 4 +-- There is a general principle for patch series: you should not have later patches fixing up things that were wrong with earlier patches. Each patch should add

Re: [PATCH v3 14/17] ARC: Build Infrastructure

2020-03-06 Thread Joseph Myers
On Fri, 6 Mar 2020, Vineet Gupta wrote: > diff --git a/sysdeps/unix/sysv/linux/arc/configure.ac > b/sysdeps/unix/sysv/linux/arc/configure.ac > new file mode 100644 > index ..a9528032d32a > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/configure.ac > @@ -0,0 +1,4 @@ >

Re: [PATCH v3 16/17] NEWS: mention ARC port

2020-03-06 Thread Joseph Myers
On Fri, 6 Mar 2020, Vineet Gupta wrote: > +* Support for ARC HS cores running Linux has been contributed by Synopsys. > + Port requires atleast > +- binutils-2.31 (binutils-2_31-branch: commit 6ce881c15fc4, 2018-10-04) > +- gcc 8.2 (gcc-8-stable: commit 0d5ba57508c5, 2019-01-29) > +-

Re: [PATCH v3 01/17] gcc PR 88409: miscompilation due to missing cc clobber in longlong.h macros

2020-03-06 Thread Joseph Myers
If this gets longlong.h back in sync with changes made in the GCC version, then please commit. -- Joseph S. Myers jos...@codesourcery.com ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org

Re: [PATCH v2 2/4] ARC: handle DSP presence in HW

2020-03-06 Thread Vineet Gupta
On 3/5/20 12:02 PM, Eugeniy Paltsev wrote: > In case of DSP extension presence in HW some instructions > (related to integer multiply, multiply-accumulate, and divide > operation) executes on this DSP execution unit. So their > execution will depend on dsp configuration register (DSP_CTRL) > > As

Re: [PATCH V15] mm/debug: Add tests validating architecture page table helpers

2020-03-06 Thread Anshuman Khandual
On 03/07/2020 02:14 AM, Qian Cai wrote: > On Fri, 2020-03-06 at 05:27 +0530, Anshuman Khandual wrote: >> This adds tests which will validate architecture page table helpers and >> other accessors in their compliance with expected generic MM semantics. >> This will help various architectures in

Re: [PATCH v2 1/4] ARC: add helpers to sanitize config options

2020-03-06 Thread Vineet Gupta
On 3/5/20 12:02 PM, Eugeniy Paltsev wrote: > We'll use this macro in coming patches extensively. > > Signed-off-by: Eugeniy Paltsev LGTM ! Acked-by: Vineet Gupta ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org

Re: [PATCH V15] mm/debug: Add tests validating architecture page table helpers

2020-03-06 Thread Qian Cai
On Fri, 2020-03-06 at 05:27 +0530, Anshuman Khandual wrote: > This adds tests which will validate architecture page table helpers and > other accessors in their compliance with expected generic MM semantics. > This will help various architectures in validating changes to existing > page table

[PATCH v3 13/17] ARC: Update syscall-names.list for ARC specific syscalls

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/unix/sysv/linux/syscall-names.list | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index 3d89814003a2..758b50164103 100644 ---

[PATCH v3 04/17] ARC: startup and dynamic linking code

2020-03-06 Thread Vineet Gupta
Code for C runtime startup and dynamic loading including PLT layout. Signed-off-by: Vineet Gupta --- sysdeps/arc/bits/link.h | 52 ++ sysdeps/arc/dl-machine.h | 340 ++ sysdeps/arc/entry.h | 5 + sysdeps/arc/ldsodefs.h| 43 +

[PATCH v3 09/17] ARC: Linux Syscall Interface

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/nptl/tls.h| 14 +- sysdeps/unix/sysv/linux/arc/arch-syscall.h| 317 ++ .../sysv/linux/arc/bits/socket-constants.h| 38 +++ sysdeps/unix/sysv/linux/arc/clone.S | 98 ++

[PATCH v3 05/17] ARC: Thread Local Storage support

2020-03-06 Thread Vineet Gupta
This includes all 4 TLS addressing models Signed-off-by: Vineet Gupta --- sysdeps/arc/dl-tls.h | 30 +++ sysdeps/arc/libc-tls.c | 27 ++ sysdeps/arc/nptl/tcb-offsets.sym | 11 +++ sysdeps/arc/nptl/tls.h | 150 +++

[PATCH v3 14/17] ARC: Build Infrastructure

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/Implies| 3 +++ sysdeps/arc/Makefile | 25 ++ sysdeps/arc/Versions | 6 ++ sysdeps/arc/configure | 14

[PATCH v3 02/17] ARC: add definitions to elf/elf.h

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- elf/elf.h | 70 ++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/elf/elf.h b/elf/elf.h index ab8930463c67..51e9968405ff 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -330,7 +330,7 @@ typedef struct

[PATCH v3 11/17] ARC: Linux Startup and Dynamic Loading

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/start.S | 15 +++-- sysdeps/unix/sysv/linux/arc/dl-static.c | 84 + sysdeps/unix/sysv/linux/arc/ldsodefs.h | 32 ++ 3 files changed, 125 insertions(+), 6 deletions(-) create mode 100644

[PATCH v3 17/17] ARC: changes to enable 64-bit time_t, off_t, ino_t etc

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- .../sysv/linux/arc/bits/socket-constants.h| 4 +-- sysdeps/unix/sysv/linux/arc/bits/timesize.h | 21 +++ sysdeps/unix/sysv/linux/arc/c++-types.data| 16 ++-- sysdeps/unix/sysv/linux/arc/configure | 2 +-

[PATCH v3 07/17] ARC: math soft float support

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/bits/fenv.h | 72 ++ sysdeps/arc/nofpu/Implies | 1 + sysdeps/arc/nofpu/math-tests-exceptions.h | 27 + sysdeps/arc/nofpu/math-tests-rounding.h | 27 + sysdeps/arc/sfp-machine.h

[PATCH v3 06/17] ARC: Atomics and Locking primitives

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/atomic-machine.h | 73 +++ sysdeps/arc/nptl/bits/semaphore.h | 32 ++ 2 files changed, 105 insertions(+) create mode 100644 sysdeps/arc/atomic-machine.h create mode 100644 sysdeps/arc/nptl/bits/semaphore.h

[PATCH v3 12/17] ARC: ABI lists

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/nofpu/libm-test-ulps | 390 +++ sysdeps/arc/nofpu/libm-test-ulps-name |1 + sysdeps/unix/sysv/linux/arc/c++-types.data| 67 + sysdeps/unix/sysv/linux/arc/ld.abilist|5 +

[PATCH v3 10/17] ARC: Linux ABI

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/nptl/pthreaddef.h | 32 +++ sysdeps/unix/sysv/linux/arc/bits/procfs.h | 35 +++ .../sysv/linux/arc/bits/types/__sigset_t.h| 12 +++ sysdeps/unix/sysv/linux/arc/getcontext.S | 63 +

[PATCH v3 01/17] gcc PR 88409: miscompilation due to missing cc clobber in longlong.h macros

2020-03-06 Thread Vineet Gupta
simple test such as below was failing. | void main(int argc, char *argv[]) | { |size_t total_time = 115424; // expected 115.424 |double secs = (double)total_time/(double)1000; |printf("%s %d %lf\n", "secs", total_time, secs); // prints 113.504 |

[PATCH v3 00/17] glibc port to ARC processors

2020-03-06 Thread Vineet Gupta
Hi, This patchset implements glibc port to ARC HS48x processor from Synopsys. It is based on 64-time time and offset work by Alistair and others. Thank you guys for all the hard-work. Code - g...@github.com:foss-for-synopsys-dwc-arc-processors/glibc.git #arc-glibc-next-64-bit-time

[PATCH v3 08/17] ARC: hardware floating point support

2020-03-06 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/bits/fenv.h |9 +- sysdeps/arc/fpu/e_sqrt.c| 27 + sysdeps/arc/fpu/e_sqrtf.c | 27 + sysdeps/arc/fpu/fclrexcpt.c | 36 + sysdeps/arc/fpu/fegetenv.c | 37 + sysdeps/arc/fpu/fegetmode.c

[PATCH v3 03/17] ARC: ABI Implementation

2020-03-06 Thread Vineet Gupta
This code deals with the ARC ABI. Signed-off-by: Vineet Gupta --- sysdeps/arc/__longjmp.S | 50 ++ sysdeps/arc/abort-instr.h | 2 + sysdeps/arc/bits/endianness.h | 15 +++ sysdeps/arc/bits/setjmp.h | 26 sysdeps/arc/bsd-_setjmp.S | 1 +