Re: [PATCH] ARC: [axs10x] cap ethernet phy to 100 Mbit/sec

2015-12-07 Thread Vineet Gupta
rod...@synopsys.com><mailto:abrod...@synopsys.com> Cc: Vineet Gupta <vgu...@synopsys.com><mailto:vgu...@synopsys.com> LGTM - added to for-curr for 4.4 ! Thx, -Vineet ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lis

[PATCH] sched/fair: [cosmetic] match ifdef/endif CONFIG_NO_HZ_COMMON

2015-12-08 Thread Vineet Gupta
Spotted this when debuggign something completely different and trying to unravel CONFIG_NO_HZ{,_COMMON,,_IDLE} It seems we can clean up the legacy CONFIG_NO_HZ option, but first remove it's proliferation. Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- kernel/sched/fair.c | 2 +-

[PATCH 10/17] ARC: dw2 unwind: CIE parsing/validation done only once at startup

2015-12-03 Thread Vineet Gupta
There is only 1 CIE per unwind table and applicable to all FDEs, so validate it only once. No need to do validate it when prcoessing the FDE itself. Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/kernel/unwind.c | 336 +--

[PATCH 13/17] ARC: dw2 unwind: Assume all regs to be unsigned long

2015-12-03 Thread Vineet Gupta
Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/include/asm/unwind.h | 3 +- arch/arc/kernel/unwind.c | 74 +++ 2 files changed, 6 insertions(+), 71 deletions(-) diff --git a/arch/arc/include/asm/unwind.h b/arch/arc/inclu

Re: [PATCH] ARC: [axs10x] enable DW DMA controller

2015-12-05 Thread Vineet Gupta
elson Pereira <npere...@synopsys.com> > Cc: Vineet Gupta <vgu...@synopsys.com> > Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> > --- > arch/arc/boot/dts/axs10x_mb.dtsi | 16 > arch/arc/configs/axs101_defconfig | 5 + &g

[PATCH 0/3] ARC perf interrpt fixes

2015-12-11 Thread Vineet Gupta
Hi Thomas, Marc, Peter Fixed a bunch of perf interrupt issues in ARC port. Apologies for extraneous CC. I think I'm doing the right thing here, and things start to work after these patches, but still running by domain experts to keep them in loop :-) Thx, -Vineet Vineet Gupta (3): ARCv2: intc

[PATCH 1/3] ARCv2: intc: Fix random perf irq disabling in SMP setup

2015-12-11 Thread Vineet Gupta
arc Zyngier <marc.zyng...@arm.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Peter Zijlstra <pet...@infradead.org> Cc: Alexey Brodkin <abrod...@synopsys.com> Cc: sta...@vger.kernel.org #4.2+ Cc: linux-ker...@vger.kernel.org Signed-off-by: Vineet Gupta <vgu...@synopsys.

Re: percpu irq APIs and perf

2015-12-11 Thread Vineet Gupta
Hi Marc, On Friday 11 December 2015 04:53 PM, Marc Zyngier wrote: > On Fri, 11 Dec 2015 05:26:02 + >> I think we can make percpu irq API a bit easier to use. >> >> (1) First thing which request_percpu_irq() does is check for >> irq_settings_is_per_cpu_devid(). Thus irq_set_percpu_devid() can

percpu irq APIs and perf

2015-12-10 Thread Vineet Gupta
Hi Marc / Daniel / Jason, I had a couple of questions about percpu irq API, hopefully you can help answer. On ARM, how do u handle requesting per cpu IRQs - specifically usage of request_percpu_irq() / enable_percpu_irq() API. It seems, for using them, we obviously need to explicitly set irq as

Re: + arc-convert-to-dma_map_ops.patch added to -mm tree

2015-12-16 Thread Vineet Gupta
On Tuesday 24 November 2015 01:20 PM, h...@lst.de wrote: > Hi Vineet, > > the original version went through the buildbot, which succeeded. It seems > like the official buildbot does not support arc, and might benefit from > helping to set up an arc environment. However in the meantime Guenther

[GIT PULL] ARC fixes for 4.4-rc6

2015-12-18 Thread Vineet Gupta
kin (1): ARC: [axs10x] cap ethernet phy to 100 Mbit/sec Noam Camus (1): ARC: rename smp operation init_irq_cpu() to init_per_cpu() Vineet Gupta (8): ARCv2: intc: Fix random perf irq disabling in SMP setup ARC: intc: No need to clear IRQ_NOAUTOEN ARCv2: perf: Ensure perf int

[PATCH 0/2] ARC dwarf unwinder fixes

2015-12-16 Thread Vineet Gupta
Wreckage of removal of slowpath linear search Vineet Gupta (2): ARC: dw2 unwind: Reinstante unwinding out of modules ARC: dw2 unwind: Ignore CIE version !=1 gracefully instead of bailing arch/arc/include/asm/unwind.h | 4 arch/arc/kernel/setup.c | 1 - arch/arc/kernel/unwind.c

Re: percpu irq APIs and perf

2015-12-10 Thread Vineet Gupta
Hi Marc, On Thursday 10 December 2015 03:26 PM, Marc Zyngier wrote: > Hi Vinnet, > > On 10/12/15 09:25, Vineet Gupta wrote: >> Hi Marc / Daniel / Jason, >> >> I had a couple of questions about percpu irq API, hopefully you can help >> answer. >> >> On

Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver

2015-12-28 Thread Vineet Gupta
On Monday 28 December 2015 04:25 PM, Daniel Lezcano wrote: > On 12/28/2015 11:35 AM, Vineet Gupta wrote: >> On Monday 28 December 2015 02:30 PM, Daniel Lezcano wrote: >>>>> reproduce: >>>>> # save the attached .config to linux build tree >>>

Re: [PATCH v5 09/20] ARC: IRQ: use device tree to get timer device configuration

2015-12-28 Thread Vineet Gupta
Note that lately called of_clk_init() is moved before we call > clocksource_probe() since at that time device from DT > need a "provider" (clocks) which will be available only after > we call to of_clk_init(). > > Signed-off-by: Noam Camus <no...@ezchip.com> >

[PATCH] ARC: Fix linking errors with CONFIG_MODULE + CONFIG_CC_OPTIMIZE_FOR_SIZE

2015-12-20 Thread Vineet Gupta
undefined! | | Workaround that by inhibiting millicode thunks for loadable modules Fixes STAR 9000641864: ("Linux built with optimizations for size emits errors for modules") Reported-by: Anton Kolesov <akole...@synosys.com> Cc: Michal Marek <mma...@suse.cz> Cc:

Re: [PATCH v4 05/19] irqchip: add nps Internal and external irqchips

2015-12-30 Thread Vineet Gupta
On Friday 18 December 2015 10:01 PM, Marc Zyngier wrote: > On 18/12/15 14:29, Noam Camus wrote: >>> From: Marc Zyngier [mailto:marc.zyng...@arm.com] >>> Sent: Friday, December 18, 2015 1:21 PM >> I need this for my per CPU irqs such timer and IPI which do not come from some external

Re: [PATCH] arc: Removed local initramfs source file from axs101 configuration.

2016-01-10 Thread Vineet Gupta
On Saturday 09 January 2016 05:55 AM, Carlos Palminha wrote: > Hi Alexey, > > Probably my e-mail comments before the patch mislead you... > If you download the kernel source and try to compile it, it won't work > because of the INITRAMFS pointing to a non-existing directory. (check log > below)

Re: for-next

2016-01-12 Thread Vineet Gupta
On Friday 01 January 2016 04:14 AM, Noam Camus wrote: > > Hi Vineet, > > > Few things I encountered lately: > > 1. Too early invisible panic due to link base not matching DT. > You need to fix the DT which u already did. How do you propose to fix this anyways - show me a patch ? > 1.

Re: [PATCH v4 03/44] arc: dma-mapping: Use unsigned long for dma_attrs

2016-06-10 Thread Vineet Gupta
On Friday 10 June 2016 03:41 PM, Krzysztof Kozlowski wrote: > Split out subsystem specific changes for easier reviews. This will be > squashed with main commit. > > Signed-off-by: Krzysztof Kozlowski <k.kozlow...@samsung.com> Acked-by: Vineet Gupta &l

[GIT PULL] ARC fixes for 4.7-rc3

2016-06-08 Thread Vineet Gupta
ey Brodkin (1): arc: Get rid of root core-frequency property Andrea Gelmini (1): Fix typos Vineet Gupta (5): ARC: [intc-compact] simplify code for 2 priority levels ARC: don't enable DISCONTIGMEM unconditionally Revert "ARCv2: spinlock/rwlock/atomics: reduce 1 instructi

[PATCH-REBASED 1/2] tools/perf: Handle EOPNOTSUPP for sampling events

2016-05-30 Thread Vineet Gupta
This allows (with next change to perf core) for calling out in userspace the exact reason for perf record failing when PMU doesn't support overflow interrupts Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- tools/perf/util/evsel.c | 7 +++ 1 file changed, 7 insertions(+) diff

Re: [PATCH] ldso: Force disable -mlong-calls when compiling ldso for ARC

2016-05-27 Thread Vineet Gupta
x r23: 0x000d08a5 > r24: 0x r25: 0x80808080 > > Segmentation fault > >8 > > Solution to this issue is simple we make sure dynamic > loader never gets compiled with "-mlong-calls" by forcing > "-mno-long-calls&qu

Re: Fwd: [PATCH 2/2 v2] ARC: [axs10x] Specify reserved memory for frame buffer

2016-06-02 Thread Vineet Gupta
On Tuesday 31 May 2016 04:59 PM, Alexey Brodkin wrote: > Hi Vineet! > > On Thu, 2016-05-26 at 09:29 +0000, Vineet Gupta wrote: >> On Thursday 26 May 2016 02:38 PM, Alexey Brodkin wrote: >>> 1) IOC aperture is set to cover 0x8000_-0xA000_ >>> 2) FB area i

Re: [PATCH 1/1] net: nps_enet: Disable interrupts before napi reschedule

2016-05-26 Thread Vineet Gupta
Hi Elad, Noam, On Thursday 26 May 2016 11:23 PM, Alexey Brodkin wrote: > > We just bumped into the same problem (data exchange hangs on the very first > "ping") > with released Linux v4.6 and linux-next on our nSIM OSCI virtual platform. > > I believe it was commit 05c00d82f4d1 ("net:

Re: Unaligned flush_dcache_range in axs101.c

2016-05-26 Thread Vineet Gupta
On Thursday 26 May 2016 05:09 PM, Alexey Brodkin wrote: > In the code you were referring what I wanted to modify reset vector of the > slave core. > And while we were living without IOC it was all OK. My code above wrote-back > (or as we used to call it within ARC "flushed") L1 data cache with

Re: [PATCH 0066/1529] Fix typo

2016-05-26 Thread Vineet Gupta
On Saturday 21 May 2016 05:15 PM, Andrea Gelmini wrote: > Signed-off-by: Andrea Gelmini Thx for these fixes Andrea. Do you mind if I squash the pile for ARC (66 thru 80) into a single patch. -Vineet ___ linux-snps-arc

Re: cross compilers [was build failure of sorts]

2016-06-21 Thread Vineet Gupta
On Tuesday 21 June 2016 01:13 PM, Peter Zijlstra wrote: > On Tue, Jun 21, 2016 at 05:29:28AM +0000, Vineet Gupta wrote: >> > On Saturday 18 June 2016 03:47 PM, Peter Zijlstra wrote: >>> > > As you can see, arc doesn't even build upstream binutils :/ >>> &

Re: cross compilers [was build failure of sorts]

2016-06-21 Thread Vineet Gupta
On Tuesday 21 June 2016 03:15 PM, Peter Zijlstra wrote: > On Tue, Jun 21, 2016 at 09:28:56AM +0000, Vineet Gupta wrote: >> On Tuesday 21 June 2016 01:13 PM, Peter Zijlstra wrote: >>> On Tue, Jun 21, 2016 at 05:29:28AM +, Vineet Gupta wrote: >>>>> On Satu

Re: Build failures in -next due to 'locking/atomic, arch/arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()'

2016-06-22 Thread Vineet Gupta
On Friday 17 June 2016 08:11 PM, Peter Zijlstra wrote: > On Fri, Jun 17, 2016 at 04:39:42PM +0200, Peter Zijlstra wrote: >> On Fri, Jun 17, 2016 at 07:36:56AM -0700, Guenter Roeck wrote: >>> Hi Peter, >>> >>> I am seeing build failures in -next when trying to build arc / arcv2 >>> targets. >>>

Re: [PATCH V2 61/63] clocksource/drivers/arc: Convert init function to return error

2016-06-17 Thread Vineet Gupta
On Thursday 16 June 2016 11:27 PM, Daniel Lezcano wrote: > The init functions do not return any error. They behave as the following: > > - panic, thus leading to a kernel crash while another timer may work and >make the system boot up correctly > > or > > - print an error and let

Re: Build failures in -next due to 'locking/atomic, arch/arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()'

2016-06-17 Thread Vineet Gupta
On Friday 17 June 2016 06:04 PM, Ingo Molnar wrote: >> I've misplaced my arc compiler, but does this make it go again? > There's no arc compiler on korg's cross-building directory. Yeah, I'd requested that a few times... However we do have ARC kernels building at atleast 2 places 1. Guenther's

Re: cross compilers [was build failure of sorts]

2016-06-20 Thread Vineet Gupta
On Saturday 18 June 2016 03:47 PM, Peter Zijlstra wrote: > As you can see, arc doesn't even build upstream binutils :/ > (binutils-2_26-branch as of today). Hmm - we are still in fight w.r.t. upstreaming gcc fully (ARCv2 gcc support) although ARCompact has been there for some time. binutils

Re: [PATCH] devpts: remove DEVPTS_MULTIPLE_INSTANCES from all configs

2016-06-20 Thread Vineet Gupta
On Monday 20 June 2016 02:44 PM, Alexandru Moise wrote: > As each mount of devpts is now an independent filesystem, > the DEVPTS_MULTIPLE_INSTANCES config option no longer exists. > So remove it. > > Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> For arch/

Re: Build failures in -next due to 'locking/atomic, arch/arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()'

2016-06-17 Thread Vineet Gupta
On Friday 17 June 2016 04:52 PM, Guenter Roeck wrote: >>> Crud, I messed up the rebase against the backoff reverts. Lemme go do >>> fixups. >> >> I've misplaced my arc compiler, but does this make it go again? >> > Looks like it, yes. Build still fails for another reason, but this problem is >

Re: [PATCH V3] clocksource/drivers/arc: Convert init function to return error

2016-06-17 Thread Vineet Gupta
thus this change just return back an error or success in the init > function. > > Signed-off-by: Daniel Lezcano <daniel.lezc...@linaro.org> Acked-by: Vineet Gupta <vgu...@synopsys.com> P.S. It would be nice to get cover letter for a series in addition to relevant patches for f

Re: Build failures in -next due to 'locking/atomic, arch/arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()'

2016-06-17 Thread Vineet Gupta
On Friday 17 June 2016 05:22 PM, Peter Zijlstra wrote: > Question; why does atomic_read() have a full memory clobber on arc? > > Will thinks its because you don't use a memory constraint for *v. So that is only for CONFIG_ARC_PLAT_EZNPS and very liekly not needed. Although NPS has some design

Re: [PATCH V3] clocksource/drivers/arc: Convert init function to return error

2016-06-23 Thread Vineet Gupta
On Friday 17 June 2016 03:39 PM, Daniel Lezcano wrote: > The init functions do not return any error. They behave as the following: > > - panic, thus leading to a kernel crash while another timer may work and >make the system boot up correctly > > or > > - print an error and let

Re: [PATCH V3] clocksource/drivers/arc: Convert init function to return error

2016-06-24 Thread Vineet Gupta
On Friday 24 June 2016 12:11 PM, Daniel Lezcano wrote: > Do you agree to move the driver to drivers/clocksource, so we can add the > COMPILE_TEST option ? Sure, this will require some common header adjustments etc. After the current fire-drill I'm pulled into ATM, I'll work on it next week'ish !

Re: [PATCH] arc: warn only once if DW2_UNWIND is disabled

2016-06-27 Thread Vineet Gupta
On Thursday 23 June 2016 01:30 PM, Alexey Brodkin wrote: > If CONFIG_ARC_DW2_UNWIND is disabled every time arc_unwind_core() > gets called following message gets printed in debug console: > ->8--- > CONFIG_ARC_DW2_UNWIND needs to be enabled >

Re: Click source driver

2016-06-28 Thread Vineet Gupta
On Saturday 11 June 2016 01:12 AM, Noam Camus wrote: > > Hi Vineet, > > I am updating my clocksource driver to include support of timer0 for > clockevents. > > My current version uses arc-timer driver for clockevents. > > I noticed that arc-timer driver appears twice in DTS file so first one will

Re: [PATCH 6/9] ARC: clocksource: DT based probe

2016-02-08 Thread Vineet Gupta
On Monday 08 February 2016 05:40 PM, Daniel Lezcano wrote: > On 02/02/2016 11:58 AM, Vineet Gupta wrote: >> - Remove explicit clocksource setup and let it be done by OF framework >>by defining CLOCKSOURCE_OF_DECLARE() for various timers >> >> - This a

[PATCH 0/2] Enable s390/arc/sparc to use generic thp deposit/withdraw

2016-02-11 Thread Vineet Gupta
Hi, This came out my debugging THP on ARC. The generic deposit/withdraw routines can be easily adapted to work with pgtable_t != struct page *. Build/Run tested on ARC only. Thx, -Vineet Vineet Gupta (2): mm,thp: refactor generic deposit/withdraw routines for wider usage ARC: mm: THP: use

[PATCH 2/2] ARC: mm: THP: use generic THP deposit/withdraw

2016-02-11 Thread Vineet Gupta
Generic code can now cope with pgtable_t != struct page * Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/include/asm/hugepage.h | 8 arch/arc/mm/tlb.c | 37 - 2 files changed, 45 deletions(-) diff --git a/ar

Re: [PATCH 1/2] mm,thp: refactor generic deposit/withdraw routines for wider usage

2016-02-11 Thread Vineet Gupta
On Thursday 11 February 2016 03:52 PM, Martin Schwidefsky wrote: > On Thu, 11 Feb 2016 14:58:26 +0530 > Vineet Gupta <vineet.gup...@synopsys.com> wrote: > >> Generic pgtable_trans_huge_deposit()/pgtable_trans_huge_withdraw() >> assume pgtable_t to be struct page * which

[PATCH] mm,thp: khugepaged: call pte flush at the time of collapse

2016-02-09 Thread Vineet Gupta
...@redhat.com> Cc: Andrew Morton <a...@linux-foundation.org> Cc: <sta...@vger.kernel.org> #4.4 Cc: <linux-snps-arc@lists.infradead.org> Cc: linux-ker...@vger.kernel.org Cc: linux...@kvack.org Fixes: 12ebc1581ad11454 ("mm,thp: introduce flush_pmd_tlb_range") Signed-off-by: V

Re: [RFC] perf: fix building for ARCv1

2016-02-09 Thread Vineet Gupta
On Friday 05 February 2016 09:40 PM, a...@redhat.com wrote: > Em Fri, Feb 05, 2016 at 11:18:52AM +, Noam Camus escreveu: >> Well here for EZchip I also see the: >> undefined reference to `__sync_add_and_fetch_4' >> undefined reference to `__sync_sub_and_fetch_4' > > Yeah, because there is no:

Re: [PATCH] mm,thp: khugepaged: call pte flush at the time of collapse

2016-02-09 Thread Vineet Gupta
On Wednesday 10 February 2016 10:37 AM, Aneesh Kumar K.V wrote: > Vineet Gupta <vineet.gup...@synopsys.com> writes: > >> This showed up on ARC when running LMBench bw_mem tests as >> Overlapping TLB Machine Check Exception triggered due to STLB entry >> (2M page

Re: [PATCH 1/2] mm,thp: refactor generic deposit/withdraw routines for wider usage

2016-02-11 Thread Vineet Gupta
On Thursday 11 February 2016 04:50 PM, Martin Schwidefsky wrote: > On Thu, 11 Feb 2016 16:23:33 +0530 > Vineet Gupta <vineet.gup...@synopsys.com> wrote: > >> On Thursday 11 February 2016 03:52 PM, Martin Schwidefsky wrote: >>> On Thu, 11 Feb 2016 14:58:26 +053

[GIT PULL] ARC fixes for 4.5

2016-02-13 Thread Vineet Gupta
4.5 - Corner case of returning to delay slot from interrupt - Changing default interrupt prioiry level - Kconfig'ize support for super pages - Other minor fixes ---- Vineet Gupta (6): ARCv2: STAR 9000950267: Handle return from i

[PATCH 3/5] ARC: [intc] opencode arc_request_percpu_irq

2016-01-28 Thread Vineet Gupta
usage in perf has already bitten us once: see c6317bc7c5ab ("ARCv2: perf: Ensure perf intr gets enabled on all cores") where we ended up open coding it anyways Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/include/asm/irq.h | 3 --- arch/arc/kernel

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-03 Thread Vineet Gupta
Hi Rob, On Wednesday 03 February 2016 03:33 AM, Rob Herring wrote: > On Tue, Feb 02, 2016 at 04:28:52PM +0530, Vineet Gupta wrote: >> +Required properties: >> + >> +- compatible : should be "snps,arc-timer0" > > timer0 and timer1 are different h/w bl

Re: [RFC] perf: fix building for ARCv1

2016-02-03 Thread Vineet Gupta
+CC Noam On Wednesday 03 February 2016 09:50 PM, Alexey Brodkin wrote: >> I agree with the current solution to add -atomic to for arc700 builds. >> > Although making that default for arc700 tools will be better but that will >> > not fix >> > things before next release of tools etc. >> > >> >

Re: [PATCH v7 1/2] PCI support added to ARC

2016-02-02 Thread Vineet Gupta
On Monday 01 February 2016 11:37 PM, Joao Pinto wrote: > This patch adds PCI support to ARC and updates drivers/pci Makefile > enabling the ARC arch to use the generic PCI setup functions. > > Signed-off-by: Joao Pinto <jpi...@synopsys.com> Acked-by: Vineet Gupta <vgu...@

[PATCH 8/9] ARC: [plat-axs] Don't use arc_{get|set}_core_freq() for manipulating core clk

2016-02-02 Thread Vineet Gupta
n no longer use the top level "clock-frequency". This change reduces the number of users of ARC clk hack and paves way for removal. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> [vgupta: broken out of from bigger patch] Signed-off-by: Vineet Gupta <vgu...@synopsys

[PATCH 6/9] ARC: clocksource: DT based probe

2016-02-02 Thread Vineet Gupta
doesn't exist, TIMER1 cetainly will take over (as it is always present) Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/kernel/mcip.c | 4 +- arch/arc/kernel/setup.c | 3 -- arch/arc/kernel/t

[PATCH 0/9] ARC clockevent/clocksource modernization

2016-02-02 Thread Vineet Gupta
: clockevent: Prepare for DT based probe Vineet Gupta (4): ARC: [dts] Add clk feeding into timers to DTs ARC: [dts] Introduce Timer bindings ARC: clockevent: DT based probe ARC: clocksource: DT based probe .../devicetree/bindings/timer/snps,arc-timer0.txt | 23 +++ .../devicetree/bindings

[PATCH 9/9] ARC: RIP arc_{get|set}_core_freq() clk API

2016-02-02 Thread Vineet Gupta
From: Alexey Brodkin <abrod...@synopsys.com> There are no more users of this - so RIP! Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> [vgupta: update changelog] Signed-off-by: Vineet Gupta <vgu...@synopsys.com> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> -

Re: Interesting csd deadlock on ARC

2016-02-23 Thread Vineet Gupta
>> What I actually meant was is it OK for irq_work_queue_on() to be called >> locally >> (is this a sched bug/optimization(. Further if it is OK to be called, does >> it need >> to do behave more like irq_work_queue() i.e. call arch_irq_work_raise() or >> arch_send_call_function_single_ipi() is

[PATCH 5/5] ARC: SMP: No need for CONFIG_ARC_IPI_DBG

2016-02-23 Thread Vineet Gupta
This was more relevant during SMP bringup. The warning for bogus msg better be visible always. Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/Kconfig | 8 arch/arc/kernel/mcip.c | 9 + arch/arc/kernel/smp.c | 3 --- 3 files changed, 1 insertion(

[PATCH 1/5] ARCv2: SMP: Emulate IPI to self using software triggered interrupt

2016-02-23 Thread Vineet Gupta
pet...@infradead.org> Cc: <sta...@vger.kernel.org>[4.2] Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/include/asm/irqflags-arcv2.h | 11 +++ arch/arc/kernel/mcip.c| 15 +++ 2 files changed, 26 insertions(+) diff --git a/arch/arc/in

[PATCH 3/5] ARCv2: SMP: Push IPI_IRQ into IPI provider

2016-02-23 Thread Vineet Gupta
Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/include/asm/irq.h | 1 - arch/arc/kernel/mcip.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h index bc5103637326..49014f0ef36d 100644 --- a/ar

[PATCH 4/5] ARCv2: Elide sending new cross core intr if receiver didn't ack prev

2016-02-23 Thread Vineet Gupta
jor...@synopsys.com> Cc: Peter Zijlstra <pet...@infradead.org> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/arc/kernel/mcip.c | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/arch/arc/kernel/mcip.c b/arch/arc/kernel/mcip.c

[PATCH 0/5] ARC IPI related fix

2016-02-23 Thread Vineet Gupta
Hi, This cam eout of debugging a csd deadlock on ARC. The fix itself is 1/5, rest of patches are additional improvements, optimizations while we are at it. Thx, -Vineet Vineet Gupta (5): ARCv2: SMP: Emulate IPI to self using software triggered interrupt ARC: [intc-compact] Remove IPI setup

[GIT PULL] ARC fixes for 4.5-rc6

2016-02-23 Thread Vineet Gupta
ncy on INITRAMFS_SOURCE Vineet Gupta (8): ARC: Assume multiplier is always present ARCv2: boot print Low Latency Memory ARCv2: boot report CCMs (Closely Coupled Memories) ARCv2: SMP: Emulate IPI to self using software triggered interrupt ARC: [intc-compact] Remove IPI se

Re: Interesting csd deadlock on ARC

2016-02-23 Thread Vineet Gupta
On Tuesday 23 February 2016 04:28 PM, Noam Camus wrote: >> From: Peter Zijlstra [mailto:pet...@infradead.org] >> Sent: Tuesday, February 23, 2016 12:40 PM > >> The only requirement for irq_work is that it runs after the NMI completes >> and runs from regular IRQ context. >There are no strict

Re: [PATCH 2/4 RESEND] ARC: axs10x: Update defconfigs so that audio is enabled

2016-02-23 Thread Vineet Gupta
On Tuesday 23 February 2016 07:22 PM, Jose Abreu wrote: > The defconfigs for the AXS boards were updated so that > ALSA SoC is enabled and also the audio for the ADV7511 > HDMI transmitter. > > Signed-off-by: Jose Abreu > --- > arch/arc/configs/axs101_defconfig | 3 +++

[PATCH] ARC Build system tweak

2016-02-26 Thread Vineet Gupta
opencoded the pre-processor check. Thx, -Vineet Vineet Gupta (1): ARC: build: Better way to detect ISA compatible toolchain arch/arc/Makefile | 14 ++ arch/arc/include/asm/arcregs.h | 6 -- 2 files changed, 14 insertions(+), 6 deletions(-) -- 2.5.0

Re: [PATCH 4/5] ARCv2: Elide sending new cross core intr if receiver didn't ack prev

2016-02-26 Thread Vineet Gupta
On Tuesday 23 February 2016 02:41 PM, Vineet Gupta wrote: > ARConnect/MCIP IPI sending has a retry-wait loop in case caller had > not seen a previous such interrupt. Turns out that it is not needed at > all. Linux cross core calling allows coalescing multiple IPIs to same > receiver

Re: Interesting csd deadlock on ARC

2016-02-25 Thread Vineet Gupta
On Thursday 25 February 2016 08:00 PM, Russell King - ARM Linux wrote: > On Thu, Feb 25, 2016 at 07:53:39PM +0530, Vineet Gupta wrote: >> But then ARM CONFIG_SMP on UP hardware will still crap out because there >> is no way to send IPI to self. Same as the bug in above discussion. I

Re: Interesting csd deadlock on ARC

2016-02-22 Thread Vineet Gupta
On Friday 19 February 2016 12:17 PM, Vineet Gupta wrote: > Hi Peter, > > I've been debugging a csd_lock_wait() deadlock on SMP+PREEMPT ARC HS38x2 and > it > turned out to be lot more interesting than I'd hoped for. This is stock v4.4 > > Trouble starts with an IPI to s

Re: [PATCH] arc: get rid of DEVTMPFS dependency on INITRAMFS_SOURCE

2016-02-22 Thread Vineet Gupta
On Saturday 20 February 2016 06:35 PM, Alexey Brodkin wrote: > Even though DEVTMPFS is required when our pre-built initramfs > is used it is not the case in general. It is perfectly possible > to use initramfs with device nodes already populated or there > could be other usages, see discussion

Re: [PATCH 07/15] dmaengine: dw: revisit data_width property

2016-01-24 Thread Vineet Gupta
On Monday 25 January 2016 12:55 AM, Mans Rullgard wrote: > From: Andy Shevchenko > > There are several changes are done here: > > - Convert the property to be in bytes > >Much more convenient than keeping encoded value. > > - Use one value for all AHB

Re: [PATCH 2/2] arc770: move arc patches to taregt/linux/generic

2016-01-20 Thread Vineet Gupta
On Friday 15 January 2016 06:47 PM, Vineet Gupta wrote: >> I also don't think there's anything architecture >> > specific about requiring DEVTMPFS or not, so I'd say it doesn't make any >> > sense to select it from arch/arc/Kconfig. > You are indeed right - Kconfig is n

Interesting csd deadlock on ARC

2016-02-18 Thread Vineet Gupta
Hi Peter, I've been debugging a csd_lock_wait() deadlock on SMP+PREEMPT ARC HS38x2 and it turned out to be lot more interesting than I'd hoped for. This is stock v4.4 Trouble starts with an IPI to self which doesn't get delivered as the inter-core interrupt providing h/w is not capable of IPI to

Re: [PATCH] arc: use little endian accesses

2016-03-09 Thread Vineet Gupta
On Thursday 10 March 2016 10:35 AM, Vineet Gupta wrote: > +CC Noam > > On Wednesday 09 March 2016 10:51 PM, Lada Trimasova wrote: >> > Memory access primitives should use cpu_to_le16, cpu_to_le32, le16_to_cpu >> > and le32_to_cpu because it is not really guaranteed th

[PATCH 0/2] Big Endian build cleanups

2016-03-11 Thread Vineet Gupta
Vineet Gupta (2): ARC: [BE] Select correct CROSS_COMPILE prefix ARC: [*defconfig] No need to specify CONFIG_CROSS_COMPILE arch/arc/Makefile | 4 arch/arc/configs/axs101_defconfig | 1 - arch/arc/configs/axs103_defconfig | 1 - arch/arc/configs

[PATCH 1/2] ARC: [BE] Select correct CROSS_COMPILE prefix

2016-03-11 Thread Vineet Gupta
This allows CONFIG_CPU_BIG_ENDIAN=y to build correctly out of the box, w/o any other tweaks. Cc: Noam Camus <no...@ezchip.com> Cc: Alexey Brodkin <abrod...@synopsys.com> Cc: Anton Kolesov <akole...@synosys.com> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- arch/

Re: [PATCH] Remove the inclusion of pci-bridge.h and pci-dma-compat.h

2016-03-15 Thread Vineet Gupta
c/2016-March/000711.html > > This patch has the goal to fix the build problem. > > Signed-off-by: Joao Pinto <jpi...@synopsys.com> Acked-by: Vineet Gupta <vgu...@synopsys.com> @Bjorn since the ARC PCI support is still not upstream, and was slated to go via you, please pic

Re: [PATCH] mm: slub: Ensure that slab_unlock() is atomic

2016-03-09 Thread Vineet Gupta
On Wednesday 09 March 2016 04:01 PM, Peter Zijlstra wrote: > On Wed, Mar 09, 2016 at 11:13:49AM +0100, Peter Zijlstra wrote: >> --- >> Subject: bitops: Do not default to __clear_bit() for __clear_bit_unlock() >> >> __clear_bit_unlock() is a special little snowflake. While it carries the >>

Re: [PATCH] mm: slub: Ensure that slab_unlock() is atomic

2016-03-09 Thread Vineet Gupta
est_and_set_bit() and therefore should be 'somewhat' atomic. > > Therefore the generic implementation of __clear_bit_unlock() cannot use > the fully non-atomic __clear_bit() as a default. > > If an arch is able to do better; is must provide an implementation of > __clear_bit_unlock() itse

Re: [PATCH] arc: use little endian accesses

2016-03-11 Thread Vineet Gupta
On Friday 11 March 2016 12:54 AM, Arnd Bergmann wrote: > On Thursday 10 March 2016, Lada Trimasova wrote: >> Driver is 8250, kernel is built for BE arc, nsim option in model >> "nsim_isa_big_endian = 1". >> >> With current "readl" and "writel" implementation for ARC we read word from >> memory

Re: [PATCH v8 3/3] irqchip: add nps Internal and external irqchips

2016-04-11 Thread Vineet Gupta
On Monday 11 April 2016 06:41 PM, Marc Zyngier wrote: >> >> It doesn't mean I really approve of it. The default domain thing is >> >> going to end-up biting you in the rear. But hey, better having this >> >> supported upstream than leaving these patches up in the air... Hi Marc, Aside of this -

[PATCH v4 0/5] Modernize ARC clocksource/clockevent/intc drivers

2016-04-13 Thread Vineet Gupta
, -Vineet [1] http://lists.infradead.org/pipermail/linux-snps-arc/2016-March/000653.html Vineet Gupta (5): ARC: clockevent: DT based probe ARC: clocksource: DT based probe ARC: irq: export some IRQs again ARC: [intc-*] Do a domain lookup in primary handler for hwirq -> linux virq

Re: [PATCH v8 3/3] irqchip: add nps Internal and external irqchips

2016-04-11 Thread Vineet Gupta
On Monday 11 April 2016 06:23 PM, Marc Zyngier wrote: > On 03/04/16 19:14, Noam Camus wrote: >> From: Noam Camus >> >> Adding EZchip NPS400 support. >> Internal interrupts are handled by Multi Thread Manager (MTM) >> Once interrupt is serviced MTM is acked for deactivating the

[GIT PULL] ARC fixes for 4.6-rc4

2016-04-11 Thread Vineet Gupta
(1): ARC: Don't source drivers/pci/pcie/Kconfig ourselves Vineet Gupta (1): Revert "ARC: [plat-axs10x] add Ethernet PHY description in .dts" arch/arc/Kconfig | 1 - arch/arc/boot/dts/axs10x_mb.dtsi | 8 arch/arc/configs/axs103_defco

Re: [PATCH v2] ARC: axs10x - add Ethernet PHY description in .dts

2016-04-06 Thread Vineet Gupta
Hi, On Thursday 17 March 2016 03:11 PM, Alexey Brodkin wrote: > Following commit broke DW GMAC functionality on AXS10x boards: > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=e34d65696d2ef13dc32f2a162556c86c461ed763 > > That's what happens on eth0 up: >

Re: [LTP] [PATCH] rt_sigaction.h: adjust for ARC

2016-03-07 Thread Vineet Gupta
On Monday 07 March 2016 04:29 PM, Cyril Hrubis wrote: > We also check that we got EINVAL if the sigsetsize is wrong, which > cannot be done with the libc wrapper. > > And we several testscases for the libc wrapper as well. Two in > testcases/syscalls/sigaction/ directory and much more in >

[PATCH] sort the open posix tests before executing

2016-03-07 Thread Vineet Gupta
Helps do a simple diff of output logs ! Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- testcases/open_posix_testsuite/bin/run-posix-option-group-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/open_posix_testsuite/bin/run-posix-option-group-test

[PATCH v2 3/9] ARC: clockevent: switch to cpu notifier for clockevent setup

2016-03-08 Thread Vineet Gupta
notifier to set clockevent on non-boot CPUs. So explicit setup is done only on boot CPU (which will later be done by DT) Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Signed-off-by: Noam Camus <no...@ezchip.com> [vgupta: broken off from a bigger patch] Signed-off-by: Vinee

[PATCH v2 9/9] ARC: RIP arc_{get|set}_core_freq() clk API

2016-03-08 Thread Vineet Gupta
From: Alexey Brodkin <abrod...@synopsys.com> There are no more users of this - so RIP! Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> [vgupta: update changelog] Signed-off-by: Vineet Gupta <vgu...@synopsys.com> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> -

[PATCH v2 5/9] ARC: clockevent: DT based probe

2016-03-08 Thread Vineet Gupta
ano <daniel.lezc...@linaro.org> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- Changes v1 -> v2 - Rebased on 4.5-rc6 - Fix snafu in a adapting patch from EZChip tree v1: - http://lists.infradead.org/pipermail/linux-snps-arc/2016-February/000449.html Signed-off-by: Vi

[PATCH v2 4/9] ARC: clockevent: Prepare for DT based probe

2016-03-08 Thread Vineet Gupta
From: Noam Camus <no...@ezchip.com> - call clocksource_probe() - This in turns needs of_clk_init() to be called earlier Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Signed-off-by: Noam Camus <no...@ezchip.com> [vgupta: broken off from a bigger patch] Signed-off-by:

[PATCH v2 7/9] ARC: use fixed frequencies in arc_set_early_base_baud()

2016-03-08 Thread Vineet Gupta
mework later on. Cc: Christian Ruppert <christian.rupp...@alitech.com> Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- Changes v1 -> v2 - Base baud TB10x needs to be 166.66 not 166.67[Christian] v1: - http://li

[PATCH v2 8/9] ARC: [plat-axs] Don't use arc_{get|set}_core_freq() for manipulating core clk

2016-03-08 Thread Vineet Gupta
n no longer use the top level "clock-frequency". This change reduces the number of users of ARC clk hack and paves way for removal. Signed-off-by: Alexey Brodkin <abrod...@synopsys.com> [vgupta: broken out of from bigger patch] Signed-off-by: Vineet Gupta <vgu...@synopsys

[PATCH] mm: slub: Ensure that slab_unlock() is atomic

2016-03-08 Thread Vineet Gupta
e.com> Cc: Andrew Morton <a...@linux-foundation.org> Cc: Noam Camus <no...@ezchip.com> Cc: <sta...@vger.kernel.org> Cc: <linux...@kvack.org> Cc: <linux-ker...@vger.kernel.org> Cc: <linux-snps-arc@lists.infradead.org> Signed-off-by: Vineet Gupta <vgu...@synopsys.com&

Re: [PATCH] mm: slub: Ensure that slab_unlock() is atomic

2016-03-08 Thread Vineet Gupta
On Tuesday 08 March 2016 08:30 PM, Christoph Lameter wrote: > On Tue, 8 Mar 2016, Vineet Gupta wrote: > >> This in turn happened because slab_unlock() doesn't serialize properly >> (doesn't use atomic clear) with a concurrent running >> slab_lock()->test_and_set_bit

Re: [PATCH] ARC: build: Better way to detect ISA compatible toolchain

2016-03-04 Thread Vineet Gupta
Hi Michal, Can u please take a look at patch below ! Thx, -Vineet On Friday 26 February 2016 01:59 PM, Vineet Gupta wrote: > ARC architecture has 2 instruction sets: ARCompact/ARCv2. > While same gcc supports compiling for either (using appropriate toggles), > we can't use the same

Re: [PATCH] ARC: Fix misspellings in comments.

2016-03-03 Thread Vineet Gupta
On Wednesday 24 February 2016 04:55 AM, Adam Buchbinder wrote: > Signed-off-by: Adam Buchbinder Applied to for-next. Thx for the fixes Adam. -Vineet ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org

Re: Build error due to commit 458aa76d132dc ("mm/thp/migration: switch from flush_tlb_range to flush_pmd_tlb_range")

2016-03-28 Thread Vineet Gupta
On Tuesday 22 March 2016 04:50 PM, Guenter Roeck wrote: > On 03/21/2016 10:14 PM, Aneesh Kumar K.V wrote: >> Guenter Roeck writes: >> >>> [ text/plain ] >>> Hi, >>> >>> Your commit 458aa76d132dc1 ("mm/thp/migration: switch from flush_tlb_range >>> to flush_pmd_tlb_range")

  1   2   3   4   5   6   7   8   9   10   >