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

2020-06-04 Thread Vineet Gupta
On 5/29/20 4:50 PM, Vineet Gupta via Libc-alpha wrote: >>> Although this code follow other architectures, I think it woudl be better >>> to move forward a macro that emulates function calls and use proper >>> static inline function instead for _FPU_* (as for get-rounding-mode.h). >> OK. do you have

Re: [PATCH v6 01/13] ARC: ABI Implementation

2020-06-04 Thread Vineet Gupta
On 6/4/20 12:01 PM, Vineet Gupta wrote: > On 6/4/20 2:04 AM, Florian Weimer via Libc-alpha wrote: >> * Vineet Gupta via Libc-alpha: >> >>> On 5/27/20 11:26 AM, Adhemerval Zanella via Libc-alpha wrote: +ENTRY (__longjmp) + + ld_s r13, [r0] + ld_s r14, [r0,4] + ld r1

Re: [PATCH v2 3/4] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-06-04 Thread Rob Herring
On Thu, Jun 4, 2020 at 11:39 AM Eugeniy Paltsev wrote: > Need to cc the DT list. > This initial port adds support of ARC HS4x/HS4xD Development Kit board > with some basic features such serial port, USB, SD/MMC, SPI flash, > Ethernet and others. > > The HSDK-4xD board has much in common with its

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-04 Thread Ira Weiny
On Thu, Jun 04, 2020 at 12:41:33PM +0300, Mike Rapoport wrote: > On Wed, Jun 03, 2020 at 04:44:17PM -0700, Guenter Roeck wrote: > > > > sparc32 smp images in next-20200603 still crash for me with a spinlock > > recursion. s390 images hang early in boot. Several others (alpha, arm64, > > various pp

Re: [PATCH v2 0/4] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-06-04 Thread Vineet Gupta
On 6/4/20 10:39 AM, Eugeniy Paltsev wrote: > Changes v1->v2: > * Fallback to ISA default mcpu flag if custom one isn't supported by >compiler. > * Drop HSDK custom Kconfig options (choose between HSDK and HSDK-4xD) as >we don't need it (at least for now). Instead we select ARC_LPB_DISABLE

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

2020-06-04 Thread Vineet Gupta
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 >>> and w/o patch and their sizes are exactly same (with gcc 9). >

Re: [PATCH v6 01/13] ARC: ABI Implementation

2020-06-04 Thread Vineet Gupta
On 6/4/20 2:04 AM, Florian Weimer via Libc-alpha wrote: > * Vineet Gupta via Libc-alpha: > >> On 5/27/20 11:26 AM, Adhemerval Zanella via Libc-alpha wrote: >>> +ENTRY (__longjmp) >>> + >>> + ld_s r13, [r0] >>> + ld_s r14, [r0,4] >>> + ld r15, [r0,8] >>> + ld r16, [r0,12] >>> +

Re: [PATCH v2 1/4] ARC: allow to override default mcpu compiler flag

2020-06-04 Thread Vineet Gupta
On 6/4/20 10:39 AM, Eugeniy Paltsev wrote: > Kernel builds set their own default -mcpu for a given ISA build. > But that gets in the way of "custom" -mcpu flags from propagating > into kernel build. > > This will also be used in next patches for HSDK-4xD board support which > uses a different -mcp

[PATCH v2 2/4] ARC: ARCv2: support loop buffer (LPB) disabling

2020-06-04 Thread Eugeniy Paltsev
On HS cores, loop buffer (LPB) is programmable in runtime and can be optionally disabled. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 6 ++ arch/arc/kernel/head.S | 8 2 files changed, 14 insertions(+) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 7034c2177

[PATCH v2 0/4] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-06-04 Thread Eugeniy Paltsev
Changes v1->v2: * Fallback to ISA default mcpu flag if custom one isn't supported by compiler. * Drop HSDK custom Kconfig options (choose between HSDK and HSDK-4xD) as we don't need it (at least for now). Instead we select ARC_LPB_DISABLE for both boards but it's totally OK as HSDK doesn

[PATCH v2 1/4] ARC: allow to override default mcpu compiler flag

2020-06-04 Thread Eugeniy Paltsev
Kernel builds set their own default -mcpu for a given ISA build. But that gets in the way of "custom" -mcpu flags from propagating into kernel build. This will also be used in next patches for HSDK-4xD board support which uses a different -mcpu to effect dual issue scheduling. Signed-off-by: Euge

[PATCH v2 4/4] ARC: [plat-hsdk*] document HSDK-4xD board/SoC bindings

2020-06-04 Thread Eugeniy Paltsev
Add documentation for HSDK-4xD board/SoC bindings. While I'm at it convert HSDK board/SoC bindings to DT schema format using json-schema. Cc: Rob Herring Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/arc/hsdk.txt | 7 - .../devicetree/bindings/arc/hsdk.yaml |

[PATCH v2 3/4] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-06-04 Thread Eugeniy Paltsev
This initial port adds support of ARC HS4x/HS4xD Development Kit board with some basic features such serial port, USB, SD/MMC, SPI flash, Ethernet and others. The HSDK-4xD board has much in common with its predecessor - HSDK board. However HSDK-4xD has some differences in comparison with its prede

Re: [PATCH v6 11/13] ARC: Build Infrastructure

2020-06-04 Thread Adhemerval Zanella
On 04/06/2020 12:25, Vineet Gupta wrote: > On 6/3/20 12:58 PM, Adhemerval Zanella via Libc-alpha wrote: >> >>> >>> diff --git a/config.h.in b/config.h.in >>> index dea43df438f6..08962dfed075 100644 >>> --- a/config.h.in >>> +++ b/config.h.in >>> @@ -109,6 +109,9 @@ >>> /* AArch64 big endian ABI

Re: [PATCH v6 11/13] ARC: Build Infrastructure

2020-06-04 Thread Vineet Gupta
On 6/3/20 12:58 PM, Adhemerval Zanella via Libc-alpha wrote: > >> >> diff --git a/config.h.in b/config.h.in >> index dea43df438f6..08962dfed075 100644 >> --- a/config.h.in >> +++ b/config.h.in >> @@ -109,6 +109,9 @@ >> /* AArch64 big endian ABI */ >> #undef HAVE_AARCH64_BE >> >> +/* ARC big en

Re: [PATCH v6 07/13] ARC: Linux Syscall Interface

2020-06-04 Thread Adhemerval Zanella
On 03/06/2020 17:17, Vineet Gupta wrote: > On 6/3/20 1:04 PM, Adhemerval Zanella via Libc-alpha wrote: >> >> >> On 03/06/2020 16:46, Vineet Gupta wrote: >>> On 5/29/20 9:49 AM, Adhemerval Zanella via Libc-alpha wrote: > + ; - child starts here - > + > + ; Setup TP registe

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-04 Thread Mike Rapoport
On Wed, Jun 03, 2020 at 04:44:17PM -0700, Guenter Roeck wrote: > > sparc32 smp images in next-20200603 still crash for me with a spinlock > recursion. s390 images hang early in boot. Several others (alpha, arm64, > various ppc) don't even compile. I can run some more bisects over time, > but this

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-04 Thread Guenter Roeck
On 6/3/20 11:22 PM, Ira Weiny wrote: [ ... ] > > s390: (does not compile) > > :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] > In file included from ./arch/sparc/include/asm/bug.h:6:0, > from ./include/linux/bug.h:5, > from ./include/linux/mmde