Re: [PATCH] pci: Add and use PCI_GENERIC_SETUP Kconfig entry

2017-06-27 Thread Palmer Dabbelt
On Tue, 27 Jun 2017 16:37:40 PDT (-0700), helg...@kernel.org wrote: > [+cc Lorenzo] > > Hi Palmer, > > On Fri, Jun 23, 2017 at 02:45:38PM -0700, Palmer Dabbelt wrote: >> We wanted to add RISC-V to the list of architectures that used the >> generic PCI setup-irq.o inside the Makefile and it was sugg

Re: [PATCH] pci: Add and use PCI_GENERIC_SETUP Kconfig entry

2017-06-27 Thread Bjorn Helgaas
[+cc Lorenzo] Hi Palmer, On Fri, Jun 23, 2017 at 02:45:38PM -0700, Palmer Dabbelt wrote: > We wanted to add RISC-V to the list of architectures that used the > generic PCI setup-irq.o inside the Makefile and it was suggested that > instead we define a Kconfig entry and use that. > > I've done ve

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Joseph Myers
On Tue, 27 Jun 2017, Vineet Gupta wrote: > On 06/27/2017 02:56 PM, Joseph Myers wrote: > > > Signed-off-by: Cupertino Miranda > > > Signed-off-by: Vineet Gupta > > We need ChangeLog entries and copyright assignments, but don't use > > Signed-off-by. > > About the copyright assignment and $start-$

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Vineet Gupta
On 06/27/2017 02:56 PM, Joseph Myers wrote: Signed-off-by: Cupertino Miranda Signed-off-by: Vineet Gupta We need ChangeLog entries and copyright assignments, but don't use Signed-off-by. About the copyright assignment and $start-$end, I suppose end needs to be 2017, what about start - does it

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Joseph Myers
On Tue, 27 Jun 2017, Vineet Gupta wrote: > thx for this link - per comments there the contents of struct sigcontext could > come from kernel which is > > struct sigcontext { > struct user_regs_struct regs; > }; > > Now I'd rather prefer to not duplicate user_regs_struct here, but inste

Re: [RFC 2/6] ARC: Fixed inline asm contraints to gcc 6.x

2017-06-27 Thread Zack Weinberg
On Tue, Jun 27, 2017 at 12:40 PM, Vineet Gupta wrote: > On 06/27/2017 02:47 PM, Joseph Myers wrote: >> >> longlong.h should be kept in sync with GCC. If the GCC version has been >> fixed we can copy the updated version verbatim from GCC. > > > Indeed it is fixed in upstream gcc. > > commi

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Vineet Gupta
On 06/27/2017 06:55 PM, Joseph Myers wrote: On Tue, 27 Jun 2017, Vineet Gupta wrote: +typedef struct sigcontext mcontext_t; You can avoid this problematic definition for a new architecture, even while we're still discussing eliminating it for existing architectures. So just use struct sigco

Re: [RFC 2/6] ARC: Fixed inline asm contraints to gcc 6.x

2017-06-27 Thread Vineet Gupta
On 06/27/2017 02:47 PM, Joseph Myers wrote: longlong.h should be kept in sync with GCC. If the GCC version has been fixed we can copy the updated version verbatim from GCC. Indeed it is fixed in upstream gcc. commit 608e1e3746f5242f0b0987ce64ca99969c33fb48 Author: claziss

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Joseph Myers
On Tue, 27 Jun 2017, Vineet Gupta wrote: > > > +typedef struct sigcontext mcontext_t; > > > > You can avoid this problematic definition for a new architecture, even > > while we're still discussing eliminating it for existing architectures. > > So just use struct sigcontext as data type for uc_m

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Vineet Gupta
On 06/27/2017 02:56 PM, Joseph Myers wrote: On Tue, 27 Jun 2017, Vineet Gupta wrote: Signed-off-by: Cupertino Miranda Signed-off-by: Vineet Gupta We need ChangeLog entries and copyright assignments, but don't use Signed-off-by. OK ! diff --git a/.gitignore b/.gitignore index 07d4a129e5d

Re: [RFC 0/6] glibc port to ARC architecture

2017-06-27 Thread Vineet Gupta
On 06/27/2017 02:44 PM, Joseph Myers wrote: I don't see a corporate copyright assignment (or disclaimer plus individual assignments) from Synopsys in the FSF copyright.list. The assignment will be needed before we can consider this port. Right we missed this ! FWIW we did the agreements for g

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Joseph Myers
On Tue, 27 Jun 2017, Florian Weimer wrote: > (Realistically, I'd need a port which can build with > build-many-glibcs.py for that anyway.) It's probably not hard to increase the minimum symbol version for an existing port, especially one of the newer ones, for testing purposes. (It's possible

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Florian Weimer
On 06/27/2017 01:55 PM, Vineet Gupta wrote: > On 06/27/2017 02:29 PM, Florian Weimer wrote: >> On 06/27/2017 10:00 AM, Vineet Gupta wrote: >>> diff --git a/sysdeps/unix/sysv/linux/arc/shlib-versions >>> b/sysdeps/unix/sysv/linux/arc/shlib-versions >>> new file mode 100644 >>> index ..c4

Re: [RFC 0/6] glibc port to ARC architecture

2017-06-27 Thread Joseph Myers
On Tue, 27 Jun 2017, Florian Weimer wrote: > On 06/27/2017 10:00 AM, Vineet Gupta wrote: > > This is a Request for comments for glibc port to ARC architecture. > > http://www.synopsys.com/IP/ProcessorIP/ARCProcessors/Pages/default.aspx > > > > The Linux kernel, uClibc, buildroot have been upstrea

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Joseph Myers
On Tue, 27 Jun 2017, Vineet Gupta wrote: > Signed-off-by: Cupertino Miranda > Signed-off-by: Vineet Gupta We need ChangeLog entries and copyright assignments, but don't use Signed-off-by. > diff --git a/.gitignore b/.gitignore > index 07d4a129e5dc..969dabc873d6 100644 > --- a/.gitignore > +++

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Vineet Gupta
On 06/27/2017 02:29 PM, Florian Weimer wrote: On 06/27/2017 10:00 AM, Vineet Gupta wrote: diff --git a/sysdeps/unix/sysv/linux/arc/shlib-versions b/sysdeps/unix/sysv/linux/arc/shlib-versions new file mode 100644 index ..c4d5d029812d --- /dev/null +++ b/sysdeps/unix/sysv/linux/arc/sh

Re: [RFC 2/6] ARC: Fixed inline asm contraints to gcc 6.x

2017-06-27 Thread Joseph Myers
longlong.h should be kept in sync with GCC. If the GCC version has been fixed we can copy the updated version verbatim from GCC. -- Joseph S. Myers jos...@codesourcery.com ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://list

Re: [RFC 0/6] glibc port to ARC architecture

2017-06-27 Thread Joseph Myers
I don't see a corporate copyright assignment (or disclaimer plus individual assignments) from Synopsys in the FSF copyright.list. The assignment will be needed before we can consider this port. -- Joseph S. Myers jos...@codesourcery.com ___ linux-sn

Re: [RFC 0/6] glibc port to ARC architecture

2017-06-27 Thread Florian Weimer
On 06/27/2017 10:00 AM, Vineet Gupta wrote: > This is a Request for comments for glibc port to ARC architecture. > http://www.synopsys.com/IP/ProcessorIP/ARCProcessors/Pages/default.aspx > > The Linux kernel, uClibc, buildroot have been upstream for quite some time. Is it possible to build the ne

Re: [RFC 4/6] ARC: Initial port to glibc

2017-06-27 Thread Florian Weimer
On 06/27/2017 10:00 AM, Vineet Gupta wrote: > diff --git a/sysdeps/unix/sysv/linux/arc/shlib-versions > b/sysdeps/unix/sysv/linux/arc/shlib-versions > new file mode 100644 > index ..c4d5d029812d > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/arc/shlib-versions > @@ -0,0 +1,2 @@ > +DEF

Re: [PATCH] pci: Add and use PCI_GENERIC_SETUP Kconfig entry

2017-06-27 Thread Ralf Baechle
On Mon, Jun 26, 2017 at 01:27:56PM -0700, Palmer Dabbelt wrote: Acked-by: Ralf Baechle Thanks, Ralf ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

[RFC 0/6] glibc port to ARC architecture

2017-06-27 Thread Vineet Gupta
Hi, This is a Request for comments for glibc port to ARC architecture. http://www.synopsys.com/IP/ProcessorIP/ARCProcessors/Pages/default.aspx The Linux kernel, uClibc, buildroot have been upstream for quite some time. The code has been rebased off of upstream/master as of yesterday and contains

[RFC 2/6] ARC: Fixed inline asm contraints to gcc 6.x

2017-06-27 Thread Vineet Gupta
From: Cupertino Miranda It seems glibc had some ancient ARC bits, added as part of some header sync up back in 1999 (I was still in college) That code obviously doesn't build with modern compilers. Signed-off-by: Cupertino Miranda Signed-off-by: Vineet Gupta --- stdlib/longlong.h | 8 ---

[RFC 1/6] upstream: comment update

2017-06-27 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/unix/make-syscalls.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh index 123553c1d900..d9e607681740 100644 --- a/sysdeps/unix/make-syscalls.sh +++ b/sysdeps/unix/make-sysca

[RFC 6/6] ARC: Fix several testsuite failures related to unwinding

2017-06-27 Thread Vineet Gupta
From: Cupertino Miranda 1. Add BLINK clobber to syscall wrappers allowing unwinding off of sleeping syscalls (this is arguably excessive, give it is not needed except for a handful of slow syscalls such as read/write/nanosleep...) 2. Rework sigreturn to undo above since we don't want BL

[RFC 5/6] ARC: Enable __start as entry point vs. canonical _start

2017-06-27 Thread Vineet Gupta
ARC linker scripts have defined __start as entry point so to not break ABI for uClibc et al we allow __start for glibc as well Signed-off-by: Vineet Gupta --- sysdeps/arc/dl-machine.h | 14 ++ sysdeps/arc/entry.h | 5 + sysdeps/arc/start.S | 14 +++--- 3 files

[RFC 3/6] ARC: add definitions to elf/elf.h

2017-06-27 Thread Vineet Gupta
Signed-off-by: Cupertino Miranda Signed-off-by: Vineet Gupta --- elf/elf.h | 68 +++ 1 file changed, 68 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index 3900b4c9f0ca..8b58818228ba 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -3757,6