Re: ARC: Use __force to suppress per-CPU cmpxchg complaints

2024-10-15 Thread Vineet Gupta
l.com/ > Signed-off-by: Paul E. McKenney > Cc: Vineet Gupta > Cc: > > diff --git a/arch/arc/include/asm/cmpxchg.h b/arch/arc/include/asm/cmpxchg.h > index 58045c8983404..76f43db0890fc 100644 > --- a/arch/arc/include/asm/cmpxchg.h >

Re: include/linux/compiler_types.h:328:45: error: call to '__compiletime_assert_315' declared with attribute error: BUILD_BUG_ON failed: (PTRS_PER_PTE * sizeof(pte_t)) > PAGE_SIZE

2024-10-15 Thread Vineet Gupta
On 9/15/24 11:07, kernel test robot wrote: > Hi Vineet, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 98f7e32f20d28ec452afb208f9cffc08448a2652 > commit: d9820ff76f95fa26d33e412254a89cd65b23142d ARC: mm: s

[PATCH 1/3] arc: rename aux.h to arc_aux.h

2024-10-15 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 2 +- arch/arc/include/asm/mmu-arcv2.h | 2 +- include/soc/arc/{aux.h => arc_aux.h} | 0 include/soc/arc/mcip.h | 2 +- include/soc/arc/timers.h | 2 +- 5 files changed, 4 insertions(+)

[PATCH 3/3] ARC: build: Use __force to suppress per-CPU cmpxchg warnings

2024-10-15 Thread Vineet Gupta
this does not pertain to cmpxchg() semantics, which are plently well-defined on variables in general, whether per-CPU or otherwise. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409251336.toc0tvwb-...@intel.com/ Signed-off-by: Paul E. McKenney Cc: Signed-off-

[PATCH 0/3] ARC fixes for 6.12

2024-10-15 Thread Vineet Gupta
Hi, Changes slated for a near future rc. Thx, -Vineet Benjamin Szőke (1): arc: rename aux.h to arc_aux.h Paul E. McKenney (1): ARC: build: Use __force to suppress per-CPU cmpxchg warnings Vineet Gupta (1): ARC: build: disallow invalid PAE40 + 4K page config arch/arc/Kconfig

[PATCH 2/3] ARC: build: disallow invalid PAE40 + 4K page config

2024-10-15 Thread Vineet Gupta
on MMU ver not really ISA, although that follows eventually. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409160223.xydgucby-...@intel.com/ Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a

[PATCH 3/3] ARC: build: Use __force to suppress per-CPU cmpxchg warnings

2024-10-15 Thread Vineet Gupta
this does not pertain to cmpxchg() semantics, which are plently well-defined on variables in general, whether per-CPU or otherwise. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409251336.toc0tvwb-...@intel.com/ Signed-off-by: Paul E. McKenney Cc: Signed-off-

Re: [PATCH] arc: rename aux.h to arc_aux.h

2024-10-07 Thread Vineet Gupta
On 10/7/24 05:04, Szőke Benjamin wrote: > 2024. 10. 05. 21:40 keltezéssel, Vineet Gupta írta: >> On 10/5/24 06:41, Szőke Benjamin wrote: >>> 2024. 09. 25. 10:48 keltezéssel, Shahab Vahedi írta: >>>> +Add Vineet (with the right address) >>>> +Up

Re: [PATCH] arc: rename aux.h to arc_aux.h

2024-10-05 Thread Vineet Gupta
On 10/5/24 06:41, Szőke Benjamin wrote: > 2024. 09. 25. 10:48 keltezéssel, Shahab Vahedi írta: >> +Add Vineet (with the right address) >> +Update Alexey's address to business instance >> >> September 23, "Szőke Benjamin" wrote: >> >>> Long time ago i submitted a patch, when it will be reviewed? Is

Re: [PATCH] ARC: update the help message for CONFIG_ARC_BUILTIN_DTB_NAME

2024-09-02 Thread Vineet Gupta
On 8/31/24 23:50, Masahiro Yamada wrote: > On Sun, Sep 1, 2024 at 8:02 AM Vineet Gupta wrote: >> >> >> On 8/31/24 03:13, Masahiro Yamada wrote: >>> On Sat, Aug 31, 2024 at 7:10 PM Masahiro Yamada >>> wrote: >>>> Commit abe11ddea1d7 ("

Re: [PATCH] ARC: update the help message for CONFIG_ARC_BUILTIN_DTB_NAME

2024-08-31 Thread Vineet Gupta
"angel4". >> >> Commit fd1557923b2e ("ARC: [plat_arcfpga]->[plat_sim]") changed it >> from "angel4" to "nsim_70". > > A typo. > > ... to "nsim_700". > > >> Signed-off-by: Masahiro Yamada Acked-by: Vineet Gupta Thx

Re: [PATCH cmpxchg 2/3] ARC: Emulate one-byte cmpxchg

2024-08-05 Thread Vineet Gupta
On 8/5/24 21:28, Paul E. McKenney wrote: > On Mon, Aug 05, 2024 at 06:27:57PM -0700, Vineet Gupta wrote: >> Hi Paul, >> >> On 8/5/24 12:21, Paul E. McKenney wrote: >>> Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on arc. >>> >>> [

Re: [PATCH cmpxchg 2/3] ARC: Emulate one-byte cmpxchg

2024-08-05 Thread Vineet Gupta
k. ] > > Signed-off-by: Paul E. McKenney > Cc: Vineet Gupta > Cc: Andi Shyti > Cc: Andrzej Hajda > Cc: Arnd Bergmann > Cc: Palmer Dabbelt > Cc: > --- > arch/arc/Kconfig | 1 + > arch/arc/include/asm/cmpxchg.h | 33 -

[GIT PULL] ARX fixes for 6.9

2024-04-26 Thread Vineet Gupta
IPT aliasing assumption  - Miscll build warning fixes and some typos Alexey Brodkin (1):   ARC: [plat-hsdk]: Remove misplaced interrupt-cells property Bjorn Helgaas (1):   ARC: Fix typos Vineet Gupta (2):   ARC:

Re: [PATCH v2] ARC: Fix typos

2024-03-29 Thread Vineet Gupta
On 3/29/24 15:14, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Fix typos, most reported by "codespell arch/arc". Only touches comments, > no code changes. > > Signed-off-by: Bjorn Helgaas Added to ARC for-curr. Thx, -Vineet ___ linux-snps-arc mai

Re: [PATCH 2/8] ARC: Fix typos

2024-03-29 Thread Vineet Gupta
On 1/4/24 11:02, Bjorn Helgaas wrote: >>> diff --git a/arch/arc/kernel/signal.c b/arch/arc/kernel/signal.c >>> index 0b3bb529d246..5414d9f5c40c 100644 >>> --- a/arch/arc/kernel/signal.c >>> +++ b/arch/arc/kernel/signal.c >>> @@ -9,7 +9,7 @@ >>> * vineetg: Nov 2009 (Everything needed for TIF_RE

Re: recent kernel warning

2024-03-28 Thread Vineet Gupta
c Thx, -Vineet > > Thanks for the pointer. > > -Alexey > -------- > *From:* Vineet Gupta > *Sent:* Thursday, March 28, 2024 5:15 AM > *To:* Alexey Brodkin ; arcml > > *Subject:* recent kernel warning &g

Re: [PATCH 2/2] ARC: mm: fix new code about cache aliasing

2024-03-28 Thread Vineet Gupta
On 3/28/24 06:57, Mathieu Desnoyers wrote: > On 2024-03-28 01:39, Vineet Gupta wrote: >> Manual/partial revert of 8690bbcf3b70 ("Introduce cpu_dcache_is_aliasing() >> across all architectures") >> >> Current generation of ARCv2/ARCv3 based HSxx cores a

Re: next: arc: defconfig - gcc-9 - mmu-arcv2.h:82:2: error: implicit declaration of function 'write_aux_reg' [-Werror=implicit-function-declaration]

2024-03-27 Thread Vineet Gupta
On 3/25/24 23:39, Naresh Kamboju wrote: > The following arc defconfig build warnings / errors noticed on today's > Linux next-20240326 tag. > > Regressions: > * arc - defconfig - gcc-9 build failed. > > Reported-by: Linux Kernel Functional Testing > > Build log: > - > arch/arc/kerne

[PATCH 1/2] ARC: Fix -Wmissing-prototypes warnings

2024-03-27 Thread Vineet Gupta
totype for 'syscall_trace_enter' [-Wmissing-prototypes] | 342 | asmlinkage int syscall_trace_enter(struct pt_regs *regs) Link: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240325/testrun/23149630/suite/build/test/gcc-9-defconfig/log Reported-by: Linux Kernel Functional Testing Signed-

[PATCH 0/2] ARC minor fixes

2024-03-27 Thread Vineet Gupta
Some fixlets for ARC. Vineet Gupta (2): ARC: Fix -Wmissing-prototypes warnings ARC: mm: fix new code about cache aliasing arch/arc/Kconfig | 1 - arch/arc/include/asm/cachetype.h | 9 - arch/arc/include/asm/ptrace.h| 2 +- arch/arc/kernel/kprobes.c| 7

[PATCH 2/2] ARC: mm: fix new code about cache aliasing

2024-03-27 Thread Vineet Gupta
s-arc/2023-February/006899.html Cc: Mathieu Desnoyers Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 1 - arch/arc/include/asm/cachetype.h | 9 - 2 files changed, 10 deletions(-) delete mode 100644 arch/arc/include/asm/cachetype.h diff --git a/arch/arc/Kconfig b/arch/a

recent kernel warning

2024-03-27 Thread Vineet Gupta
Alexey, Can you have someone look at the following kernel warning:   DTC arch/arc/boot/dts/hsdk.dtb ../arch/arc/boot/dts/hsdk.dts:207.23-235.5: Warning (interrupt_provider): /soc/ethernet@8000: '#interrupt-cells' found, but node is not an interrupt provider arch/arc/boot/dts/hsdk.dtb: Warning

Re: [RFC v2.1 01/12] ARC: Use initializer for struct vm_unmapped_area_info

2024-03-01 Thread Vineet Gupta
t; This will zero any unspecified members. Move the field initializers to the > struct declaration when they are known at that time. Leave the fields out > that were manually initialized to zero, as this would be redundant for > designated initializers. > > Signed-off-by: Rick Edgecom

Re: [PATCH bpf-next v1] ARC: Add eBPF JIT support

2024-02-13 Thread Vineet Gupta
+CC Bjorn On 2/13/24 18:39, Alexei Starovoitov wrote: > On Tue, Feb 13, 2024 at 5:20 AM Shahab Vahedi wrote: >> From: Shahab Vahedi >> >> This will add eBPF JIT support to the 32-bit ARCv2 processors. The >> implementation is qualified by running the BPF tests on a Synopsys HSDK >> board with "A

[GIT PULL] ARC fixes for 6.7

2023-12-18 Thread Vineet Gupta
for hugetlb, sparse and smatch fixes  - Removal of VIPT aliasing cache code Pavel Kozlov (1):   ARC: add hugetlb definitions Vineet Gupta (5):   ARC: entry: SAVE_ABI_CALLEE_REG: ISA/ABI specific helper   ARC: entry: m

Re: [PATCH] ARC: add hugetlb definitions

2023-12-13 Thread Vineet Gupta
On 12/13/23 07:07, Pavel Kozlov wrote: > From: Pavel Kozlov > > Add hugetlb definitions if THP enabled. ARC doesn't support > HugeTLB FS but it supports THP. Some kernel code such as pagemap > uses hugetlb definitions with THP. > > This patch fixes ARC build issue (HPAGE_SIZE undeclared error)

Re: arch/arc/kernel/setup.c:203 arcv2_mumbojumbo() error: uninitialized symbol 'release'.

2023-12-08 Thread Vineet Gupta
On 11/27/23 22:22, Dan Carpenter wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab > commit: fad84e39f116035ae8d550c6020107b8ac113b45 ARC: boot log: eliminate > struct cpuinfo_arc #4: boot log per ISA >

[PATCH 2/5] ARC: entry: move ARCompact specific bits out of entry.h

2023-12-08 Thread Vineet Gupta
- PUSHAUX/POPAUX helpers to ARCompact entry - use gas provided "push"/pop pseudo instructions Signed-off-by: Vineet Gupta --- arch/arc/include/asm/entry-compact.h | 55 ++- arch/arc/include/asm/entry.h | 66 2 files c

[PATCH 5/5] ARC: fix smatch warning

2023-12-08 Thread Vineet Gupta
Reported-by: kernel test robot Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202311280906.vaiweaft-...@intel.com/ Signed-off-by: Vineet Gupta --- arch/arc/kernel/setup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch/arc

[PATCH 3/5] ARC: mm: retire support for aliasing VIPT D$

2023-12-08 Thread Vineet Gupta
we can let it RIP. Cc: Matthew Wilcox (Oracle) Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 5 -- arch/arc/include/asm/cacheflush.h | 43 -- arch/arc/mm/cache.c | 136 ++ arch/arc/mm/mmap.c| 21

[PATCH 0/5] ARC updates

2023-12-08 Thread Vineet Gupta
Hi, A pile of accrued changes, compile tested only. Please test. Thx, -Vineet Vineet Gupta (5): ARC: entry: SAVE_ABI_CALLEE_REG: ISA/ABI specific helper ARC: entry: move ARCompact specific bits out of entry.h ARC: mm: retire support for aliasing VIPT D$ ARC: fix spare error ARC: fix

[PATCH 4/5] ARC: fix spare error

2023-12-08 Thread Vineet Gupta
Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312082320.vdn5a9hb-...@intel.com/ Signed-off-by: Vineet Gupta --- arch/arc/kernel/signal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arc/kernel/signal.c b/arch/arc/kernel

[PATCH 1/5] ARC: entry: SAVE_ABI_CALLEE_REG: ISA/ABI specific helper

2023-12-08 Thread Vineet Gupta
/LEAVE_S to reduce code size For ARCv3 ABI changed so callee regs are now r14-r26 (vs. r13-r25) thus would need a different implementation. Signed-off-by: Vineet Gupta --- arch/arc/include/asm/entry-arcv2.h | 32 arch/arc/include/asm/entry-compact.h | 32

Re: [PATCH 3/3] locking/atomic: openrisc: use generic_cmpxchg[64]_local for arch_cmpxchg[64]_local

2023-11-01 Thread Vineet Gupta
On 10/29/23 20:41, wuqiang.matt wrote: arch_cmpxchg_relaxed: ...   switch(sizeof((_p_))) {   case 4: arch_cmpxchg: ... BUILD_BUG_ON(sizeof(_p_) != 4); ... _p is the address pointer, so I'm thinking it's a typo but I couldn't yet confirm. There is not much about arc

Re: [PATCH 3/3] locking/atomic: openrisc: use generic_cmpxchg[64]_local for arch_cmpxchg[64]_local

2023-10-29 Thread Vineet Gupta
On 10/28/23 20:26, Masami Hiramatsu (Google) wrote: On Sun, 29 Oct 2023 00:40:17 +0800 "wuqiang.matt" wrote: On 2023/10/28 20:49, Masami Hiramatsu (Google) wrote: Hi Wuqiang, On Thu, 26 Oct 2023 19:05:51 +0800 "wuqiang.matt" wrote: On 2023/10/26 16:46, Arnd Bergmann wrote: On Thu, Oct

[GIT PULL] ARC updates for v6.6-rc1

2023-09-04 Thread Vineet Gupta
ter (vs. r25)  - Miscll rework of entry code Pavel Kozlov (1):   ARC: atomics: Add compiler barrier to atomic operations... Rob Herring (1):   arc: Explicitly include correct DT includes Vineet Gupta (22):   ARC: -Wmiss

Re: [PATCH] arc: Explicitly include correct DT includes

2023-08-23 Thread Vineet Gupta
On 8/23/23 10:00, Rob Herring wrote: On Fri, Jul 14, 2023 at 11:39:49AM -0600, Rob Herring wrote: The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago,

[PATCH v2 16/20] ARC: entry: Add more common chores to EXCEPTION_PROLOGUE

2023-08-19 Thread Vineet Gupta
te code by moving #2, #3, #4 into #1. The exceptions to most exceptions are syscall Trap and Machine check which don't do some of above for various reasons, so call a newly introduced variant EXCEPTION_PROLOGUE_KEEP_AE (same as original EXCEPTION_PROLOGUE) Tested-by: Pavel Kozlov Signed-off-b

Re: [PATCH 16/20] ARC: entry: Add more common chores to EXCEPTION_PROLOGUE

2023-08-19 Thread Vineet Gupta
On 8/18/23 05:56, pavel.koz...@synopsys.com wrote: Hi Vineet, Subject: [PATCH 16/20] ARC: entry: Add more common chores to EXCEPTION_PROLOGUE THe high level structure of most ARC exception handlers is 1. save regfile with EXCEPTION_PROLOGUE 2. setup r0: EFA (not part of pt_regs)

Re: [PATCH 20/20] ARC: pt_regs: create seperate type for ecr

2023-08-17 Thread Vineet Gupta
On 8/17/23 05:09, pavel.koz...@synopsys.com wrote: Hi Vineet, I'm testing your updates and ran into the same build issue reported by the build robot. http://lists.infradead.org/pipermail/linux-snps-arc/2023-August/007522.html #define MAX_REG_OFFSET offsetof(struct pt_regs, event) This chang

[PATCH v2 20/20] ARC: pt_regs: create seperate type for ecr

2023-08-17 Thread Vineet Gupta
Reduces duplication in each ISA specific pt_regs Tested-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308151342.roq9urvv-...@intel.com Signed-off-by: Vineet Gupta --- arch/arc/include/asm/ptrace.h | 47 +- arch/arc/kernel/asm-offsets.c

[PATCH v2 08/20] ARC: boot log: eliminate struct cpuinfo_arc #4: boot log per ISA

2023-08-17 Thread Vineet Gupta
- boot log now clearly per ISA - global struct cpuinfo_arc[] elimiated - local struct struct arcinfo kept for passing info between functions Tested-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308162101.ve5jbg80-...@intel.com Signed-off-by: Vineet Gupta

[PATCH v2 05/20] ARC: boot log: eliminate struct cpuinfo_arc #1: mm

2023-08-17 Thread Vineet Gupta
s - folds read_decode_mmu_bcr() into arc_mmu_mumbojumbo() - setup_processor() directly calls arc_mmu_init() and not via arc_cpu_init() Tested-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308151213.qkzpmiyz-...@intel.com/ Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcr

Re: {standard input}:1727: Error: operand out of range (-132 is not between -128 and 127)

2023-08-15 Thread Vineet Gupta
+CC Alexey and Claudiu On 8/15/23 09:35, Paul E. McKenney wrote: On Tue, Aug 15, 2023 at 07:34:04AM +, Liu, Yujie wrote: Hi Paul, On Fri, 2023-08-11 at 08:41 -0700, Paul E. McKenney wrote: On Fri, Aug 11, 2023 at 01:02:12PM +0800, kernel test robot wrote: tree:   https://git.kernel.org/p

Re: [PATCH] ARC: avoid unwanted gcc optimizations in atomic operations

2023-08-15 Thread Vineet Gupta
Link:https://github.com/foss-for-synopsys-dwc-arc-processors/linux/issues/135 Cc: # v6.3+ Signed-off-by: Pavel Kozlov Acked-by: Vineet Gupta Fixes: b64be6836993c431e ("ARC: atomics: implement relaxed variants") Before that commit, atomic ops could elide memory clobber because

[PATCH 18/20] ARC: entry: replace 8 byte ADD.ne with 4 byte ADD2.ne

2023-08-14 Thread Vineet Gupta
r12,[sp,20] 7e4: 226a 1340 lr r10,[aux_user_sp] 7e8: 22ca 1702 mov.ne r10,sp 7ec: 22d5 1722 add2.ne r10,r10,0x1c Signed-off-by: Vineet Gupta --- arch/arc/include/asm/entry-arcv2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 14/20] ARC: entry: ARcompact EV_ProtV to use r10 directly

2023-08-14 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/kernel/entry-compact.S | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arc/kernel/entry-compact.S b/arch/arc/kernel/entry-compact.S index 5cb0cd7e4eab..77f0090554c5 100644 --- a/arch/arc/kernel/entry-compact.S +++ b/arch/arc

[PATCH 08/20] ARC: boot log: eliminate struct cpuinfo_arc #4: boot log per ISA

2023-08-14 Thread Vineet Gupta
- boot log now clearly per ISA - global struct cpuinfo_arc[] elimiated - local struct struct arcinfo kept for passing info between functions Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 33 +- arch/arc/include/asm/setup.h | 4 +- arch/arc/kernel/setup.c

[PATCH 20/20] ARC: pt_regs: create seperate type for ecr

2023-08-14 Thread Vineet Gupta
Reduces duplication in each ISA specific pt_regs Signed-off-by: Vineet Gupta --- arch/arc/include/asm/ptrace.h | 45 +- arch/arc/kernel/asm-offsets.c | 2 +- arch/arc/kernel/kgdb.c | 2 +- arch/arc/kernel/ptrace.c | 4 +-- arch/arc/kernel

[PATCH 05/20] ARC: boot log: eliminate struct cpuinfo_arc #1: mm

2023-08-14 Thread Vineet Gupta
s - folds read_decode_mmu_bcr() into arc_mmu_mumbojumbo() - setup_processor() directly calls arc_mmu_init() and not via arc_cpu_init() Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 27 +++--- arch/arc/include/asm/setup.h | 1 - arch/arc/kernel/setup.c| 4 +- arch/ar

[PATCH 17/20] ARC: entry: replace 8 byte OR with 4 byte BSET

2023-08-14 Thread Vineet Gupta
r9,r9,0x5 858: 214f 17c9 bsetr9,r9,0x1f 85c: 2029 8240 kflag r9 Signed-off-by: Vineet Gupta --- arch/arc/include/asm/entry-arcv2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arc/include/asm/entry-arcv2.h b/arch/arc/include

[PATCH 13/20] ARC: entry: rework (non-functional)

2023-08-14 Thread Vineet Gupta
- comments update - rename syscall_trace_entry - use PT_xxx in entry code Signed-off-by: Vineet Gupta --- arch/arc/include/asm/entry-arcv2.h | 23 -- arch/arc/include/asm/entry-compact.h | 3 +- arch/arc/include/asm/ptrace.h| 2 +- arch/arc/kernel/asm-offsets.c

[PATCH 19/20] ARCv2: entry: rearrange pt_regs slightly

2023-08-14 Thread Vineet Gupta
Instead of r26,fp,sp,r12,r30 order as fp,r30,r12,r26,sp - keeps SP at well known position (right abive hardware autosave) - r26,r12 saved specifically for ARCv2 (and not in ARCv3) kept closer for easy ifdef'ry later Signed-off-by: Vineet Gupta --- arch/arc/include/asm/entry-arcv2.h

[PATCH 00/20] ARC updates

2023-08-14 Thread Vineet Gupta
Hi, This is a pile of miscll improvements/updates sitting in one of my local trees. Given the recent warning fix, we coudl also push them out. @Alexey, @Shahab: care to give these a spin on hsdk (and test ARC700 build/boot on nSIM if possible). Thx, -Vineet Vineet Gupta (20): ARC: uaccess

[PATCH 09/20] ARC: entry: use gp to cache task pointer (vs. r25)

2023-08-14 Thread Vineet Gupta
significantly and much nocer on eyes: - SAVE_CALLEE_SAVED_{USER,KERNEL} are now exactly same - no special user_r25 slot in pt_reggs Note that typical global asm registers are callee-saved (r25), but gp is not callee-saved thus needs additional -ffixed- toggle Signed-off-by: Vineet Gupta --- arch/arc

[PATCH 15/20] ARC: entry: EV_MachineCheck dont re-read ECR

2023-08-14 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/kernel/entry.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index f291fc8476d7..46582fbebcf2 100644 --- a/arch/arc/kernel/entry.S +++ b/arch/arc/kernel/entry.S @@ -95,16 +95,15

[PATCH 07/20] ARC: boot log: eliminate struct cpuinfo_arc #3: don't export

2023-08-14 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 2 -- arch/arc/kernel/mcip.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index cb1ad1bb4ece..160ee3fab1bd 100644 --- a/arch/arc/include/asm/arcregs.h

[PATCH 11/20] ARC: __switch_to: asm with dwarf ops (vs. inline asm)

2023-08-14 Thread Vineet Gupta
dwarf info was missing. Now with modern tools, we can make things more obvious by writing the code in asm and adding approproate dwarf cfi pseudo ops. This is mostly non functional change, except for slight chnages to asm - ARCompact doesn't support MOV_S fp, sp, so we use MOV Signed-

[PATCH 16/20] ARC: entry: Add more common chores to EXCEPTION_PROLOGUE

2023-08-14 Thread Vineet Gupta
te code by moving #2, #3, #4 into #1. The exceptions to most exceptions are syscall Trap and Machine check which don't do some of above for various reasons, so call a newly introduced variant EXCEPTION_PROLOGUE_KEEP_AE (same as original EXCEPTION_PROLOGUE) Signed-off-by: Vineet Gupta --- arch/

[PATCH 06/20] ARC: boot log: eliminate struct cpuinfo_arc #2: cache

2023-08-14 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 37 ++- arch/arc/include/asm/setup.h | 1 - arch/arc/kernel/setup.c| 3 +- arch/arc/mm/cache.c| 171 - 4 files changed, 97 insertions(+), 115 deletions(-) diff --git a

[PATCH 04/20] ARCv2: memset: don't prefetch for len == 0 which happens a alot

2023-08-14 Thread Vineet Gupta
This avoids potential "bleeding" when size == 0 as cache line would be dirtied (and possibly fetched from other cores) and due to the same reaons more optimal too. Signed-off-by: Vineet Gupta --- arch/arc/lib/memset-archs.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[PATCH 03/20] ARC: uaccess: elide unaliged handling if hardware supports

2023-08-14 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/uaccess.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h index d2da159bb80a..1e8809ea000a 100644 --- a/arch/arc/include/asm/uaccess.h +++ b/arch

[PATCH 12/20] ARC: __switch_to: move ksp to thread_info from thread_struct

2023-08-14 Thread Vineet Gupta
and we can see the 2 ways of retirving ksp (descrobed above) in new code. Signed-off-by: Vineet Gupta --- arch/arc/include/asm/processor.h | 3 +-- arch/arc/include/asm/thread_info.h | 10 +- arch/arc/kernel/asm-offsets.c | 2 +- arch/arc/kernel/ctx_sw_asm.S | 22 ++--

[PATCH 02/20] ARC: uaccess: use optimized generic __strnlen_user/__strncpy_from_user

2023-08-14 Thread Vineet Gupta
The existing ARC variants have 2 issues - Use ZOL which may not be present in forthcoming architecture - Byte loop based vs. generic version which is word loop based Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/Kconfig b/arch

[PATCH 10/20] ARC: kernel stack: INIT_THREAD need not setup @init_stack in @ksp

2023-08-14 Thread Vineet Gupta
value on first call to __switch_to when init is switched out for the very first time. - generic code already does init_task.stack = init_stack and ARC code uses that to retrieve task's stack base. Signed-off-by: Vineet Gupta --- arch/arc/include/asm/processor.h | 4 +--- 1 file ch

[PATCH 01/20] ARC: uaccess: remove arc specific out-of-line handles for -Os

2023-08-14 Thread Vineet Gupta
Everything is now out-of-line in lib/usercopy.c Signed-off-by: Vineet Gupta --- arch/arc/include/asm/uaccess.h | 11 ++- arch/arc/mm/extable.c | 11 --- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm

Re: [PATCH] ARC: -Wmissing-prototype warning fixes

2023-08-14 Thread Vineet Gupta
On 8/13/23 12:18, Arnd Bergmann wrote: On Sun, Aug 13, 2023, at 21:16, Vineet Gupta wrote: Anrd reported [1] new compiler warnings due to -Wmissing-protype. These are for non static functions mostly used in asm code hence not exported already. Fix this by adding the prototypes. [1] https

Re: [PATCH] ARC: mm: retire support for aliasing VIPT D$

2023-08-14 Thread Vineet Gupta
On 8/14/23 12:38, Andrew Morton wrote: On Sun, 13 Aug 2023 12:25:43 -0700 Vineet Gupta wrote: Legacy ARC700 processors (first generation of MMU enabled ARC cores) has VIPT cached which could be configured such that they could alias. I added the VIPT aliasing support, with all the cache

[PATCH] ARC: mm: retire support for aliasing VIPT D$

2023-08-13 Thread Vineet Gupta
maintenance burden of that unneeded code. This also helps streamline support for new features such as generic folio work. Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 5 -- arch/arc/include/asm/cacheflush.h | 43 -- arch/arc/mm/cache.c | 125

[PATCH] ARC: -Wmissing-prototype warning fixes

2023-08-13 Thread Vineet Gupta
Anrd reported [1] new compiler warnings due to -Wmissing-protype. These are for non static functions mostly used in asm code hence not exported already. Fix this by adding the prototypes. [1] https://lore.kernel.org/lkml/20230810141947.1236730-1-a...@kernel.org Signed-off-by: Vineet Gupta

Re: [PATCH 16/17] [RFC] arch: turn -Wmissing-prototypes off conditionally

2023-08-11 Thread Vineet Gupta
On 8/10/23 19:33, Guo Ren wrote: Thx, Arnd, I will clean them up for the csky part. Likewise, I'll clean up ARC errors this weekend ! It seems most of therm are in the category you mentioned. Non static but only used by asm code. Thx, -Vineet __

Re: [PATCH 13/21] arc: dma-mapping: skip invalidating before bidirectional DMA

2023-04-01 Thread Vineet Gupta
iewed-by: Vineet Gupta Shahab can you give this a spin on hsdk - run glibc testsuite over ssh and make sure nothing strange happens. Thx, -Vineet ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/lis

Re: [PATCH v2 06/30] arc: Implement the new page table range API

2023-02-27 Thread Vineet Gupta
were cleaned). Enhance the internal flush routines to take the number of pages to flush. Signed-off-by: Matthew Wilcox (Oracle) Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org --- arch/arc/include/asm/cacheflush.h | 7 +- arch/arc/include/asm/pgtable-bits-arcv2.h | 20 +++-- arc

Re: How many colours does the ARC cache have?

2023-02-15 Thread Vineet Gupta
On 2/10/23 09:06, Matthew Wilcox wrote: I see a discrepancy here ... arch/arc/include/asm/shmparam.h: /* Handle upto 2 cache bins */ #define SHMLBA (2 * PAGE_SIZE) arch/arc/include/asm/cacheflush.h: #define CACHE_COLORS_NUM4 The initial aliasing dcache support assumed 2 colors but wa

Pavel steping up for ARC glibc maintenance

2023-01-30 Thread Vineet Gupta
Hi Carlos, I'd like to introduce Pavel who intends to step up to maintain ARC glibc port and do periodic wiki updates and such. I've pointed him to links [1] and [2]. To begin with can he be granted wiki edit access and subsequently also approve his write access to glibc sourceware repo. Th

Re: [PATCH] bit_spinlock: Include

2023-01-09 Thread Vineet Gupta
On 1/8/23 11:04, Christophe JAILLET wrote: In an attempt to simplify some includes in , it appeared, when compiling fs/ecryptfs/dentry.c, that was relying on other includes to get the definition of cpu_relax(). (see [1]) It broke on arc. It its just ARC that broke, maybe we can do something

Re: [PATCH v3 2/2] ARC: update definitions in elf/elf.h

2022-11-29 Thread Vineet Gupta
On 11/27/22 09:38, Shahab Vahedi via Libc-alpha wrote: While porting ARCv2 to elfutils [1], it was brought up that the necessary changes to the project's libelf/elf.h must come from glibc, because they sync it from glibc [2]. Therefore, this patch is to update ARC entries in elf/elf.h. The majo

Re: [PATCH v3 1/2] scripts: Add "|" operator support to glibcpp's parsing

2022-11-29 Thread Vineet Gupta
On 11/27/22 10:21, Florian Weimer via Libc-alpha wrote: * Shahab Vahedi: From the tests point of view, this is a necessary step for another patch [1] and allows parsing macros such as "#define A | B". Without it, a few tests [2] choke when the other patch [1] is applied: /src/glibc/scripts/.

Re: [PATCH v2] ARC: update definitions in elf/elf.h

2022-11-22 Thread Vineet Gupta
On 11/21/22 06:30, Adhemerval Zanella Netto wrote: On 21/11/22 10:06, Shahab Vahedi via Libc-alpha wrote: While porting ARCv2 to elfutils [1], it was brought up that the necessary changes to the project's libelf/elf.h must come from glibc, because they sync it from glibc [2]. Therefore, this

Re: [PATCH] ARC: update definitions in elf/elf.h

2022-11-18 Thread Vineet Gupta
On 11/18/22 05:15, Shahab Vahedi wrote: While porting ARCv2 to elfutils [1], it was brought up that the necessary changes to the project's libelf/elf.h must come from glibc, because they sync it from glibc [2]. Therefore, this patch is to update ARC entries in elf/elf.h. The majority of the u

[GIT PULL] ARC updates for 6.1

2022-10-25 Thread Vineet Gupta
Hi Linus, Please pull some fixes for ARC. Thx, -Vineet -> The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780:   Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) are available in the Git repository at:   git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc

Re: [PATCH] ARC: mm: fix leakage of memory allocated for PTE

2022-10-18 Thread Vineet Gupta
or just oom. Fixes: d9820ff76f95 ("ARC: mm: switch pgtable_t back to struct page *") Signed-off-by: Pavel Kozlov Cc: Vineet Gupta Cc: Mike Rapoport Cc: # 4.15.x You meant 5.15.x Added to for-curr. Thx, -Vineet --- arch/arc/include/asm/pgtable-levels.h | 2 +- 1 file changed

Re: [PATCH] arc: update config files

2022-10-18 Thread Vineet Gupta
On 9/29/22 03:14, Lukas Bulwahn wrote: Clean up config files by: - removing configs that were deleted in the past - removing configs not in tree and without recently pending patches - adding new configs that are replacements for old configs in the file For some detailed information,

Re: [PATCH v3 4/4] arc: Use generic dump_stack_print_cmdline() implementation

2022-10-09 Thread Vineet Gupta
On 8/8/22 06:09, Helge Deller wrote: The process program name and command line is now shown in generic code in dump_stack_print_info(), so drop the arc-specific implementation. Signed-off-by: Helge Deller But that info printing was added back in 2018 by e36df28f532f882. I don't think arc is u

Re: [PATCH v2] arc: iounmap() arg is volatile

2022-10-09 Thread Vineet Gupta
/drivers/video/fbdev/riva/fbdev.c:2067:42: error: passing argument 1 of 'iounmap' discards 'volatile' qualifier from pointer target type [-Werror=discarded-qualifiers] 2067 | iounmap(default_par->riva.PRAMIN); Fixes: 1162b0701b14b ("ARC: I/O and DMA Ma

Re: [linux-next:master] BUILD REGRESSION 2a2aa3f05338270aecbe2492fda910d6c17e0102

2022-07-06 Thread Vineet Gupta
On 7/5/22 23:49, Dan Carpenter wrote: [ trimmed massive CC list (see below) ] What's going on with all the arch/arc build breakage on linux-next? regards, dan carpenter To: kernel test robot Cc: Andrew Morton , virtualizat...@lists.linux-foundation.org, usbb2k-api-...@nongn

Re: [PATCH RESEND v9 1/5] arc: dts: Harmonize EHCI/OHCI DT nodes name

2022-06-24 Thread Vineet Gupta
On 6/24/22 07:16, Serge Semin wrote: In accordance with the Generic EHCI/OHCI bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp: "^usb(@.*)?" . Make sure the "generic-ehci" and "g

Re: [PATCH] ARC:mm:Fix syntax errors in comments

2022-06-23 Thread Vineet Gupta
On 6/23/22 00:56, Bagas Sanjaya wrote: In an ideal world yes. But sometimes maintainer complain to break whitespacxe fixes and such into independent fix. Also as someone said later in the thread, for somebody just getting into kernel and figuring out patch submission etc this could be a perfec

Re: [PATCH] ARC:kernel:Fix typos in comments

2022-06-22 Thread Vineet Gupta
On 6/22/22 00:52, Jilin Yuan wrote: Delete the redundant word 'call'. Signed-off-by: Jilin Yuan --- arch/arc/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/kernel/smp.c b/arch/arc/kernel/smp.c index d947473f1e6d..6c22a53711e9 100644 --- a/arch/ar

Re: [PATCH] ARC:mm:Fix syntax errors in comments

2022-06-22 Thread Vineet Gupta
On 6/22/22 01:30, Bagas Sanjaya wrote: - * If the U-mapping is not congruent to to K-mapping, former needs flushing. + * If the U-mapping is not congruent to K-mapping, former needs flushing. */ void flush_dcache_page(struct page *page) { The patch is OK, but its subject is wrong. Ri

Re: [PATCH] ARC: Fix comment typo

2022-06-10 Thread Vineet Gupta
On 5/7/22 20:02, Jason Wang wrote: Remove one of the repeated 'call' in comment line 396. Signed-off-by: Jason Wang Thx for the fix. Added to for-curr -Vineet ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infrad

Re: [PATCH] ARC: Fix syntax errors in comments

2022-06-10 Thread Vineet Gupta
On 6/3/22 06:01, Xiang wangx wrote: Delete the redundant word 'to'. Delete the redundant word 'since'. Signed-off-by: Xiang wangx Thx for the fix. Added to for-curr -Vineet ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http

Re: [PATCH 1/2] ARC: bitops: Change __fls to return unsigned long

2022-05-25 Thread Vineet Gupta
Hi, On 5/25/22 07:48, Amadeusz Sławiński wrote: As per asm-generic definition and other architectures __fls should return unsigned long. No functional change is expected as return value should fit in unsigned long. Signed-off-by: Amadeusz Sławiński Applied to for-curr. Thx, -Vineet ___

Re: [PATCH v3] mm: Avoid unnecessary page fault retires on shared memory types

2022-05-25 Thread Vineet Gupta
ult to be accounted, unlike VM_FAULT_RETRY. I explicitly didn't touch hmm_vma_fault() and break_ksm() because they do not handle VM_FAULT_RETRY even with existing code, so I'm literally keeping them as-is. Signed-off-by: Peter Xu --- v3: - Rebase to akpm/mm-unstable - Copy arch maintainers ---

[GIT PULL] ARC changes for 5.19-rc1

2022-05-25 Thread Vineet Gupta
Hi Linus, Please pull. Thx, -Vineet ---> The following changes since commit af2d861d4cd2a4da5137f795ee3509e6f944a25b:   Linux 5.18-rc4 (2022-04-24 14:51:22 -0700) are available in the Git repository at:   git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/ tags/arc-5.19

Re: [vgupta-arc:for-next 3/4] arch/arc/kernel/disasm.c:494:23: error: 'struct pt_regs' has no member named 'gp'; did you mean 'fp'?

2022-04-26 Thread Vineet Gupta
On 4/26/22 00:31, Sergey Matyukevich wrote: I have just sent a fixup for this snafu: https://lore.kernel.org/linux-snps-arc/20220426072447.125975-1-geoma...@gmail.com/T/#u IIUC, you have not yet sent a pull-request for next release. So probably it makes sense to squash this commit with b08a66fb6

[GIT PULL] ARC fixes for 5.18-rc4

2022-04-23 Thread Vineet Gupta
Hi Linus, Please pull. Thx, -Vineet -> The following changes since commit ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e:   Linux 5.18-rc2 (2022-04-10 14:21:36 -1000) are available in the Git repository at:   git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/ tags/arc-5.

Re: [PATCH 1/2] ARC: atomic: cleanup atomic-llsc definitions

2022-04-18 Thread Vineet Gupta
On 2/22/22 06:05, Sergey Matyukevich wrote: From: Sergey Matyukevich Remove redundant c_op macro argument. Only asm_op is needed to define atomic operations using llock/scond. Signed-off-by: Sergey Matyukevich Applied. Thx, -Vineet ___ linux-sn

Re: [PATCH] arc: drop definitions of pgd_index() and pgd_offset{, _k}() entirely

2022-04-18 Thread Vineet Gupta
On 3/28/22 01:15, Rolf Eike Beer wrote: They were in and have been removed from there in 974b9b2c68f ("mm: consolidate pte_index() and pte_offset_*() definitions") in favor of the generic version. But that missed that the same definitons also existed in , where they were (inadvertently?) intr

  1   2   3   4   5   6   7   8   9   10   >