Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread Vineet Gupta
On 4/20/21 12:07 AM, Arnd Bergmann wrote: > On Tue, Apr 20, 2021 at 5:10 AM Matthew Wilcox wrote: >> On Tue, Apr 20, 2021 at 02:48:17AM +0000, Vineet Gupta wrote: >>>> 32-bit architectures which expect 8-byte alignment for 8-byte integers >>>> and need 64-bit D

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-19 Thread Vineet Gupta
Hi Matthew, On 4/16/21 7:45 PM, Matthew Wilcox wrote: > Replacement patch to fix compiler warning. > > From: "Matthew Wilcox (Oracle)" > Date: Fri, 16 Apr 2021 16:34:55 -0400 > Subject: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems > To: bro...@redhat.com > Cc: linux-kernel@vger.kernel

Re: [PATCH] arc/kernel/signal.c: Fix couple of typos

2021-04-07 Thread Vineet Gupta
On 3/23/21 10:52 PM, Bhaskar Chowdhury wrote: > s/unconditonally/unconditionally/ > s/gaurantees/guarantees/ > > Signed-off-by: Bhaskar Chowdhury And this one too. Thx, -Vineet > --- > arch/arc/kernel/signal.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/

Re: [PATCH] arcc/kernel/process: Few mundane typo fixes

2021-04-07 Thread Vineet Gupta
On 3/22/21 5:51 AM, Bhaskar Chowdhury wrote: > s/defintion/definition/ > s/succeded/succeeded/ > s/commiting/committing/ > s/interrutps/interrupts/ > > Signed-off-by: Bhaskar Chowdhury I've squashed all your 3 patches into one (no reason to break them out) and queued for 5.13. Thx, -Vineet > -

Re: [PATCH V2 6/6] mm: Drop redundant HAVE_ARCH_TRANSPARENT_HUGEPAGE

2021-04-01 Thread Vineet Gupta
On 3/31/21 11:44 PM, Anshuman Khandual wrote: > HAVE_ARCH_TRANSPARENT_HUGEPAGE has duplicate definitions on platforms that > subscribe it. Drop these reduntant definitions and instead just select it > on applicable platforms. Acked-by: Vineet Gupta#arc Thx, -Vineet

Re: [PATCH V2 1/6] mm: Generalize ARCH_HAS_CACHE_LINE_SIZE

2021-04-01 Thread Vineet Gupta
r. Acked-by: Vineet Gupta#arc Thx, -Vineet

Re: [PATCH v2] mm: Move mem_init_print_info() into mm_init()

2021-03-17 Thread Vineet Gupta
On 3/16/21 6:52 PM, Kefeng Wang wrote: > mem_init_print_info() is called in mem_init() on each architecture, > and pass NULL argument, so using void argument and move it into mm_init(). > > Acked-by: Dave Hansen > Signed-off-by: Kefeng Wang Acked-by: Vineet Gupta Thx, -Vineet

Re: [PATCH] arc: kernel: Return -EFAULT if copy_to_user() fails

2021-03-02 Thread Vineet Gupta
On 3/1/21 4:05 AM, Wang Qing wrote: The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing Acked-by: Vineet Gupta Do you want me to pick this up via ARC tree ? Thx, -V

Re: [PATCH 10/11] pragma once: delete few backslashes

2021-03-02 Thread Vineet Gupta
ess backslashes instead. Signed-off-by: Alexey Dobriyan Acked-by: Vineet Gupta#arch/arc bits Thx, -Vineet --- arch/arc/include/asm/cacheflush.h | 2 +- drivers/net/ethernet/mellanox/mlxsw/item.h | 2 +- include/linux/once.h | 2 +- include/media/drv-int

Re: [PATCH] arc: Replace lkml.org links with lore

2021-02-15 Thread Vineet Gupta
On 2/10/21 3:28 PM, Kees Cook wrote: As started by commit 05a5f51ca566 ("Documentation: Replace lkml.org links with lore"), replace lkml.org links with lore to better use a single source that's more likely to stay available long-term. Signed-off-by: Kees Cook Acked-by: Vineet

Re: [PATCH 03/18] arch: arc: Remove CONFIG_OPROFILE support

2021-01-14 Thread Vineet Gupta
fic support. > > Suggested-by: Christoph Hellwig > Suggested-by: Linus Torvalds > Signed-off-by: Viresh Kumar Acked-by: Vineet Gupta I presume this doesn't need to go through ARC tree. -Vineet > --- > arch/arc/Kconfig | 1 - > arch/arc/Makefile

[GIT PULL] ARC fixes for 5.11-rc3

2021-01-10 Thread Vineet Gupta
l other fixes Randy Dunlap (1): arch/arc: add copy_user_page() to to fix build error on ARC Vineet Gupta (3): include/soc: remove headers for EZChip NPS ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handling ARC: [hsdk]: Enable FPU_SAVE_RESTORE arch/ar

Re: [PATCH 1/1] Revert "init/console: Use ttynull as a fallback when there is no console"

2021-01-08 Thread Vineet Gupta
On 1/8/21 9:45 AM, Petr Mladek wrote: > On Thu 2021-01-07 11:38:36, Linus Torvalds wrote: >> On Thu, Jan 7, 2021 at 11:15 AM Greg Kroah-Hartman >> wrote: >>> Linus, can you take this directly, or is this going through some other >>> tree? >> I was _assuming_ that I'd get it through the normal prin

Re: ARC no console output (was Re: [PATCH 1/2] init/console: Use ttynull as a fallback when there is no console)

2021-01-07 Thread Vineet Gupta
On 1/7/21 7:48 PM, Sergey Senozhatsky wrote: On (21/01/07 09:58), Vineet Gupta wrote: On 1/7/21 9:04 AM, Petr Mladek wrote: On Thu 2021-01-07 08:43:16, Vineet Gupta wrote: Hi John, On 1/7/21 1:02 AM, John Ogness wrote: Hi Vineet, On 2021-01-06, Vineet Gupta wrote: This breaks ARC booting

Re: ARC no console output (was Re: [PATCH 1/2] init/console: Use ttynull as a fallback when there is no console)

2021-01-07 Thread Vineet Gupta
On 1/7/21 9:04 AM, Petr Mladek wrote: On Thu 2021-01-07 08:43:16, Vineet Gupta wrote: Hi John, On 1/7/21 1:02 AM, John Ogness wrote: Hi Vineet, On 2021-01-06, Vineet Gupta wrote: This breaks ARC booting (no output on console). Could you provide the kernel boot arguments that you use

Re: ARC no console output (was Re: [PATCH 1/2] init/console: Use ttynull as a fallback when there is no console)

2021-01-07 Thread Vineet Gupta
Hi John, On 1/7/21 1:02 AM, John Ogness wrote: Hi Vineet, On 2021-01-06, Vineet Gupta wrote: This breaks ARC booting (no output on console). Could you provide the kernel boot arguments that you use? This series is partly about addressing users that have used boot arguments that are

[PATCH] ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handling

2021-01-06 Thread Vineet Gupta
arc-processors/linux/issues/34 Signed-off-by: Vineet Gupta --- arch/arc/kernel/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index 1f5308abf36d..1743506081da 100644 --- a/arch/arc/kernel/entry.S +++ b/arch/arc/kernel/entr

ARC no console output (was Re: [PATCH 1/2] init/console: Use ttynull as a fallback when there is no console)

2021-01-06 Thread Vineet Gupta
+CC Buildroot folks Hi Petr, On 11/11/20 5:54 AM, Petr Mladek wrote: stdin, stdout, and stderr standard I/O stream are created for the init process. They are not available when there is no console registered for /dev/console. It might lead to a crash when the init process tries to use them, see

Re: [PATCH v3] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-04 Thread Vineet Gupta
mplicit declaration of function 'copy_user_page'; > did you mean 'copy_to_user_page'? [-Werror=implicit-function-declaration] > > Reported-by: kernel test robot > Signed-off-by: Randy Dunlap > Cc: Vineet Gupta > Cc: linux-snps-...@lists.infradead.org > Cc:

[GIT PULL] ARC updates for 5.11-rc3

2021-01-04 Thread Vineet Gupta
Hi Linus, Happy New Year. Sorry for the delayed merge window material - holidays got in the way. Things are quieter on upstreaming front as we are mostly focusing on ARCv3/ARC64 port. Please pull. Thx, -Vineet ---> The following changes since commit b65054597872ce3aefbc6a666385eab

[irqchip: irq/irqchip-next] drivers/irqchip: Remove EZChip NPS interrupt controller

2020-12-11 Thread irqchip-bot for Vineet Gupta
The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 04e7f423f4a96ad492fd51bf2234b8982400ab5f Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/04e7f423f4a96ad492fd51bf2234b8982400ab5f Author:Vineet Gupta

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

2020-12-03 Thread Vineet Gupta
On 11/5/20 1:22 PM, Vineet Gupta wrote: > 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-kernel@vger.kernel.org > Signed-off-by: Vineet Gupta P

[tip: timers/core] clocksource/drivers/nps: Remove EZChip NPS clocksource driver

2020-12-03 Thread tip-bot2 for Vineet Gupta
The following commit has been merged into the timers/core branch of tip: Commit-ID: b6ea209ef124dad4045772a759e2aecd191534c0 Gitweb: https://git.kernel.org/tip/b6ea209ef124dad4045772a759e2aecd191534c0 Author:Vineet Gupta AuthorDate:Thu, 05 Nov 2020 13:22:08 -08:00

Re: [PATCH 0/6] ARC: build: fix various issues in arc boot Makefile

2020-11-24 Thread Vineet Gupta
Hi Masahiro San, On 11/21/20 11:36 AM, Masahiro Yamada wrote: > > > Masahiro Yamada (6): >ARC: build: remove non-existing bootpImage from KBUILD_IMAGE >ARC: build: add uImage.lzma to the top-level target >ARC: build: add boot_targets to PHONY >ARC: build: move symlink creation to a

[GIT PULL] ARC fixes for 5.10-rc6

2020-11-23 Thread Vineet Gupta
ove unecessary operation and value Vineet Gupta (2): ARC: stack unwinding: don't assume non-current task is sleeping ARC: stack unwinding: reorganize how initial register state setup arch/arc/include/asm/bitops.h | 4 +--- arch/arc/kernel/stacktrace

Re: [PATCH v2 10/13] arc: use FLATMEM with freeing of unused memory map instead of DISCONTIGMEM

2020-11-16 Thread Vineet Gupta
Hi Mike, On 11/1/20 9:04 AM, Mike Rapoport wrote: > From: Mike Rapoport > > Currently ARC uses DISCONTIGMEM to cope with sparse physical memory address > space on systems with 2 memory banks. While DISCONTIGMEM avoids wasting > memory on unpopulated memory map, it adds both memory and CPU overhea

Re: [PATCH] ARC: mm: fix spelling mistakes

2020-11-10 Thread Vineet Gupta
On 11/9/20 5:21 AM, Flavio Suligoi wrote: > Signed-off-by: Flavio Suligoi Thx, applied to for-curr ! -Vineet > --- > arch/arc/mm/tlb.c | 24 > 1 file changed, 12 insertions(+), 12 deletions(-) > > diff --git a/arch/arc/mm/tlb.c b/arch/arc/mm/tlb.c > index c340acd989a

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 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-kernel@vger.kernel.org Signed-off-by: Vineet Gupta --- drivers/irqchip/Kconfig | 7 -- drivers/irqchip/Makefile| 1

[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-kernel@vger.kernel.org Signed-off-by: Vineet Gupta --- drivers/clocksource/Kconfig | 10 -- drivers/clocksource/Makefile| 1 - drivers

[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

[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/

[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-...@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-...@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: 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

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

[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 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-...@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: linux-next: Fixes tag needs some work in the arc-current tree

2020-09-01 Thread Vineet Gupta
On 9/1/20 4:36 AM, Stephen Rothwell wrote: > Hi Mike, > > On Tue, 1 Sep 2020 12:13:08 +0300 Mike Rapoport wrote: >> On Tue, Sep 01, 2020 at 06:49:28PM +1000, Stephen Rothwell wrote: >>> In commit >>> >>> 7000c9462d1b ("arc: fix memory initialization for systems with two memory >>> banks") >>> >

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

[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: [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: Vinee

Re: [PATCH 01/24] asm-generic: add generic versions of mmu context functions

2020-07-27 Thread Vineet Gupta
On 7/27/20 8:33 PM, Nicholas Piggin wrote: > Many of these are no-ops on many architectures, so extend mmu_context.h > to cover MMU and NOMMU, and split the NOMMU bits out to nommu_context.h > > -static inline void switch_mm(struct mm_struct *prev, > - struct mm_struct *next,

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-...@lists.infradead.org Thx Randy. Adde

[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 v2 2/4] ARC: ARCv2: support loop buffer (LPB) disabling

2020-06-18 Thread Vineet Gupta
On 6/18/20 12:50 PM, Eugeniy Paltsev wrote: > Hi Vineet, > > could you also peek this patch to for-curr as we don't have any disagreement > about it? > > I'll respin the rest of the patches later. Thanks. > --- > Eugeniy Paltsev Added ! -Vineet

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

2020-06-16 Thread Vineet Gupta
On 6/5/20 3:47 AM, Alexey Brodkin wrote: > Hi Eugeniy, > > A couple of minor notes below. > >> -Original Message- >> From: Eugeniy Paltsev >> Sent: Thursday, June 4, 2020 8:39 PM >> To: linux-snps-...@lists.infradead.org; Vineet Gupta >> Cc: li

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 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

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

2020-05-29 Thread Vineet Gupta
+CC Rob H (it seems the CC in patch didn't go thru) On 5/29/20 4:55 AM, Eugeniy Paltsev wrote: > 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 c

Re: [PATCH 2/3] ARC: ARCv2: support loop buffer (LPB) disabling

2020-05-29 Thread Vineet Gupta
On 5/29/20 4:55 AM, Eugeniy Paltsev wrote: > On HS cores, loop buffer (LPB) is programmable in runtime and can > be optionally disabled. > > Signed-off-by: Eugeniy Paltsev LGTM. -Vineet

Re: [PATCH 1/3] ARC: allow to overide default mcpu compiler flag

2020-05-29 Thread Vineet Gupta
On 5/29/20 4:55 AM, Eugeniy Paltsev wrote: > By default we set -mcpu=xxx compiler flag depending on the CPU ISA > version. It's good starting point, however that may be not enough > as for some platforms we may want to use some specific 'mcpu' > options for better optimization or to workaround HW i

[GIT PULL] ARC fixes for 5.7

2020-05-19 Thread Vineet Gupta
ression ARC: guard dsp early init against non ARCv2 Masahiro Yamada (2): arc: ptrace: hard-code "arc" instead of UTS_MACHINE arc: remove #ifndef CONFIG_AS_CFI_SIGNAL_FRAME Vineet Gupta (3): ARC: entry: comment ARC: [plat-eznps]: Restrict to CONFIG_ISA_AR

Re: [PATCH v2 3/6] dmaengine: dw: Set DMA device max segment size parameter

2020-05-08 Thread Vineet Gupta
On 5/8/20 4:21 AM, Andy Shevchenko wrote: > Yeah, I have locally something like this and I didn't dare to upstream because > there is an issue. We have this information per DMA controller, while we > actually need this on per DMA channel basis. > > Above will work only for synthesized DMA with all

Re: [PATCH] ARC: guard dsp early init against non ARCv2

2020-04-29 Thread Vineet Gupta
On 4/29/20 10:12 AM, Eugeniy Paltsev wrote: > Hi Vineet, > >> From: Vineet Gupta >> Sent: Tuesday, April 28, 2020 22:46 >> To: Eugeniy Paltsev; linux-snps-...@lists.infradead.org >> Cc: Alexey Brodkin; linux-kernel@vger.kernel.org >> Subject: Re: [PATCH] A

Re: [PATCH] ARC: guard dsp early init against non ARCv2

2020-04-28 Thread Vineet Gupta
On 4/28/20 11:50 AM, Eugeniy Paltsev wrote: > As of today we guard early DSP init code with > ARC_AUX_DSP_BUILD (0x7A) BCR check to verify that we have > CPU with DSP configured. However that's not enough as in > ARCv1 CPU the same BCR (0x7A) is used for checking MUL/MAC > instructions presence. >

Re: [RFC 0/6] ARC: merge HAPS-HS with nSIM-HS configs

2019-10-22 Thread Vineet Gupta
m (or point to wiki etc) that starting with 5.x kernel,any nsim uart config needs to change of they are using the defconfigs. -Vineet From: Eugeniy Paltsev Sent: Tuesday, October 22, 2019 11:18 AM To: Vineet Gupta; Eugeniy Paltsev; linux

Re: [RFC 6/6] ARC: merge HAPS-HS with nSIM-HS configs

2019-10-18 Thread Vineet Gupta
On 10/18/19 5:15 AM, Eugeniy Paltsev wrote: > Starting from nSIM 2019.06 is possible to use DW UART > instead of ARC UART. That allows us to merge > "nsim_hs" with "haps_hs" and "nsim_hs_smp" with "haps_hs_smp" > mith minor changes which were done in previous commits. > > We eliminate nsim_hs_defc

Re: [RFC 0/6] ARC: merge HAPS-HS with nSIM-HS configs

2019-10-18 Thread Vineet Gupta
On 10/18/19 5:15 AM, Eugeniy Paltsev wrote: > Starting from nSIM 2019.06 is possible to use DW UART > instead of ARC UART. That allows us to merge > "nsim_hs" with "haps_hs" and "nsim_hs_smp" with "haps_hs_smp" > mith some minor changes. > > We eliminate nsim_hs_defconfig and nsim_hs_smp_defconfig

[PATCH v3 0/5] elide extraneous generated code for folded p4d/pud/pmd

2019-10-16 Thread Vineet Gupta
d can drop this too if Andrew thinks otherwise [1] http://lists.infradead.org/pipermail/linux-snps-arc/2019-October/006263.html [2] http://lists.infradead.org/pipermail/linux-snps-arc/2019-October/006277.html [3] http://lists.infradead.org/pipermail/linux-snps-arc/2019-October/006307.html ---

[PATCH v3 2/5] asm-generic/tlb: stub out pud_free_tlb() if nopud ...

2019-10-16 Thread Vineet Gupta
empty stubs for __pud_free_tlb, which is anyhow called only from pud_free_tlb() Acked-by: Kirill A. Shutemov Acked-by: Linus Torvalds Signed-off-by: Vineet Gupta --- include/asm-generic/4level-fixup.h | 1 - include/asm-generic/pgtable-nopud.h | 2 +- include/asm-generic/tlb.h | 2

[PATCH v3 5/5] asm-generic/mm: stub out p{4,u}d_clear_bad() if __PAGETABLE_P{4,U}D_FOLDED

2019-10-16 Thread Vineet Gupta
old new delta | pud_clear_bad 20 - -20 | p4d_clear_bad 20 - -20 | Total: Before=4136930, After=4136890, chg -1.00% Acked-by: Kirill A. Shutemov Signed-off-by: Vineet Gupta --- include/asm

[PATCH v3 3/5] asm-generic/tlb: stub out p4d_free_tlb() if nop4d ...

2019-10-16 Thread Vineet Gupta
(-104) | function old new delta | free_pgd_range 552 422-130 | Total: Before=4137172, After=4137042, chg -1.00% Acked-by: Kirill A. Shutemov Acked-by: Linus Torvalds Signed-off-by: Vineet Gupta --- include/asm

[PATCH v3 1/5] ARC: mm: remove __ARCH_USE_5LEVEL_HACK

2019-10-16 Thread Vineet Gupta
+18 | Total: Before=4137148, After=4137276, chg 0.00% Acked-by: Kirill A. Shutemov Signed-off-by: Vineet Gupta --- arch/arc/include/asm/pgtable.h | 1 - arch/arc/mm/fault.c| 10 -- arch/arc/mm/highmem.c | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) d

[PATCH v3 4/5] asm-generic/tlb: stub out pmd_free_tlb() if nopmd

2019-10-16 Thread Vineet Gupta
this patch we can, but see next patch for example where we can't Acked-by: Kirill A. Shutemov Signed-off-by: Vineet Gupta --- include/asm-generic/pgtable-nopmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/pgtable-nopmd.h b/include/asm-generic/pg

Re: [PATCH v2 1/5] ARC: mm: remove __ARCH_USE_5LEVEL_HACK

2019-10-15 Thread Vineet Gupta
On 10/15/19 2:48 PM, Linus Torvalds wrote: > On Tue, Oct 15, 2019 at 12:19 PM Vineet Gupta > wrote: >> This is a non-functional change anyways since ARC has software page walker >> with 2 lookup levels (pgd -> pte) > > Could we encourage other architectures to do the

[PATCH v2 0/5] eldie generated code for folded p4d/pud

2019-10-15 Thread Vineet Gupta
rwise [1] http://lists.infradead.org/pipermail/linux-snps-arc/2019-October/006263.html [2] http://lists.infradead.org/pipermail/linux-snps-arc/2019-October/006277.html --- Vineet Gupta (5): ARC: mm: remove __ARCH_USE_5LEVEL_HACK asm-generic/tlb: stub out pud_free_tlb() if nopud ... asm-generic/tlb: stub out p4

[PATCH v2 2/5] asm-generic/tlb: stub out pud_free_tlb() if nopud ...

2019-10-15 Thread Vineet Gupta
| free_pgd_range 656 552-104 | Total: Before=4137276, After=4137172, chg -1.00% Signed-off-by: Vineet Gupta --- include/asm-generic/4level-fixup.h | 1 - include/asm-generic/pgtable-nopud.h | 2 +- include/asm-generic/tlb.h | 2 -- 3 files changed, 1

[PATCH v2 4/5] asm-generic/tlb: stub out pmd_free_tlb() if nopmd

2019-10-15 Thread Vineet Gupta
(-112) | function old new delta | free_pgd_range 422 310-112 | Total: Before=4137042, After=4136930, chg -1.00% Signed-off-by: Vineet Gupta --- include/asm-generic/pgtable-nopmd.h | 2 +- 1 file changed, 1

[PATCH v2 3/5] asm-generic/tlb: stub out p4d_free_tlb() if nop4d ...

2019-10-15 Thread Vineet Gupta
(-104) | function old new delta | free_pgd_range 552 422-130 | Total: Before=4137172, After=4137042, chg -1.00% Signed-off-by: Vineet Gupta --- include/asm-generic/5level-fixup.h | 1 - include/asm-generic

[PATCH v2 5/5] asm-generic/mm: stub out p{4,d}d_clear_bad() if __PAGETABLE_P{4,u}D_FOLDED

2019-10-15 Thread Vineet Gupta
20 - -20 | p4d_clear_bad 20 - -20 | Total: Before=4136930, After=4136890, chg -1.00% Signed-off-by: Vineet Gupta --- include/asm-generic/pgtable.h | 11 +++ mm/pgtable-generic.c | 8 2 files changed, 19

[PATCH v2 1/5] ARC: mm: remove __ARCH_USE_5LEVEL_HACK

2019-10-15 Thread Vineet Gupta
bad 2 20 +18 | Total: Before=4137148, After=4137276, chg 0.00% Cc: Kirill A. Shutemov Signed-off-by: Vineet Gupta --- arch/arc/include/asm/pgtable.h | 1 - arch/arc/mm/fault.c| 10 -- arch/arc/mm/highmem.c | 4 +++- 3 files changed, 11 insertions(+)

Re: [RFC] asm-generic/tlb: stub out pmd_free_tlb() if __PAGETABLE_PMD_FOLDED

2019-10-14 Thread Vineet Gupta
On 10/14/19 11:25 AM, Linus Torvalds wrote: > On Mon, Oct 14, 2019 at 11:02 AM Vineet Gupta wrote: >> >> I suppose we could but >> >> (a) It would be asymmetric with the __p{u,4}d_free_tlb() changes in [1] and >> [2]. > > Your patch is already assymmetric

Re: [RFC] asm-generic/tlb: stub out pmd_free_tlb() if __PAGETABLE_PMD_FOLDED

2019-10-14 Thread Vineet Gupta
On 10/14/19 10:41 AM, Linus Torvalds wrote: > On Fri, Oct 11, 2019 at 3:38 PM Vineet Gupta > wrote: >> >> This is inine with similar patches for nopud [1] and nop4d [2] cases. > > I don't think your patch is wrong, but wouldn't it be easier and > cleaner t

[RFC] asm-generic/tlb: stub out pmd_free_tlb() if __PAGETABLE_PMD_FOLDED

2019-10-11 Thread Vineet Gupta
2, After=4136890, chg -1.00% [1] http://lists.infradead.org/pipermail/linux-snps-arc/2019-October/006266.html [2] http://lists.infradead.org/pipermail/linux-snps-arc/2019-October/006265.html Signed-off-by: Vineet Gupta --- include/asm-generic/tlb.h | 4 1 file changed, 4 insertions(

Re: [PATCH 0/3] eldie generated code for folded p4d/pud

2019-10-10 Thread Vineet Gupta
Hi Kirill, On 10/10/19 1:56 AM, Kirill A. Shutemov wrote: > On Wed, Oct 09, 2019 at 10:26:55PM +0000, Vineet Gupta wrote: >> >> This series elides extraneous generate code for folded p4d/pud. >> This came up when trying to remove __ARCH_USE_5LEVEL_HACK from ARC port. >&

[PATCH 1/3] asm-generic/tlb: stub out pud_free_tlb() if __PAGETABLE_PUD_FOLDED ...

2019-10-09 Thread Vineet Gupta
: 0/1 up/down: 0/-104 (-104) | function old new delta | free_pgd_range 656 552-104 | Total: Before=4137276, After=4137172, chg -1.00% Signed-off-by: Vineet Gupta --- include/asm-generic/4level-fixup.h | 2

[PATCH 3/3] asm-generic/mm: stub out p{4,d}d_clear_bad() if __PAGETABLE_P{4,u}D_FOLDED

2019-10-09 Thread Vineet Gupta
20 - -20 | p4d_clear_bad 20 - -20 | Total: Before=4137104, After=4137082, chg -1.00% Signed-off-by: Vineet Gupta --- include/asm-generic/pgtable.h | 11 +++ mm/pgtable-generic.c | 4 2 files changed, 15

  1   2   3   4   5   6   7   8   9   10   >