Re: [PATCH] Revert "ARC: entry: fix potential EFA clobber when TIF_SYSCALL_TRACE"

2020-11-10 Thread Vineet Gupta
On 11/9/20 2:29 AM, Greg Kroah-Hartman wrote: > On Sat, Nov 07, 2020 at 03:10:06PM +0100, Greg Kroah-Hartman wrote: >> On Fri, Nov 06, 2020 at 08:27:44PM +0000, Vineet Gupta wrote: >>> Hi Stable Team, >>> >>> On 10/19/20 7:19 PM, Vineet G

Re: [PATCH] Revert "ARC: entry: fix potential EFA clobber when TIF_SYSCALL_TRACE"

2020-11-06 Thread Vineet Gupta
Hi Stable Team, On 10/19/20 7:19 PM, Vineet Gupta wrote: > This reverts commit 00fdec98d9881bf5173af09aebd353ab3b9ac729. > (but only from 5.2 and prior kernels) > > The original commit was a preventive fix based on code-review and was > auto-picked for stable back-port (for

Re: [PATCH] ARC: bitops: Remove unecessary operation and value

2020-11-05 Thread Vineet Gupta
On 10/21/20 2:12 PM, Gustavo Pimentel wrote: > The 1-bit shift rotation to the left on x variable located on > 4 last if statement can be removed because the computed value is will > not be used afront. All of constant_fls() is anyhow optimized away at compile time, so this won't affect any cod

[RFC] proc: get_wchan() stack unwind only makes sense for sleeping/non-self tasks

2020-11-05 Thread Vineet Gupta
Most architectures currently check this in their get_wchan() implementation (ARC doesn't hence this patch). However doing this in core code shows the semantics better so move the check one level up (eventually remove the boiler-plate code from arches) Signed-off-by: Vineet Gupta #

[PATCH 3/3] include/soc: remove headers for EZChip NPS

2020-11-05 Thread Vineet Gupta
NPS platform has been removed from ARC port and there are no in-tree user of it now . So RIP ! Signed-off-by: Vineet Gupta --- include/soc/nps/common.h | 172 --- include/soc/nps/mtm.h| 59 -- 2 files changed, 231 deletions(-) delete mode

[PATCH 0/3] Remove drivers used by EZChip NPS platform

2020-11-05 Thread Vineet Gupta
This series removes any drivers associated with EZChip NPS platform which was removed from ARC in 5.10-rc1. Vineet Gupta (3): drivers/clocksource: Remove EZChip NPS clocksource driver drivers/irqchip: Remove EZChip NPS interrupt controller include/soc: remove headers for EZChip NPS

[PATCH 1/3] drivers/clocksource: Remove EZChip NPS clocksource driver

2020-11-05 Thread Vineet Gupta
NPS platform has been removed from ARC port and there are no in-tree users of it now. So RIP ! Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: linux-ker...@vger.kernel.org Signed-off-by: Vineet Gupta --- drivers/clocksource/Kconfig | 10 -- drivers/clocksource/Makefile| 1 - drivers

[PATCH 2/3] drivers/irqchip: Remove EZChip NPS interrupt controller

2020-11-05 Thread Vineet Gupta
NPS platform has been removed from ARC port and there are no in-tree users of it now. So RIP ! Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: linux-ker...@vger.kernel.org Signed-off-by: Vineet Gupta --- drivers/irqchip/Kconfig | 7 -- drivers/irqchip/Makefile| 1

[GIT PULL] ARC fixes for 5.10-rc3

2020-11-05 Thread Vineet Gupta
ARC fixes for 5.10-rc3  - Unbork HSDKv1 platform (won't boot) due to memory map issue  - Prevent stack unwinder from infinite looping ---- Vineet Gupta (2):   ARC: stack unwinding: avoid indefinite looping   ARC: [plat-hsd

Re: [PATCH] arc: add support for TIF_NOTIFY_SIGNAL

2020-10-30 Thread Vineet Gupta
process task_work without going through signal delivery like > task_work with TWA_SIGNAL does today. Nice, thx for explaining that. > > Updated version below: > > > commit 3c6239647d95d03d1436bc826a004791c3f04617 > Author: Jens Axboe > Date: Mon Oct 12 07:15:37 2020 -060

Re: arc: kernel/entry.S:310: Error: inappropriate arguments for opcode 'and'

2020-10-30 Thread Vineet Gupta
Hi Naresh, On 10/30/20 3:29 AM, Naresh Kamboju wrote: > arc defconfig build failed on linux next 20201030 with gcc-8 and gcc-9. > > make -sk KBUILD_BUILD_USER=TuxBuild -C/linux -j16 ARCH=arc > CROSS_COMPILE=arc-elf32- HOSTCC=gcc CC="sccache arc-elf32-gcc" O=build > uImage > # > ../arch/arc/kernel/

Re: [PATCH] arc: add support for TIF_NOTIFY_SIGNAL

2020-10-30 Thread Vineet Gupta
On 10/29/20 9:09 AM, Jens Axboe wrote: > Wire up TIF_NOTIFY_SIGNAL handling for arc. > > Cc:linux-arm-ker...@lists.infradead.org Just to be clear, ARC and ARM seem to differ in 1 letter, they are in no way related :-) > Signed-off-by: Jens Axboe > --- > > 5.11 has support queued up for TIF_NOT

[PATCH] ARC: [plat-hsdk] Remap CCMs super early in asm boot trampoline

2020-10-29 Thread Vineet Gupta
interested, all the gory details can be found at Link below. Link: https://github.com/foss-for-synopsys-dwc-arc-processors/linux/issues/32 Cc: David Hildenbrand Cc: linux...@kvack.org Signed-off-by: Vineet Gupta --- arch/arc/kernel/head.S| 17 - arch/arc/plat-hsdk/

[PATCH] ARC: stack unwinding: avoid indefinite looping

2020-10-27 Thread Vineet Gupta
excessive looping and breaks the loop. Signed-off-by: Vineet Gupta --- arch/arc/kernel/stacktrace.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arc/kernel/stacktrace.c b/arch/arc/kernel/stacktrace.c index bf40e06f3fb8..0fed32b95923 100644 --- a/arch/arc/kernel

Re: Build regressions/improvements in v5.10-rc1

2020-10-26 Thread Vineet Gupta
Hi Geert, On 10/26/20 2:48 AM, Geert Uytterhoeven wrote: > On Mon, Oct 26, 2020 at 10:46 AM Geert Uytterhoeven > wrote: >> Below is the list of build error/warning regressions/improvements in >> v5.10-rc1[1] compared to v5.9[2]. >> >> Summarized: >> - build errors: +3/-7 >> - build warnings:

[GIT PULL] ARC fix for 5.10-rc1

2020-10-22 Thread Vineet Gupta
c6c8fccf9790b: ARC: perf: redo the pct irq missing in device-tree handling (2020-10-22 10:57:58 -0700) Urgent perf ARC fix ---- Vineet Gupta (1): ARC: perf: red

[PATCH] Revert "ARC: entry: fix potential EFA clobber when TIF_SYSCALL_TRACE"

2020-10-19 Thread Vineet Gupta
ble # 5.2 and prior Signed-off-by: Vineet Gupta --- arch/arc/kernel/entry.S | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index ea00c8a17f07..60406ec62eb8 100644 --- a/arch/arc/kernel/entry.S +++ b/arch/arc/kern

[GIT PULL] ARC changes for 5.10-rc1

2020-10-19 Thread Vineet Gupta
arc: plat-hsdk: fix kconfig dependency warning when !RESET_CONTROLLER Randy Dunlap (1): arc: include/asm: fix typos of "themselves" Vineet Gupta (1): ARC: [plat-eznps]: Drop support for EZChip NPS platform Zhen Lei (1): ARC: [dts] fix the

Re: [PATCH] fs: dax: fix build error on ARC

2020-10-06 Thread Vineet Gupta
onvert to dax_direct_access()") > Reported-by: kernel test robot > Signed-off-by: Randy Dunlap > Cc: Vineet Gupta > Cc: linux-snps-arc@lists.infradead.org > Cc: Dan Williams > --- > Vineet, This patch fixes the build error but is it correct for ARC? Yep this looks

Re: [PATCH] arc: include/asm: fix typos of "themselves"

2020-10-05 Thread Vineet Gupta
On 10/5/20 8:30 PM, Randy Dunlap wrote: > From: Randy Dunlap > > Fix copy/paste spello of "themselves" in 3 places. > > Signed-off-by: Randy Dunlap > Cc: Vineet Gupta > Cc: linux-snps-arc@lists.infradead.org Thx for the fix Randy. Added to for-curr. -Vineet

Re: [PATCH] ARC: SMP: fix typo and use "come up" instead of "comeup"

2020-10-05 Thread Vineet Gupta
On 10/5/20 9:12 AM, Mike Rapoport wrote: > From: Mike Rapoport > > When a secondary CPU fails to come up, there is a missing space in the > log: > > Timeout: CPU1 FAILED to comeup !!! > > Fix it. > > Signed-off-by: Mike Rapoport Thx for the fix Mike. Added to for-curr. -Vineet > --- >

Re: [PATCH 1/1] cacheflush01: Rewrite into new API

2020-10-02 Thread Vineet Gupta
Hi Petr, On 10/2/20 1:24 PM, Petr Vorel wrote: > This syscall is currently (v5.9) supported on these architectures: > arc, csky, mips, m68k, nds32, sh > > constants are missing for m68k, not sure if the testcase is valid for it. > Untested. > > Test for __LTP__NR_INVALID_SYSCALL saves adding autot

Re: {standard input}:1174: Error: inappropriate arguments for opcode 'mpydu' (fwd)

2020-09-30 Thread Vineet Gupta
Hi Nicolas, On 9/30/20 2:23 PM, Nicolas Pitre wrote: > Hello, > > I just realized you might not be aware of the following issue. > > The kernel kbuild test robot project identified a build failure on ARC > that bisects down to a patch of mine. Your patch to Linux kernel ? Indeed the report we g

Re: [arc:for-curr 1/3] arch/arc/Kconfig:100: can't open file "arch/arc/plat-eznps/Kconfig"

2020-09-28 Thread Vineet Gupta
On 9/28/20 2:12 PM, kernel test robot wrote: > tree: > https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git__;!!A4F2R9G_pg!J7R9L2xqRIoW5V3cOIMiGXYoTmnqfqsBeRF8a6mi5Z2erJKTrameivmPESLu6dm_$ > for-curr > head: b18b6a1d2b82eb8a2e415e4b1fb1be9027353a5d > com

Re: ARC: allmodconfig: Error: inappropriate arguments for opcode 'mpyd'

2020-09-28 Thread Vineet Gupta
Hi Naresh, On 9/23/20 9:20 PM, Naresh Kamboju wrote: > arc:allmodconfig build failed with gcc-8, gcc-9 and gcc-10 on Linus's > mainline tree. > > Build log: > > make -sk KBUILD_BUILD_USER=TuxBuild -C/linux ARCH=arc > CROSS_COMPILE=arc-elf32- HOSTCC=gcc CC="sccache arc-elf32-gcc" O=bu

Re: [PATCH v6 6/6] ARC: [dts] fix the errors detected by dtbs_check

2020-09-28 Thread Vineet Gupta
On 9/24/20 12:17 AM, Zhen Lei wrote: > xxx/arc/boot/dts/axs101.dt.yaml: dw-apb-ictl@e0012000: $nodename:0: \ > 'dw-apb-ictl@e0012000' does not match '^interrupt-controller(@[0-9a-f,]+)*$' > From schema: xxx/interrupt-controller/snps,dw-apb-ictl.yaml > > The node name of the interrupt controller mu

[PATCH v2] package/glibc: ARC: use upstream 2.32

2020-09-16 Thread Vineet Gupta
ARC glibc port was merged upstream in 2.32 There's no need to refer to github as it has the exact same version and can be retired in future. Signed-off-by: Vineet Gupta --- Changes since v1: - dropped artifacts related to github version --- .../glibc.hash

Re: [Buildroot] [PATCH] package/glibc: ARC: use upstream 2.32

2020-09-16 Thread Vineet Gupta
On 9/15/20 11:58 PM, Thomas Petazzoni wrote: > On Wed, 16 Sep 2020 04:22:36 + > Vineet Gupta wrote: > >> On 9/15/20 6:33 AM, Thomas Petazzoni wrote: >>> Hello, >>> >>> On Mon, 14 Sep 2020 14:37:48 -0700 >>> Vineet Gupta wrote: &g

Re: [Buildroot] [PATCH] package/glibc: ARC: use upstream 2.32

2020-09-15 Thread Vineet Gupta
On 9/15/20 6:33 AM, Thomas Petazzoni wrote: > Hello, > > On Mon, 14 Sep 2020 14:37:48 -0700 > Vineet Gupta wrote: > >> ARC glibc port was merged upstream in 2.32 >> There's no need to refer to github as it has the exact same version and >> can be retired

[PATCH] package/glibc: ARC: use upstream 2.32

2020-09-14 Thread Vineet Gupta
ARC glibc port was merged upstream in 2.32 There's no need to refer to github as it has the exact same version and can be retired in future. Signed-off-by: Vineet Gupta --- .../glibc.hash| 2 ++ package/glibc/glibc.mk

Re: [PATCH] arc: plat-hsdk: fix kconfig dependency warning when !RESET_CONTROLLER

2020-09-14 Thread Vineet Gupta
On 9/14/20 4:46 AM, Necip Fazil Yildiran wrote: > When ARC_SOC_HSDK is enabled and RESET_CONTROLLER is disabled, it results > in the following Kbuild warning: > > WARNING: unmet direct dependencies detected for RESET_HSDK > Depends on [n]: RESET_CONTROLLER [=n] && HAS_IOMEM [=y] && (ARC_SOC_HSDK

Re: [PATCH v2] binutils/ARC: cleanup

2020-09-11 Thread Vineet Gupta
On 9/11/20 2:18 AM, Thomas Petazzoni wrote: > Hello Vineet, > > On Thu, 10 Sep 2020 23:21:43 + > Vineet Gupta wrote: > >>>> -ifeq ($(BINUTILS_VERSION),arc-2019.09-rc1) >>>> +ifeq ($(BR2_BINUTILS_VERSION_ARC),y) >> Looks like we need this s

Re: [PATCH v2] binutils/ARC: cleanup

2020-09-10 Thread Vineet Gupta
Hi Thomas, On 12/22/19 1:41 PM, Thomas Petazzoni wrote: > Hello Vineet, > > On Tue, 17 Dec 2019 13:32:53 -0800 > Vineet Gupta wrote: > >> Remove special handling for ARC - as it is not needed for cksy etc. >> >> A nice side benefit is that the ARC specifi

Re: [PATCH] Remove STATFS_IS_STATFS64 conditional as it is zero in all ports

2020-09-09 Thread Vineet Gupta
On 9/9/20 11:36 AM, Adhemerval Zanella via Libc-alpha wrote: > > > On 08/09/2020 23:48, Vineet Gupta via Libc-alpha wrote: >> From: Vineet Gupta >> >> This seems to be dead code, so remove it. > > It could be useful for a possible statfs/statfs64 consolidation,

Re: [PATCH] support: user more portable atomic wrappers

2020-09-09 Thread Vineet Gupta
On 9/9/20 3:19 AM, Florian Weimer via Libc-alpha wrote: > * Vineet Gupta via Libc-alpha: > >> This came up in a nascent arc64 port, lacking gcc atomics for now > > Can you please change the GCC port to provide atomics instead? Sure, they are added now. > It does not m

[PATCH] support: user more portable atomic wrappers

2020-09-08 Thread Vineet Gupta
This came up in a nascent arc64 port, lacking gcc atomics for now --- support/support_record_failure.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/support/support_record_failure.c b/support/support_record_failure.c index f766c0623683..65e576c6e901 100644 ---

[PATCH] Remove STATFS_IS_STATFS64 conditional as it is zero in all ports

2020-09-08 Thread Vineet Gupta
From: Vineet Gupta This seems to be dead code, so remove it. --- sysdeps/unix/sysv/linux/alpha/kernel_stat.h | 1 - sysdeps/unix/sysv/linux/fstatfs64.c | 14 -- sysdeps/unix/sysv/linux/generic/kernel_stat.h | 2 -- .../unix/sysv/linux/generic/wordsize-32

[PATCH] ARC: [plat-eznps]: Drop support for EZChip NPS platform

2020-09-08 Thread Vineet Gupta
NPS customers are no longer doing active development, as evident from rand config build failures reported in recent times, so drop support for NPS platform. Signed-off-by: Vineet Gupta --- MAINTAINERS | 7 - arch/arc/Makefile | 5 - arch/arc

[GIT PULL] ARC updates for 5.9-rc4

2020-09-04 Thread Vineet Gupta
ARC: [plat-hsdk]: Switch ethernet phy-mode to rgmii-id Mike Rapoport (1): arc: fix memory initialization for systems with two memory banks Randy Dunlap (1): ARC: pgalloc.h: delete a duplicated word + other fixes Vineet Gupta (4): ARC: perf: don't bail setup if pct irq missing i

Re: [PATCH] ARC: [plat-hsdk]: Switch ethernet phy-mode to rgmii-id

2020-09-01 Thread Vineet Gupta
On 7/7/20 8:38 AM, Evgeniy Didin wrote: > HSDK board has Micrel KSZ9031, recent commit > bcf3440c6dd ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") > caused a breakdown of Ethernet. > Using 'phy-mode = "rgmii"' is not correct because accodring RGMII > specification it is necessary t

Re: [PATCH v3 03/23] arc: use asm-generic/mmu_context.h for no-op implementations

2020-09-01 Thread Vineet Gupta
On 9/1/20 7:15 AM, Nicholas Piggin wrote: > Cc: Vineet Gupta > Cc: linux-snps-arc@lists.infradead.org > Signed-off-by: Nicholas Piggin Acked-by: Vineet Gupta#arch/arc Thx, -Vineet > --- > > Please ack or nack if you object to this being mered via > Arnd's tree.

Re: [PATCH] arc: fix memory initialization for systems with two memory banks

2020-08-28 Thread Vineet Gupta
Hi Mike, On 8/28/20 9:39 AM, Mike Rapoport wrote: > From: Mike Rapoport > > Rework if memory map initialization broke initialization of ARC systems > with two memory banks. Before these changes, memblock was not aware of > nodes configuration and the memory map was always allocated from the > "lo

Re: ARC rebootstrap prereq (was Re: switching ARC to 64-bit time_t )

2020-08-26 Thread Vineet Gupta
Hi, On 3/25/20 10:54 PM, Helmut Grohne wrote: > Hi Vineet, > > On Wed, Mar 25, 2020 at 05:25:58PM -0700, Vineet Gupta wrote: >> ARC glibc is still in works, but assuming that will happen in near future >> what >> other upstream prerequisites are needed. The obvious one

[PATCH v2] irqchip/eznps: Fix build error for !ARC700 builds

2020-08-25 Thread Vineet Gupta
CTOP_AUX_IACK from platform header Reported-by: kernel test robot Reported-by: Sebastian Andrzej Siewior Link: https://lkml.kernel.org/r/20200824095831.5lpkmkafelnvl...@linutronix.de Signed-off-by: Vineet Gupta --- arch/arc/plat-eznps/include/plat/ctop.h | 1 - include/soc/nps/common.h

[PATCH] irqchip/eznps: Fix build error for !ARC700 builds

2020-08-24 Thread Vineet Gupta
Reported-by: kernel test robot Reported-by: Sebastian Andrzej Siewior Link: http://lists.infradead.org/pipermail/linux-snps-arc/2020-August/004032.html Signed-off-by: Vineet Gupta --- arch/arc/plat-eznps/include/plat/ctop.h | 1 - include/soc/nps/common.h| 6 ++ 2 files

Re: {standard input}:5973: Error: operand out of range (512 is not between -512 and 511)

2020-08-24 Thread Vineet Gupta
Hi Sebastian, On 8/24/20 12:35 PM, Sebastian Andrzej Siewior wrote: > On 2020-08-24 18:21:21 [+], Vineet Gupta wrote: >>>>>> {standard input}:5973: Error: operand out of range (512 is not between >>>>>> -512 and 511) >>>> >> >&g

Re: {standard input}:5973: Error: operand out of range (512 is not between -512 and 511)

2020-08-24 Thread Vineet Gupta
On 8/24/20 11:21 AM, Vineet Gupta wrote: >> and the assembler does not like that. >> After the removal CONFIG_ARC_PLAT_EZNPS I got to stage 2: >> |drivers/irqchip/irq-eznps.c:80:16: error: 'CTOP_AUX_IACK' undeclared (first >> use in this function) >>

Re: {standard input}:5973: Error: operand out of range (512 is not between -512 and 511)

2020-08-24 Thread Vineet Gupta
+CC Ofer On 8/24/20 2:58 AM, Sebastian Andrzej Siewior wrote: > On 2020-08-24 10:17:19 [+0800], kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> master >> head: d012a7190fc1fd72ed48911e77ca97ba4521bccd >> commit: de8f5e4f2dc1f032b46afda0a

Re: [PATCH 0/2] locking/qspinlock: Break qspinlock_types.h header loop

2020-08-05 Thread Vineet Gupta
On 7/30/20 12:50 AM, Herbert Xu wrote: > On Thu, Jul 30, 2020 at 10:47:16AM +0300, Andy Shevchenko wrote: >> We may ask Synopsys folks to look at this as well. >> Vineet, any ideas if we may unify ATOMIC64_INIT() across the architectures? > I don't think there is any technical difficulty. The cust

Re: uClibc-ng broken on hsdk

2020-08-03 Thread Vineet Gupta
On 8/3/20 6:57 PM, Waldemar Brodkorb wrote: > Hi Alexey, Hi Vineet, > > is uClibc-ng 1.0.34 broken on Linux kernel 4.19.136? > I am using gcc 9.3.0 and binutils 2.35. > > I get following stacktrace: > > [9.667903] Starting Linux (built with OpenADK). > [9.673796] Freeing unused kernel memor

Re: [PATCH 04/24] arm: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Vineet Gupta
patch below, you can remove above as well... > >From 672e0f78a94892794057a5a7542d85b71c1369c4 Mon Sep 17 00:00:00 2001 From: Vineet Gupta Date: Mon, 27 Jul 2020 21:12:42 -0700 Subject: [PATCH] ARM: mm: check_and_switch_context() doesn't use @tsk arg Signed-off-by: Vi

Re: [PATCH 03/24] arc: use asm-generic/mmu_context.h for no-op implementations

2020-07-27 Thread Vineet Gupta
On 7/27/20 8:33 PM, Nicholas Piggin wrote: > /* > - * Called at the time of execve() to get a new ASID > - * Note the subtlety here: get_new_mmu_context() behaves differently here > - * vs. in switch_mm(). Here it always returns a new ASID, because mm has > - * an unallocated "initial" value, whi

[PATCH] ARC: perf: don't bail setup if pct irq missing in device-tree

2020-07-26 Thread Vineet Gupta
Current code inadventely bails if hardware supports sampling/overflow interrupts, but the irq is missing from device tree. This need not be as we can still do simple counting based perf stat. This unborks perf on HSDK-4xD Signed-off-by: Vineet Gupta --- arch/arc/kernel/perf_event.c | 14

Re: [PATCH] ARC: pgalloc.h: delete a duplicated word + other fixes

2020-07-21 Thread Vineet Gupta
On 7/21/20 1:59 PM, Randy Dunlap wrote: > Drop the repeated word "to". > Change "Thay" to "That". > Add a closing right parenthesis. > > Signed-off-by: Randy Dunlap > Cc: Vineet Gupta > Cc: linux-snps-arc@lists.infradead.org Thx Randy. Adde

[PATCH] Fix tst-libc_dlvsym{, -static} on ARC: don't check _sys_{err, sig}list

2020-07-19 Thread Vineet Gupta
These symbols were recently deprecated but the test still checks for them which fails for ARC. Tested with arc-linux-gnuhf -FAIL: elf/tst-libc_dlvsym +PASS: elf/tst-libc_dlvsym -FAIL: elf/tst-libc_dlvsym-static +PASS: elf/tst-libc_dlvsym-static | | $ cat elf/tst-libc_dlvsym-static.out | error: t

Re: [PATCH v2] elf: Change TLS static surplus default back to 1664

2020-07-18 Thread Vineet Gupta
Hi Florian, On 7/17/20 4:41 AM, Florian Weimer via Libc-alpha wrote: > Make the computation in elf/dl-tls.c more transparent, and add > an explicit test for the historic value. > > --- > elf/Makefile | 4 +++- > elf/dl-tls.c | 37 ++--- > elf/ts

[COMMITTED 06/13] ARC: hardware floating point support

2020-07-10 Thread Vineet Gupta
Reviewed-by: Adhemerval Zanella --- 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

[COMMITTED 11/13] ARC: Build Infrastructure

2020-07-10 Thread Vineet Gupta
Reviewed-by: Adhemerval Zanella --- config.h.in| 3 + sysdeps/arc/Implies| 3 + sysdeps/arc/Makefile | 21 +++ sysdeps/arc/Versions | 8 + sysdeps/arc/configure | 182 +

[COMMITTED 10/13] ARC: ABI lists

2020-07-10 Thread Vineet Gupta
Reviewed-by: Adhemerval Zanella --- sysdeps/arc/fpu/libm-test-ulps| 1142 + 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/ar

[COMMITTED 07/13] ARC: Linux Syscall Interface

2020-07-10 Thread Vineet Gupta
Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/arc/arch-syscall.h| 298 ++ 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| 46 +++ sysdeps/unix/sy

[COMMITTED 03/13] ARC: Thread Local Storage support

2020-07-10 Thread Vineet Gupta
This includes all 4 TLS addressing models Reviewed-by: Adhemerval Zanella --- sysdeps/arc/dl-tls.h | 30 +++ sysdeps/arc/libc-tls.c | 27 ++ sysdeps/arc/nptl/tcb-offsets.sym | 11 +++ sysdeps/arc/nptl/tls.h | 139 +++ sysdep

[COMMITTED 08/13] ARC: Linux ABI

2020-07-10 Thread Vineet Gupta
Reviewed-by: Adhemerval Zanella --- 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/

[COMMITTED 05/13] ARC: math soft float support

2020-07-10 Thread Vineet Gupta
Reviewed-by: Adhemerval Zanella --- 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.

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

2020-07-10 Thread Vineet Gupta
Reviewed-by: Adhemerval Zanella --- 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 dfaaf50a192c..00ba6f6b1193 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.

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

2020-07-10 Thread Vineet Gupta
Code for C runtime startup and dynamic loading including PLT layout. Reviewed-by: Adhemerval Zanella --- sysdeps/arc/bits/link.h | 52 ++ sysdeps/arc/dl-machine.h | 344 ++ sysdeps/arc/entry.h | 5 + sysdeps/arc/ldsodefs.h| 43 + sysd

[COMMITTED 13/13] Documentation for ARC port

2020-07-10 Thread Vineet Gupta
(a) ABI doc: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/wiki/files/ARCv2_ABI.pdf (b) Programmer's Reference Manual (PRM) : needs a download request to be filled https://www.synopsys.com/dw/ipdir.php?ds=arc-hs44-hs46-hs48 https://www.synopsys.com/dw/doc.php/ds/c

[COMMITTED 01/13] ARC: ABI Implementation

2020-07-10 Thread Vineet Gupta
This code deals with the ARC ABI. Reviewed-by: Adhemerval Zanella --- 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 |

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

2020-07-10 Thread Vineet Gupta
A big shoutout to Cupertino Miranda for his valuable contribution in initial bringup and debugging on Linux and later in solving pesky unwinding/cancelation failures in testsuite. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/arc/dl-static.c | 84 + sysdep

[COMMITTED 04/13] ARC: Atomics and Locking primitives

2020-07-10 Thread Vineet Gupta
Reviewed-by: Adhemerval Zanella --- 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 0

Re: ARC testsuite regressions (was Re: [PATCH v7.2 07/13] ARC: Linux Syscall Interface)

2020-07-10 Thread Vineet Gupta
On 7/10/20 10:02 AM, Florian Weimer via Libc-alpha wrote: > * Vineet Gupta via Libc-alpha: > >> From scratch meaning glibc alone or the whole toolchain. I used >> buildroot and glibc-dirclean to nuke entire glibc but gcc was not >> rebuilt. I can try that too. >

Re: ARC testsuite regressions (was Re: [PATCH v7.2 07/13] ARC: Linux Syscall Interface)

2020-07-10 Thread Vineet Gupta
On 7/10/20 2:28 AM, Florian Weimer via Libc-alpha wrote: > * Alistair Francis via Libc-alpha: > >> On Thu, Jul 9, 2020 at 2:36 PM Vineet Gupta via Libc-alpha >> wrote: >>> >>> On 7/9/20 2:13 PM, Vineet Gupta via Libc-alpha wrote: >>>>> Rebas

Re: ARC testsuite regressions (was Re: [PATCH v7.2 07/13] ARC: Linux Syscall Interface)

2020-07-09 Thread Vineet Gupta
On 7/9/20 3:01 PM, Alistair Francis via Libc-alpha wrote: > On Thu, Jul 9, 2020 at 2:36 PM Vineet Gupta via Libc-alpha > wrote: >> >> On 7/9/20 2:13 PM, Vineet Gupta via Libc-alpha wrote: >>>> Rebased ARC port on master and fired a build-many-glibcs now >>

ARC testsuite regressions (was Re: [PATCH v7.2 07/13] ARC: Linux Syscall Interface)

2020-07-09 Thread Vineet Gupta
On 7/9/20 2:13 PM, Vineet Gupta via Libc-alpha wrote: >> Rebased ARC port on master and fired a build-many-glibcs now >> (expect some >> abilist updates). Will do a full testsuite run > > No regressions in sysvipc tests ! But quite a few regressions. Baseline is

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

2020-07-09 Thread Vineet Gupta
On 7/9/20 9:24 AM, Vineet Gupta via Libc-alpha wrote: > On 7/9/20 9:03 AM, Adhemerval Zanella via Libc-alpha wrote: >> >> >> On 08/07/2020 16:32, Vineet Gupta wrote: >>> On 7/8/20 9:31 AM, Adhemerval Zanella via Libc-alpha wrote: >>>> >>>>

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

2020-07-09 Thread Vineet Gupta
On 7/9/20 9:03 AM, Adhemerval Zanella via Libc-alpha wrote: > > > On 08/07/2020 16:32, Vineet Gupta wrote: >> On 7/8/20 9:31 AM, Adhemerval Zanella via Libc-alpha wrote: >>> >>> On 07/07/2020 17:55, Vineet Gupta via Libc-alpha wrote: >>>> --- >&g

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

2020-07-08 Thread Vineet Gupta
On 7/8/20 9:31 AM, Adhemerval Zanella via Libc-alpha wrote: > > On 07/07/2020 17:55, Vineet Gupta via Libc-alpha wrote: >> --- >>Changes since v7.1: >> - Added a few more 32-bit time_t syscalls to fixup-asm-unistd.h >>and regen arch-syscall.h to remo

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

2020-07-07 Thread Vineet Gupta
On 7/7/20 2:32 PM, Joseph Myers wrote: > On Tue, 7 Jul 2020, Vineet Gupta via Libc-alpha wrote: > >>> Each implementation has it ows requirements so I can't really say if >>> a helper function does make sense for all of them. For pause >>> specific

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

2020-07-07 Thread Vineet Gupta
On 7/7/20 12:24 PM, Adhemerval Zanella via Libc-alpha wrote: > > > On 06/07/2020 22:25, Vineet Gupta wrote: >> On 7/6/20 6:20 AM, Adhemerval Zanella via Libc-alpha wrote: >>>>>> diff --git a/sysdeps/unix/sysv/linux/arc/clone.S >>>>>> b/sysdeps

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

2020-07-07 Thread Vineet Gupta
--- Changes since v7.1: - Added a few more 32-bit time_t syscalls to fixup-asm-unistd.h and regen arch-syscall.h to remove them: __NR_timer{g,s}ettime, __NR_clock_{gettime,nanosleep,settime} - minimal/annotated list of 32-bit syscall aliases in ARC sysdeps.h for 64

Re: [PATCH 1/3] y2038: linux: Provide __futimes64 implementation

2020-07-07 Thread Vineet Gupta
On 7/7/20 12:21 AM, Lukasz Majewski wrote: >> ARC is 32-bit + TIMESIZE==64 but the new code is not getting built >> (instead generic variant is). How do I override the generic fiel to >> be built instead ? > The futimes.c from sysdeps/unix/sysv/linux/ shall be built. > > The futimes.c is defined

[GIT PULL] ARC updates for 5.8-rc5

2020-07-06 Thread Vineet Gupta
Cv2: support loop buffer (LPB) disabling Vineet Gupta (5): ARC: entry: fix potential EFA clobber when TIF_SYSCALL_TRACE ARC: [arcompact] fix bitrot with 2 levels of interrupt ARC: elf: use right ELF_ARCH ARCv2: boot log: detect newer/upconing HS3x/HS4x releases ARC: bu

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

2020-07-06 Thread Vineet Gupta
On 7/6/20 6:20 AM, Adhemerval Zanella via Libc-alpha wrote: diff --git a/sysdeps/unix/sysv/linux/arc/clone.S b/sysdeps/unix/sysv/linux/arc/clone.S >> diff --git a/sysdeps/unix/sysv/linux/arc/fixup-asm-unistd.h b/sysdeps/unix/sysv/linux/arc/fixup-asm-unistd.h >> + +/*

Re: [PATCH 1/3] y2038: linux: Provide __futimes64 implementation

2020-07-06 Thread Vineet Gupta
Hi Lukasz, On 2/17/20 5:17 AM, Lukasz Majewski wrote: > This patch provides new __futimes64 explicit 64 bit function for setting > file's > 64 bit attributes for access and modification time (by specifying file > descriptor number). > > Internally, the __utimensat64_helper function is used. This

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

2020-07-03 Thread Vineet Gupta
On 7/2/20 7:47 PM, Adhemerval Zanella via Libc-alpha wrote: > > > On 30/06/2020 21:08, Vineet Gupta via Libc-alpha wrote: >> --- >>Changes since v7: >> - used long int (iso int) in sysdep.h/syscall_error for handling >> registers > > Patch loo

Re: ARC math test regressions (was Re: [PATCH v7 00/13] glibc port to ARC processors)

2020-07-02 Thread Vineet Gupta
On 7/2/20 9:27 AM, Joseph Myers wrote: > On Thu, 2 Jul 2020, Vineet Gupta via Libc-alpha wrote: > >> Now acos can come from 2 places depending on LIBM_SVID_COMPAT >> - math/w_acos_template.c<-- sets errno only > > This wrapper, unlike the compat one,

ARC math test regressions (was Re: [PATCH v7 00/13] glibc port to ARC processors)

2020-07-01 Thread Vineet Gupta
On 7/1/20 12:13 PM, Vineet Gupta via Libc-alpha wrote: > On 6/30/20 6:44 PM, Adhemerval Zanella via Libc-alpha wrote: > FAIL: math/test-float-exp10 > FAIL: math/test-float32-exp10 The exp10 tests needed regen-ulps and now fixed. > FAIL: math/test-float32x-acos > FAIL: math/tes

Re: [PATCH 7/7] sysv: linux: Add 64-bit time_t variant for shmctl

2020-07-01 Thread Vineet Gupta
aders | PASS: sysvipc/test-sysvmsg | PASS: sysvipc/test-sysvsem | PASS: sysvipc/test-sysvshm FWIW: Tested-by: Vineet Gupta ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

list messages lost due to disk failure

2020-07-01 Thread Vineet Gupta
Hi, The machine hosting lists.infradead.org suffered a total disk failure last weekend and a new machine has been drafted into service, unfortunately using the latest backup from May 2018. I've provided the missing messages to site maintainers so things should be back to normal in near future. A

Re: [PATCH v7.1 01/13] ARC: ABI Implementation

2020-07-01 Thread Vineet Gupta
On 7/1/20 9:50 AM, Adhemerval Zanella via Libc-alpha wrote: > > > On 30/06/2020 21:06, Vineet Gupta via Libc-alpha wrote: >> This code deals with the ARC ABI. >> --- >>Changes since v7: >> - Used void * (iso int *) in tls-macros.h > > LGTM,

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

2020-07-01 Thread Vineet Gupta
On 6/30/20 6:44 PM, Adhemerval Zanella via Libc-alpha wrote: >> I've posted the incremental series (v7.1) as a followup to include rebase >> fixes >> since v7. The changes are minimal and documented in respective patches. >> Kindly >> review so we can get this in, in this cycle. > > Thanks for

Re: Repost: linux-snps-arc list msgs truncated ?

2020-06-30 Thread Vineet Gupta
Hi David, On 6/25/20 1:14 AM, David Woodhouse wrote: > On Thu, 2020-06-25 at 01:46 +0000, Vineet Gupta wrote: >> Hi, >> >> I'm the moderator for linux-snps-arc. >> Is there some database corruption or some such. The msgs for linux-snap-arc >> seem >>

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

2020-06-30 Thread Vineet Gupta
On 6/23/20 9:56 AM, Vineet Gupta via Libc-alpha wrote: > On 6/15/20 1:14 PM, Vineet Gupta wrote: >> Hi, >> >> This patchset implements glibc port to ARC HS48x processor from Synopsys. > > ping ! ping ^2 ! I've posted the incremental series (v7.1) as a followup

[PATCH v7.1 10/13] ARC: ABI lists

2020-06-30 Thread Vineet Gupta
--- Changes since v7: - rebase artifact, some symbols got added to libc.abilist --- 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-

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

2020-06-30 Thread Vineet Gupta
--- Changes since v7: - used long int (iso int) in sysdep.h/syscall_error for handling registers --- 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 ++ .

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

2020-06-30 Thread Vineet Gupta
--- Changes since v7: - Disintegrated math-use-builtins.h (deleted) and added math-use-builtins-{fma,sqrt}.h --- sysdeps/arc/fpu/fclrexcpt.c | 36 sysdeps/arc/fpu/fegetenv.c | 37 sysdeps/arc/fpu/fegetmode.c | 31 +++

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

2020-06-30 Thread Vineet Gupta
This includes all 4 TLS addressing models --- Changes since v7: - Deleted unused asm macro THREAD_SELF which references r25 --- sysdeps/arc/dl-tls.h | 30 +++ sysdeps/arc/libc-tls.c | 27 ++ sysdeps/arc/nptl/tcb-offsets.sym | 11 +++ sysdeps/arc/nptl/tls.h

[PATCH v7.1 01/13] ARC: ABI Implementation

2020-06-30 Thread Vineet Gupta
This code deals with the ARC ABI. --- Changes since v7: - Used void * (iso int *) in tls-macros.h --- sysdeps/arc/__longjmp.S | 49 sysdeps/arc/abort-instr.h | 2 + sysdeps/arc/bits/endianness.h | 15 sysdeps/arc/bits/setjmp.h | 26 +

Re: [PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests

2020-06-30 Thread Vineet Gupta
d >>> - Updated documentation for renamed [pmd|pud]_mkinvalid() helpers >> >> Hello Gerald/Christophe/Vineet, >> >> It would be really great if you could give this series a quick test >> on s390/ppc/arc platforms respectively. Thank you. > > Thanks Alexande

Re: ABI changes still pending for glibc 2.32?

2020-06-26 Thread Vineet Gupta
Hi Carlos, On 6/26/20 9:11 AM, Carlos O'Donell wrote: > Vineet, What is the status of the ARC port? Pretty good if you ask me ;-) I don't think ARC port leads to any public ABI changes (but does depend on semctl changes as we follow the same ABI). Any ensuing common changes (non ABI) have long

Repost: linux-snps-arc list msgs truncated ?

2020-06-24 Thread Vineet Gupta
Hi, I'm the moderator for linux-snps-arc. Is there some database corruption or some such. The msgs for linux-snap-arc seem to have been truncated. Please see the main page below where entries for June-2018 thru May 2020 are gone. This must be a recent breakage as things used to work up until rece

<    1   2   3   4   5   6   7   8   9   10   >