[PATCH 04/25] mm/arc: Use mm_fault_accounting()

2020-06-15 Thread Peter Xu
Use the new mm_fault_accounting() helper for page fault accounting. The functional change here is that now we take the whole page fault as a major fault as long as any of the retried page fault is a major fault. Previously we only considered the last fault. CC: Vineet Gupta CC: linux-snps-arc@l

[PATCH v7 08/13] ARC: Linux ABI

2020-06-15 Thread 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 | 64 + sysdeps/unix/sysv/linux/arc/makecontext.c | 73 +

[PATCH v7 12/13] build-many-glibcs.py: Enable ARC builds

2020-06-15 Thread Vineet Gupta
--- scripts/build-many-glibcs.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 6c6615b200d9..64f5713530bd 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -162,6 +162,15 @@ class Cont

[PATCH v7 02/13] ARC: startup and dynamic linking code

2020-06-15 Thread Vineet Gupta
Code for C runtime startup and dynamic loading including PLT layout. --- sysdeps/arc/bits/link.h | 52 ++ sysdeps/arc/dl-machine.h | 341 ++ sysdeps/arc/entry.h | 5 + sysdeps/arc/ldsodefs.h| 43 + sysdeps/arc/sotruss-lib.c | 50 ++

[PATCH v7 11/13] ARC: Build Infrastructure

2020-06-15 Thread Vineet Gupta
--- config.h.in| 3 + sysdeps/arc/Implies| 3 + sysdeps/arc/Makefile | 21 +++ sysdeps/arc/Versions | 8 + sysdeps/arc/configure | 182 + sysdeps/arc/

[PATCH v7 09/13] ARC: Linux Startup and Dynamic Loading

2020-06-15 Thread Vineet Gupta
--- sysdeps/unix/sysv/linux/arc/dl-static.c | 84 + sysdeps/unix/sysv/linux/arc/ldsodefs.h | 32 ++ 2 files changed, 116 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/arc/dl-static.c create mode 100644 sysdeps/unix/sysv/linux/arc/ldsodefs.h diff --git

[PATCH v7 05/13] ARC: math soft float support

2020-06-15 Thread Vineet Gupta
--- sysdeps/arc/bits/fenv.h | 78 +++ 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 | 70 +++

[PATCH v7 06/13] ARC: hardware floating point support

2020-06-15 Thread Vineet Gupta
--- sysdeps/arc/fpu/fclrexcpt.c | 36 ++ sysdeps/arc/fpu/fegetenv.c | 37 ++ sysdeps/arc/fpu/fegetmode.c | 31 sysdeps/arc/fpu/fegetround.c| 32 + sysdeps/arc/fpu/feholdexcpt.c | 43 +++ sysdeps/arc/fpu/fesetenv.c

[PATCH v7 03/13] ARC: Thread Local Storage support

2020-06-15 Thread Vineet Gupta
This includes all 4 TLS addressing models --- sysdeps/arc/dl-tls.h | 30 +++ sysdeps/arc/libc-tls.c | 27 ++ sysdeps/arc/nptl/tcb-offsets.sym | 11 +++ sysdeps/arc/nptl/tls.h | 148 +++ sysdeps/arc/stackinfo.h | 33 ++

[PATCH v7 10/13] ARC: ABI lists

2020-06-15 Thread Vineet Gupta
--- sysdeps/arc/fpu/libm-test-ulps| 1140 + sysdeps/arc/fpu/libm-test-ulps-name |1 + sysdeps/arc/nofpu/libm-test-ulps | 270 +++ sysdeps/arc/nofpu/libm-test-ulps-name |1 + sysdeps/unix/sysv/linux/arc/c++-types.data| 67 + sysd

[PATCH v7 13/13] Documentation for ARC port

2020-06-15 Thread Vineet Gupta
--- NEWS| 11 +++ README | 1 + manual/install.texi | 4 3 files changed, 16 insertions(+) diff --git a/NEWS b/NEWS index a660fc59a89e..db65fea8b6ec 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,17 @@ Major new features: * New locale added: ckb_IQ (Kurdi

[PATCH v7 01/13] ARC: ABI Implementation

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

[PATCH v7 00/13] glibc port to ARC processors

2020-06-15 Thread Vineet Gupta
Hi, This patchset implements glibc port to ARC HS48x processor from Synopsys. g...@github.com:foss-for-synopsys-dwc-arc-processors/glibc.git upstream-v7 v7: * Addresses review comments from Adhemerval Zanella and Florian Weimer (many thx to you both) * Dropped ARC specific semaphore.

[PATCH v7 07/13] ARC: Linux Syscall Interface

2020-06-15 Thread Vineet Gupta
--- sysdeps/unix/sysv/linux/arc/arch-syscall.h| 303 ++ sysdeps/unix/sysv/linux/arc/bits/timesize.h | 21 ++ sysdeps/unix/sysv/linux/arc/clone.S | 93 ++ .../unix/sysv/linux/arc/fixup-asm-unistd.h| 41 +++ sysdeps/unix/sysv/linux/arc/jmp_buf-macros.h |

[PATCH v7 04/13] ARC: Atomics and Locking primitives

2020-06-15 Thread Vineet Gupta
--- sysdeps/arc/atomic-machine.h | 69 1 file changed, 69 insertions(+) create mode 100644 sysdeps/arc/atomic-machine.h diff --git a/sysdeps/arc/atomic-machine.h b/sysdeps/arc/atomic-machine.h new file mode 100644 index ..1c8638bb44ef --- /dev/nul

Re: [PATCH v2] ieee754/dbl-64: Reduce the scope of temporary storage variables

2020-06-15 Thread Vineet Gupta
On 6/15/20 12:53 PM, Joseph Myers wrote: >> This analysis looks good me, although I can't voucher for Joseph. > This patch is OK. Pushed. Thx ! -Vineet ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman

Re: [PATCH v2] ieee754/dbl-64: Reduce the scope of temporary storage variables

2020-06-15 Thread Joseph Myers
On Mon, 15 Jun 2020, Adhemerval Zanella wrote: > >> Is this sufficient for comparison ? > > > > ping ! > > > > This analysis looks good me, although I can't voucher for Joseph. This patch is OK. -- Joseph S. Myers jos...@codesourcery.com ___ linux

Re: [PATCH v2] ieee754/dbl-64: Reduce the scope of temporary storage variables

2020-06-15 Thread Adhemerval Zanella
On 15/06/2020 16:09, Vineet Gupta via Libc-alpha wrote: > On 6/4/20 12:08 PM, Vineet Gupta via Libc-alpha wrote: >> On 6/2/20 1:31 PM, Vineet Gupta via Libc-alpha wrote: >>> On 6/2/20 11:16 AM, Joseph Myers wrote: On Mon, 1 Jun 2020, Vineet Gupta via Libc-alpha wrote: > Also as sug

Re: [PATCH v2] ieee754/dbl-64: Reduce the scope of temporary storage variables

2020-06-15 Thread Vineet Gupta
On 6/4/20 12:08 PM, Vineet Gupta via Libc-alpha wrote: > On 6/2/20 1:31 PM, Vineet Gupta via Libc-alpha wrote: >> On 6/2/20 11:16 AM, Joseph Myers wrote: >>> On Mon, 1 Jun 2020, Vineet Gupta via Libc-alpha wrote: >>> Also as suggested by Joseph [1] used --strip and compared the libs with

Re: [PATCH 04/21] mm: free_area_init: use maximal zone PFNs rather than zone sizes

2020-06-15 Thread Greg Ungerer
Hi Mike, On 15/6/20 4:22 pm, Mike Rapoport wrote: On Mon, Jun 15, 2020 at 01:53:42PM +1000, Greg Ungerer wrote: From: Mike Rapoport Currently, architectures that use free_area_init() to initialize memory map and node and zone structures need to calculate zone and hole sizes. We can use free_a