Re: [PATCH v4 15/15] Documentation for ARC port

2020-03-27 Thread Joseph Myers
On Fri, 27 Mar 2020, Vineet Gupta via Libc-alpha wrote: > On 3/27/20 3:49 PM, Joseph Myers wrote: > > On Thu, 12 Mar 2020, Vineet Gupta via Libc-alpha wrote: > > > >> +* Support for ARC HS cores running Linux has been contributed by Synopsys. > >> + > >> + Port requires atleast > >> +-

Re: [PATCH v4 15/15] Documentation for ARC port

2020-03-27 Thread Vineet Gupta
On 3/27/20 3:49 PM, Joseph Myers wrote: > On Thu, 12 Mar 2020, Vineet Gupta via Libc-alpha wrote: > >> +* Support for ARC HS cores running Linux has been contributed by Synopsys. >> + >> + Port requires atleast >> +- binutils-2.32 (binutils-2_31-branch: commit 6ce881c15fc4, 2018-10-04) >> +

Re: [PATCH v4 02/15] ARC: ABI Implementation

2020-03-27 Thread Vineet Gupta
On 3/27/20 4:35 PM, Joseph Myers wrote: > On Fri, 27 Mar 2020, Vineet Gupta via Libc-alpha wrote: > >> I added bits in sysdeps/arc/configure.ac and corresponding conditional in >> shlib-version. But I have to ask (embarrassingly). how to I regenerate >> sysdeps/arc/configure. I tried all possibe

Re: [PATCH v4 02/15] ARC: ABI Implementation

2020-03-27 Thread Joseph Myers
On Fri, 27 Mar 2020, Vineet Gupta via Libc-alpha wrote: > I added bits in sysdeps/arc/configure.ac and corresponding conditional in > shlib-version. But I have to ask (embarrassingly). how to I regenerate > sysdeps/arc/configure. I tried all possibe autoconf cmds with toggles (both > at > top

Re: [PATCH v4 02/15] ARC: ABI Implementation

2020-03-27 Thread Vineet Gupta
On 3/26/20 11:48 AM, Joseph Myers wrote: > On Wed, 25 Mar 2020, Vineet Gupta via Libc-alpha wrote: > >> Hardware-wise, ARC can be configured to be LE or BE and software supports >> that >> (cfr Linux or uClibc). The initial glibc port was only aiming LE but we >> ended up >> with BE as well due

Re: [PATCH v4 15/15] Documentation for ARC port

2020-03-27 Thread Joseph Myers
On Thu, 12 Mar 2020, Vineet Gupta via Libc-alpha wrote: > +* Support for ARC HS cores running Linux has been contributed by Synopsys. > + > + Port requires atleast > +- binutils-2.32 (binutils-2_31-branch: commit 6ce881c15fc4, 2018-10-04) > +- gcc 8.3 (gcc-8-stable: commit 0d5ba57508c5,

Re: [PATCH v4 13/15] ARC: Build Infrastructure

2020-03-27 Thread Joseph Myers
On Thu, 12 Mar 2020, Vineet Gupta via Libc-alpha wrote: > +ifeq ($(subdir),debug) > +CFLAGS-backtrace.c += -funwind-tables > +endif debug/Makefile already has CFLAGS-backtrace.c += -fno-omit-frame-pointer -funwind-tables so you shouldn't need this. > +++ b/sysdeps/arc/Versions > @@ -0,0 +1,6

Re: [PATCH v4 11/15] ARC: ABI lists

2020-03-27 Thread Vineet Gupta
On 3/27/20 11:39 AM, Joseph Myers wrote: > On Fri, 27 Mar 2020, Vineet Gupta via Libc-alpha wrote: > >> Done now. FWIW regen-ulps simply barfs so these need to be hand edited. > What exactly is the regen-ulps problem? It ought to be working for all > ports. PASS: glibcs-arc-linux-gnu

Re: [PATCH v4 07/15] ARC: hardware floating point support

2020-03-27 Thread Vineet Gupta
On 3/27/20 11:37 AM, Joseph Myers wrote: > feupdateenv has to preserve the previously raised exceptions even in the > FE_DFL_ENV case. It's equivalent to > > exc = fetestexcept (FE_ALL_EXCEPT); > fesetenv (envp); > feraiseexcept (exc); Ok. >> In some places I have following: >> >> if

Re: [PATCH v4 11/15] ARC: ABI lists

2020-03-27 Thread Joseph Myers
On Fri, 27 Mar 2020, Vineet Gupta via Libc-alpha wrote: > Done now. FWIW regen-ulps simply barfs so these need to be hand edited. What exactly is the regen-ulps problem? It ought to be working for all ports. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH v4 08/15] ARC: Linux Syscall Interface

2020-03-27 Thread Joseph Myers
On Fri, 27 Mar 2020, Vineet Gupta via Libc-alpha wrote: > But in grep'ing I see a weird thing: SO_RCVTIMEO in user exposed > socket.h has a totally different value from socket-constants.h - how is > that supposed to work. The top-level bits/socket.h is only for OSes without their own

Re: [PATCH v4 07/15] ARC: hardware floating point support

2020-03-27 Thread Joseph Myers
On Fri, 27 Mar 2020, Vineet Gupta via Libc-alpha wrote: > > The bits to enable exception traps look like dynamic control mode bits to > > me. In general fegetmode should only need to mask off bits on > > architectures where the same register has both control and status bits, > > not on

Re: [RFC] ARC: initial ftrace support

2020-03-27 Thread Steven Rostedt
On Fri, 27 Mar 2020 18:53:55 +0300 Eugeniy Paltsev wrote: > + > +noinline void _mcount(unsigned long parent_ip) > +{ > + unsigned long ip = (unsigned long)__builtin_return_address(0); > + > + if (unlikely(ftrace_trace_function != ftrace_stub)) > + ftrace_trace_function(ip -

[RFC] ARC: initial ftrace support

2020-03-27 Thread Eugeniy Paltsev
Add initial ftrace support for ARCv2. We add support only for function tracer (the simplest, not dynamic one), however it is prerequisite for dynamic function tracer and other complex ones. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 1 + arch/arc/include/asm/Kbuild |

Re: [PATCH V2 0/3] mm/debug: Add more arch page table helper tests

2020-03-27 Thread Christophe Leroy
On 03/27/2020 06:46 AM, Anshuman Khandual wrote: On 03/26/2020 08:53 PM, Christophe Leroy wrote: Le 26/03/2020 à 03:23, Anshuman Khandual a écrit : On 03/24/2020 10:52 AM, Anshuman Khandual wrote: This series adds more arch page table helper tests. The new tests here are either related

Re: [PATCH V2 0/3] mm/debug: Add more arch page table helper tests

2020-03-27 Thread Anshuman Khandual
On 03/26/2020 08:53 PM, Christophe Leroy wrote: > > > Le 26/03/2020 à 03:23, Anshuman Khandual a écrit : >> >> >> On 03/24/2020 10:52 AM, Anshuman Khandual wrote: >>> This series adds more arch page table helper tests. The new tests here are >>> either related to core memory functions and