[PATCH v2 0/5] Perf tool fixes for ARC + uClibc

2015-01-10 Thread Vineet Gupta
if people think that is cleaner Please review and consider applying. W/o these perf doesn't build and/or work for ARC. [1] http://www.spinics.net/linux/lists/kernel/msg1897268.html Thx, -Vineet Alexey Brodkin (1): perf tools: [uclibc] fix statfs.f_type data type mismatch build error Vineet

[PATCH v2 2/5] perf tools: [uclibc] Elide strlcpy warning

2015-01-10 Thread Vineet Gupta
dst, const char *__restrict src, -8-- Signed-off-by: Vineet Gupta vgu...@synopsys.com --- tools/perf/util/cache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/cache.h b/tools/perf/util/cache.h index 5cf9e1b5989d..d04d770d90f6 100644

Re: [PATCH 5/5] perf tools: [uclibc] provide stub for pthread_attr_setaffinity_np

2015-01-10 Thread Vineet Gupta
Hi Namhyung, On Thursday 08 January 2015 01:28 PM, Namhyung Kim wrote: On Tue, Jan 06, 2015 at 07:22:15PM +0530, Vineet Gupta wrote: uClibc Linuxthreads.old doesnt support pthread_attr_setaffinity_np() call -8--- CC bench/futex-hash.o

[PATCH v2 5/5] perf tools: [uclibc] provide stub for pthread_attr_setaffinity_np

2015-01-10 Thread Vineet Gupta
--- Signed-off-by: Vineet Gupta vgu...@synopsys.com --- tools/perf/bench/futex.h | 13 + tools/perf/config/Makefile | 6 ++ tools/perf/config/feature-checks/Makefile | 4 tools/perf/config

Re: [PATCH v2 5/5] perf tools: [uclibc] provide stub for pthread_attr_setaffinity_np

2015-01-12 Thread Vineet Gupta
Hi Jiri, On Monday 12 January 2015 04:35 PM, Jiri Olsa wrote: On Sat, Jan 10, 2015 at 04:40:54PM +0530, Vineet Gupta wrote: SNIP [SNIP] test-timerfd.bin\ test-libdw-dwarf-unwind.bin \ @@ -47,6 +48,9 @@ test-all.bin: test-hello.bin: $(BUILD) +test

Re: [PATCH v2 3/5] perf tools: [uclibc] Avoid build splat for syscall numbers

2015-01-12 Thread Vineet Gupta
Hi Jiri, On Monday 12 January 2015 04:39 PM, Jiri Olsa wrote: On Sat, Jan 10, 2015 at 04:40:52PM +0530, Vineet Gupta wrote: This is due to duplicated unistd inclusion (via uClibc headers + kernel headers) Also seen on ARM uClibc based tools --- ARC build --8- CC

Re: [Patch v4] ARC: Dynamically determine BASE_BAUD from DeviceTree

2015-01-06 Thread Vineet Gupta
On Tuesday 06 January 2015 08:08 PM, Rob Herring wrote: On Tue, Jan 6, 2015 at 7:59 AM, Vineet Gupta vineet.gup...@synopsys.com wrote: 8250 earlycon is broken on multi-platform ARC because the UART clk value (BASE_BAUD) is fixed at build time. Note that it should only be broken if you rely

Re: [PATCH 0/5] Perf fixes for ARC + uClibc

2015-01-06 Thread Vineet Gupta
On Tuesday 06 January 2015 08:43 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 06, 2015 at 07:22:10PM +0530, Vineet Gupta escreveu: Hi, This series based off linux-next of 20150105 allows us to build/use perf for ARC with uClibc based userland. Do you have some ready made ARC VM image

Re: stable 3.14 backport request for ARC

2015-01-07 Thread Vineet Gupta
Hi Greg, On Tuesday 23 December 2014 01:38 PM, Vineet Gupta wrote: Hi, Can you please backport the following mainline commits to 3.14 stable. 2014-02-07 ec7ac6afd07b ARC: switch to generic ENTRY/END assembler annotations 2014-04-18 64ee9f32c33c ARC: Delete stale barrier.h Thx

Re: [PATCH 0/5] Perf fixes for ARC + uClibc

2015-01-06 Thread Vineet Gupta
On Tuesday 06 January 2015 08:43 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 06, 2015 at 07:22:10PM +0530, Vineet Gupta escreveu: Hi, This series based off linux-next of 20150105 allows us to build/use perf for ARC with uClibc based userland. Do you have some ready made ARC VM image

Re: Build regressions/improvements in v3.19-rc3

2015-01-07 Thread Vineet Gupta
Hi Geert, On Tuesday 06 January 2015 03:06 PM, Geert Uytterhoeven wrote: Below is the list of build error/warning regressions/improvements in v3.19-rc3[1] compared to v3.18[2]. Summarized: - build errors: +86/-19 - build warnings: +242/-127 JFYI, when comparing v3.19-rc3[1] to

Re: [PATCH v2 1/5] perf tools: [uclibc] fix statfs.f_type data type mismatch build error

2015-01-12 Thread Vineet Gupta
On Tuesday 13 January 2015 07:18 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Jan 12, 2015 at 12:05:22PM +0100, Jiri Olsa escreveu: On Sat, Jan 10, 2015 at 04:40:50PM +0530, Vineet Gupta wrote: From: Alexey Brodkin abrod...@synopsys.commailto:abrod...@synopsys.com ARC Linux uses

[PATCH v3 4/5] perf tools: [uclibc] don't rely on glibc malloc working for sz 0

2015-01-13 Thread Vineet Gupta
, sample_freq = 4000 }, ... ids = { offset = 104, size = 0 -- } } Suggested-by: Namhyung Kim namhy...@kernel.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- tools/perf/util/evsel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/evsel.c b/tools/perf

[PATCH v3 3/5] perf tools: [uclibc] Avoid build splat for syscall numbers

2015-01-13 Thread Vineet Gupta
: this is the location of the previous definition -8--- Signed-off-by: Vineet Gupta vgu...@synopsys.com --- tools/perf/bench/sched-pipe.c | 2 +- tools/perf/builtin-top.c | 1 - tools/perf/perf-sys.h | 1 - 3 files changed, 1 insertion(+), 3

[PATCH v3 2/5] perf tools: [uclibc] Elide strlcpy warning

2015-01-13 Thread Vineet Gupta
*__restrict dst, const char *__restrict src, -8-- Signed-off-by: Vineet Gupta vgu...@synopsys.com --- tools/perf/util/cache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/cache.h b/tools/perf/util/cache.h index 5cf9e1b5989d..d04d770d90f6 100644

[PATCH v3 5/5] perf tools: [uclibc] provide stub for pthread_attr_setaffinity_np

2015-01-13 Thread Vineet Gupta
--- Signed-off-by: Vineet Gupta vgu...@synopsys.com --- tools/perf/bench/futex.h | 13 + tools/perf/config/Makefile | 6 ++ tools/perf/config/feature-checks/Makefile | 4 tools/perf

[PATCH v3 1/5] perf tools: [uclibc] fix statfs.f_type data type mismatch build error

2015-01-13 Thread Vineet Gupta
/529 Signed-off-by: Vineet Gupta vgu...@synopsys.com --- tools/lib/api/fs/debugfs.c | 2 +- tools/lib/api/fs/fs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/api/fs/debugfs.c b/tools/lib/api/fs/debugfs.c index a74fba6d7743..93aa4cd2416f 100644 --- a/tools

[PATCH v3 0/5] Perf tool fixes for ARC + uClibc

2015-01-13 Thread Vineet Gupta
build error Vineet Gupta (4): perf tools: [uclibc] Elide strlcpy warning perf tools: [uclibc] Avoid build splat for syscall numbers perf tools: [uclibc] don't rely on glibc malloc working for sz 0 perf tools: [uclibc] provide stub for pthread_attr_setaffinity_np tools/lib/api/fs/debugfs.c

semantics of KSTK_ESP and friends

2015-02-11 Thread Vineet Gupta
Hi, Is KSTK_ESP supposed to return the kernel mode SP of a sleeping task or is it supposed to provide the user mode SP at the time of last kernel entry ? The 2 non arch users of the API expect the user mode SP semantics: * vm_is_stack_for_task() - to annotate /proc/pid/maps stack vma - which is

[GIT PULL] ARC fixes for 3.20-rc1

2015-02-16 Thread Vineet Gupta
): arc: Remove unused prepare_to_copy() Vineet Gupta (4): ARC: fix /proc/cpuinfo for offline cpus ARC: add some more comments to ret_from_fork ARC: use ACCESS_ONCE in cmpxchg loop ARC: Dynamically determine BASE_BAUD from DeviceTree arch/arc/include/asm/pgtable.h | 3

Re: [PATCH 03/32] arc: copy_thread(): rename 'arg' argument to 'kthread_arg'

2015-03-25 Thread Vineet Gupta
On Wednesday 25 March 2015 06:05 PM, Alex Dowad wrote: On 25/03/15 13:47, Vineet Gupta wrote: On Friday 13 March 2015 11:35 PM, Alex Dowad wrote: Applied to for-next after pruning the comment above. Thank you. Is it too late for me to tweak the commit comment? I already fixed it up

Re: Question on ARC's thread_info

2015-03-30 Thread Vineet Gupta
On Sunday 29 March 2015 04:48 AM, Richard Weinberger wrote: Vineet, I'm working on a patch series which touches sturct thread_info. ARC's thread_info has the following comment: * - if the contents of this structure are changed, the assembly constants * must also be changed Is this

[GIT PULL] Important ARC fixes for 4.0

2015-03-27 Thread Vineet Gupta
) ARC signal handling related fixes uncovered during recent testing of NPTL tools Vineet Gupta (2): ARC: SA_SIGINFO ucontext regs off-by-one ARC: signal handling robustify

[GIT PULL] ARC fixes for 4.0-rc

2015-03-03 Thread Vineet Gupta
task PC * perf not reporting page faults Vineet Gupta (4): ARC: Make arc_unwind_core accessible externally ARC: perf: Enable generic software events ARC: Fix KSTK_ESP() ARC: Fix thread_saved_pc() arch/arc

Re: [PATCH] irq-dw-apb-ictl: convert to platform device

2015-03-04 Thread Vineet Gupta
probe deferral and so all dependences between devices and their interrupt controllers are resolved automatically on boot. Signed-off-by: Alexey Brodkin abrod...@synopsys.com Cc: Vineet Gupta vgu...@synopsys.com Cc: Thomas Gleixner t...@linutronix.de Cc: Jason Cooper ja...@lakedaemon.net Cc

Re: [PATCH] irq-dw-apb-ictl: convert to platform device

2015-03-04 Thread Vineet Gupta
On Wednesday 04 March 2015 05:30 PM, Sebastian Hesselbarth wrote: On 03/04/2015 11:46 AM, Vineet Gupta wrote: On Wednesday 04 March 2015 02:30 PM, Sebastian Hesselbarth wrote: On 04.03.2015 04:11, Jisheng Zhang wrote: On Tue, 3 Mar 2015 06:56:59 -0800 Alexey Brodkin alexey.brod

Re: [PATCH 03/32] arc: copy_thread(): rename 'arg' argument to 'kthread_arg'

2015-03-25 Thread Vineet Gupta
On Friday 13 March 2015 11:35 PM, Alex Dowad wrote: The 'arg' argument to copy_thread() is only ever used when forking a new kernel thread. Hence, rename it to 'kthread_arg' for clarity (and consistency with do_fork() and other arch-specific implementations of copy_thread()). Signed-off-by:

[GIT PULL] ARC changes for 4.1-rc1

2015-04-22 Thread Vineet Gupta
Alex Dowad (1): arc: copy_thread(): rename 'arg' argument to 'kthread_arg' Mischa Jonker (1): ARC: [nsimosci] Update defconfig Vineet Gupta (13): ARC: Fix WRITE_BCR ARC: cosmetic: Remove unused ECR bitfield masks

Re: [PATCH v3 3/3] arm64: dts: Add mediatek MT8173 earlycon support

2015-04-29 Thread Vineet Gupta
On Wednesday 29 April 2015 12:15 PM, Sascha Hauer wrote: Hi Eddie, On Tue, Apr 28, 2015 at 09:40:34PM +0800, Eddie Huang wrote: Add earlycon support to mediatek MT8173 evaluation board dts. This is not about earlycon support. It adds the stdout-path property which is generally about console.

Re: [RFC][PATCH 0/4] perf: Enable symbolic event names

2015-05-02 Thread Vineet Gupta
On Friday 01 May 2015 12:35 PM, Sukadev Bhattiprolu wrote: Implement ability to specify Power PMU events by their symbolic event names rather than raw codes. This approach pulls tables of the Power7 and Power8 PMU events into the perf source tree and uses these tables to create aliases for the

Re: [RFC][PATCH 4/4] perf: Create aliases for PMU events

2015-05-02 Thread Vineet Gupta
On Friday 01 May 2015 12:35 PM, Sukadev Bhattiprolu wrote: Using the tables of Power7 and Power8 events, create aliases for the Power PMU events. This would allow us to specify all Power events by name rather than by raw code: $ /tmp/perf stat -e PM_1PLUS_PPC_CMPL sleep 1

Re: [PATCH 2/5] arc: use for_each_sg()

2015-05-01 Thread Vineet Gupta
is enabled. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Vineet Gupta vgu...@synopsys.com Cc: linux-a...@vger.kernel.org Looks fine to me. However it must be noted (perhaps add to change log) that this will lead to different generated code as sg_next() is a function call etc. So

Re: [PATCH 1/2] clone: Support passing tls argument via C rather than pt_regs magic

2015-05-11 Thread Vineet Gupta
On Tuesday 21 April 2015 11:17 PM, Josh Triplett wrote: clone with CLONE_SETTLS accepts an argument to set the thread-local storage area for the new thread. sys_clone declares an int argument tls_val in the appropriate point in the argument list (based on the various CLONE_BACKWARDS

Re: [PATCH 1/2] clone: Support passing tls argument via C rather than pt_regs magic

2015-05-11 Thread Vineet Gupta
+CC Arnd, Al, linux-arch On Monday 11 May 2015 08:17 PM, Josh Triplett wrote: On Mon, May 11, 2015 at 02:31:39PM +, Vineet Gupta wrote: On Tuesday 21 April 2015 11:17 PM, Josh Triplett wrote: clone with CLONE_SETTLS accepts an argument to set the thread-local storage area for the new

ARC stable backport for 3.14 and earlier

2015-05-07 Thread Vineet Gupta
friends... Thx, -Vineet From 6dee6ad027ec4a26eaf29de6d03f04c9bcf9a79e Mon Sep 17 00:00:00 2001 From: Vineet Gupta vgu...@synopsys.com Date: Thu, 26 Mar 2015 11:14:41 +0530 Subject: [PATCH] ARC: signal handling robustify A malicious signal handler / restorer can DOS the system

Re: [PATCH 2/4] ARC: [axs101] support early 8250 uart

2015-05-14 Thread Vineet Gupta
On Thursday 14 May 2015 06:23 PM, Arnd Bergmann wrote: On Thursday 14 May 2015 15:48:42 Alexey Brodkin wrote: chosen { - bootargs = console=tty0 console=ttyS3,115200n8 consoleblank=0; + bootargs = earlycon=uart8250,mmio32,0xe0022000,115200n8

[GIT PULL] ARC Fixes for 4.1-rc4

2015-05-16 Thread Vineet Gupta
Vineet Gupta (3): ARC: unbork !LLSC build ARC: With earlycon in use, retire EARLY_PRINTK ARC: inline cache flush toggle helpers arch/arc/Kconfig.debug| 13 - arch/arc/include/asm/atomic.h | 2 +- arch/arc/mm/cache_arc700.c| 4 ++-- 3 files changed, 3

Re: [PATCH V2] tty: serial: Add const to struct uart_ops declarations

2015-04-07 Thread Vineet Gupta
/arc_uart.c | 2 +- Acked-by: Vineet Gupta vgu...@synopsys.commailto:vgu...@synopsys.com # for arc_uart Th, -Vineet -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] gpio: dwapb: enable for ARC

2015-04-08 Thread Vineet Gupta
On Tuesday 07 April 2015 07:25 PM, Alexey Brodkin wrote: Hi Linus, On Tue, 2015-03-31 at 11:30 +0300, Alexey Brodkin wrote: From: Vineet Gupta vgu...@synopsys.commailto:vgu...@synopsys.com Synopsys SDP platform uses DW GPIO controller in design with ARC cores. So adding ARC

[PATCH] stmmac: replace open coded __netdev_alloc_skb_ip_align() with actual call

2015-05-20 Thread Vineet Gupta
This also matches with the sibling call netdev_alloc_skb_ip_align() made in rx fast path. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro

Re: [PATCH 1/1] serial: earlycon: Add support for big-endian MMIO accesses

2015-06-04 Thread Vineet Gupta
On Monday 25 May 2015 09:24 AM, Noam Camus wrote: From: Noam Camus no...@ezchip.com Support command line parameters of the form: earlycon=name,io|mmio|mmio32|mmio32be,addr,options This commit seem to be needed even after commit: serial: 8250: Add support for big-endian MMIO accesses

Re: [PATCH 2/4] ARC: [axs101] support early 8250 uart

2015-06-04 Thread Vineet Gupta
+CC linux-serial On Thursday 14 May 2015 06:34 PM, Vineet Gupta wrote: On Thursday 14 May 2015 06:23 PM, Arnd Bergmann wrote: On Thursday 14 May 2015 15:48:42 Alexey Brodkin wrote: chosen { - bootargs = console=tty0 console=ttyS3,115200n8 consoleblank=0

console setting via stdout-path vs console=xxx (was Re: [PATCH 2/4] ARC: [axs101] support early 8250 uart)

2015-06-05 Thread Vineet Gupta
On Friday 05 June 2015 10:32 AM, Vineet Gupta wrote: On Thursday 14 May 2015 06:34 PM, Vineet Gupta wrote: On Thursday 14 May 2015 06:23 PM, Arnd Bergmann wrote: On Thursday 14 May 2015 15:48:42 Alexey Brodkin wrote: chosen { - bootargs = console=tty0

Re: [PATCH 0/4] arc: add AXS101 board support

2015-06-05 Thread Vineet Gupta
Brodkin (2): ARC: [axs101] Add support for AXS101 SDP (software development platform) ARC: [axs101] STAR 9000799830: Fix SD cards support Vineet Gupta (2): ARC: [axs101] support early 8250 uart ARC: [axs101] Tweak DDR port aperture mappings for performance Added to ARC for-next

[PATCH 01/28] ARCv2: [intc] HS38 core interrupt controller

2015-06-09 Thread Vineet Gupta
Cc: Jason Cooper ja...@lakedaemon.net Cc: Thomas Gleixner t...@linutronix.de Signed-off-by: Vineet Gupta vgu...@synopsys.com --- .../devicetree/bindings/arc/archs-intc.txt | 22 arch/arc/include/asm/irqflags-arcv2.h | 116 +++ arch/arc/kernel/intc-arcv2

[PATCH 02/28] ARCv2: Support for ARCv2 ISA and HS38x cores

2015-06-09 Thread Vineet Gupta
) - Instructions for * 64bit load/store: LDD, STD * Hardware assisted divide/remainder: DIV, REM * Function prologue/epilogue: ENTER_S, LEAVE_S * IRQ enable/disable: CLRI, SETI * pop count: FFS, FLS * SETcc, BMSKN, XBFU... Signed-off-by: Vineet Gupta vgu

[PATCH 12/28] ARCv2: clocksource: Introduce 64bit local RTC counter

2015-06-09 Thread Vineet Gupta
Cc: Daniel Lezcano daniel.lezc...@linaro.org Cc: Thomas Gleixner t...@linutronix.de Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/Kconfig| 5 + arch/arc/kernel/setup.c | 9 +++-- arch/arc/kernel/time.c | 50 + 3

[PATCH 24/28] ARCv2: All bits in place, allow ARCv2 builds

2015-06-09 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/Kconfig | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 1b684595e258..e7cee0a5c56d 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -97,11 +97,10 @@ config

[PATCH 23/28] ARCv2: SLC: Handle explcit flush for DMA ops (w/o IO-coherency)

2015-06-09 Thread Vineet Gupta
L2 cache on ARCHS processors is called SLC (System Level Cache) For working DMA (in absence of hardware assisted IO Coherency) we need to manage SLC explicitly when buffers transition between cpu and controllers. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/cache.h

[PATCH 21/28] ARC: Reduce bitops lines of code using macros

2015-06-09 Thread Vineet Gupta
No semantical changes ! Cc: Peter Zijlstra (Intel) pet...@infradead.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/bitops.h | 463 +- 1 file changed, 137 insertions(+), 326 deletions(-) diff --git a/arch/arc/include/asm

[PATCH 11/28] ARCv2: extable: Enable sorting at build time

2015-06-09 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- scripts/sortextable.c | 5 + 1 file changed, 5 insertions(+) diff --git a/scripts/sortextable.c b/scripts/sortextable.c index 1052d4834a44..c2423d913b46 100644 --- a/scripts/sortextable.c +++ b/scripts/sortextable.c @@ -47,6 +47,10

[PATCH 28/28] ARCv2: [vdk] dts files and defconfig for HS38 VDK

2015-06-09 Thread Vineet Gupta
...@vger.kernel.org Signed-off-by: Ruud Derwig rder...@synopsys.com [vgupta: folded the Main baord DT files for smp/up into one] Signed-off-by: Vineet Gupta vgu...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/boot/dts/vdk_axc003.dtsi | 61 +++ arch/arc/boot/dts

[PATCH 16/28] ARCv2: SMP: intc: IDU 2nd level intc for dynamic IRQ distribution

2015-06-09 Thread Vineet Gupta
Cc: Jason Cooper ja...@lakedaemon.net Cc: Thomas Gleixner t...@linutronix.de Signed-off-by: Vineet Gupta vgu...@synopsys.com --- .../devicetree/bindings/arc/archs-idu-intc.txt | 46 ++ arch/arc/kernel/mcip.c | 183 - 2 files changed, 228

[PATCH 27/28] ARCv2: [axs103] Support ARC SDP FPGA platform for HS38x cores

2015-06-09 Thread Vineet Gupta
Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring robh...@kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- Documentation/devicetree/bindings/arc/axs103.txt | 8 + arch/arc/boot/dts/axc003.dtsi| 102 arch/arc

[PATCH 09/28] ARCv2: optimised string/mem lib routines

2015-06-09 Thread Vineet Gupta
From: Claudiu Zissulescu claz...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/lib/Makefile | 6 +- arch/arc/lib/memcpy-archs.S | 236 arch/arc/lib/memset-archs.S | 93 + arch/arc/lib/strcmp-archs.S

[PATCH 22/28] ARCv2: STAR 9000837815 workaround hardware exclusive transactions livelock

2015-06-09 Thread Vineet Gupta
Cc: Peter Zijlstra (Intel) pet...@infradead.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/atomic.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h index 6fc968f78500

[PATCH 25/28] ARCv2: [nsim*hs*] Support simulation platforms for HS38x cores

2015-06-09 Thread Vineet Gupta
Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring robh...@kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/boot/dts/nsim_hs.dts | 53 +++ arch/arc/boot/dts/nsim_hs_idu.dts | 72

[PATCH 19/28] arch: conditionally define smp_{mb,rmb,wmb}

2015-06-09 Thread Vineet Gupta
That way arches can define the minimal versions and still #include asm-generic for defaults (vs. defining defaults in arch code) See new barrier.h in arc for usage ! Cc: Peter Zijlstra (Intel) pet...@infradead.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- include/asm-generic/barrier.h

[PATCH 14/28] ARCv2: SMP: ARConnect debug/robustness

2015-06-09 Thread Vineet Gupta
- Handle possible interrupt coalescing from MCIP - chk if prev IPI ack before sending new Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/Kconfig | 15 --- arch/arc/kernel/mcip.c | 48 arch/arc/kernel/smp.c | 20

[PATCH 08/28] ARCv2: MMUv4: support aliasing icache config

2015-06-09 Thread Vineet Gupta
This is also default for AXS103 release Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/cache.h | 4 +--- arch/arc/mm/cache.c | 14 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include

[PATCH 20/28] ARCv2: barriers

2015-06-09 Thread Vineet Gupta
Cc: Peter Zijlstra (Intel) pet...@infradead.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/Kbuild| 1 - arch/arc/include/asm/barrier.h | 48 ++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 arch/arc

[PATCH 26/28] ARC: [axs101] Prepare for AXS103

2015-06-09 Thread Vineet Gupta
From: Alexey Brodkin abrod...@synopsys.com To avoid duplicating the MB DTS file, move the MB intc entry into cpu card specific file Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring robh...@kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch

[PATCH 03/28] ARCv2: STAR 9000793984: Handle return from intr to Delay Slot

2015-06-09 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/kernel/asm-offsets.c | 1 + arch/arc/kernel/entry-arcv2.S | 50 +++ arch/arc/kernel/setup.c | 2 ++ 3 files changed, 53 insertions(+) diff --git a/arch/arc/kernel/asm-offsets.c b/arch/arc

[PATCH 05/28] ARCv2: STAR 9000814690: Really Re-enable interrupts to avoid deadlocks

2015-06-09 Thread Vineet Gupta
drops the IRQ_ACT.act bit to re-enable IRQs. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/irqflags-arcv2.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arc/include/asm/irqflags-arcv2.h b/arch/arc/include/asm/irqflags-arcv2.h index 1eb41b00aac5

[PATCH 07/28] ARCv2: MMUv4: cache programming model changes

2015-06-09 Thread Vineet Gupta
(DC_IVDL, DC_FLDL, IC_IVIL) but paddr in DC_PTAG, IC_PTAG respectively. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/Kconfig | 2 +- arch/arc/include/asm/arcregs.h | 5 +- arch/arc/include/asm/cache.h | 3 ++ arch/arc/mm/cache.c| 112

[PATCH 18/28] ARC: add smp barriers around atomics per memory-barrriers.txt

2015-06-09 Thread Vineet Gupta
Cc: Paul E. McKenney paul...@linux.vnet.ibm.com Cc: Peter Zijlstra (Intel) pet...@infradead.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/atomic.h | 10 ++ arch/arc/include/asm/bitops.h | 12 arch/arc/include/asm/cmpxchg.h | 10

[PATCH 15/28] ARCv2: SMP: clocksource: Enable Global Real Time counter

2015-06-09 Thread Vineet Gupta
Cc: Daniel Lezcano daniel.lezc...@linaro.org Cc: Thomas Gleixner t...@linutronix.de Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/Kconfig| 5 + arch/arc/include/asm/mcip.h | 3 +++ arch/arc/kernel/mcip.c | 3 +++ arch/arc/kernel/time.c | 45

[PATCH 13/28] ARC: make plat_smp_ops weak to allow over-rides

2015-06-09 Thread Vineet Gupta
This allows platforms to provide their own cpu wakeup routines as well as IPI send / clear backends, while allowing a SMP kernel w/o any such backend to build/boot Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/Kconfig | 21 +--- arch/arc/include/asm/irq.h | 1

[PATCH 00/28] ARCv2 port to Linux - (B) ISA / Core / platform support

2015-06-09 Thread Vineet Gupta
] Prepare for AXS103 Claudiu Zissulescu (1): ARCv2: optimised string/mem lib routines Ruud Derwig (1): ARCv2: [vdk] dts files and defconfig for HS38 VDK Vineet Gupta (25): ARCv2: [intc] HS38 core interrupt controller ARCv2: Support for ARCv2 ISA and HS38x cores ARCv2: STAR 9000793984

[PATCH 04/28] ARCv2: STAR 9000808988: signals involving Delay Slot

2015-06-09 Thread Vineet Gupta
...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/entry.h | 17 ++--- arch/arc/kernel/asm-offsets.c | 2 ++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/arch/arc/include/asm/entry.h b/arch/arc/include/asm/entry.h index 29d0ab6e10f5

[PATCH 17/28] ARC: add compiler barrier to LLSC based cmpxchg

2015-06-09 Thread Vineet Gupta
LD Although this was fixed by adding a ACCESS_ONCE in this call site, it seems safer (for now at least) to add compiler barrier to LLSC based cmpxchg Reported-by: Chuck Jordan cjordan@synopsys,com Cc: Peter Zijlstra (Intel) pet...@infradead.org Signed-off-by: Vineet Gupta vgu...@synopsys.com

[PATCH 06/28] ARCv2: MMUv4: TLB programming Model changes

2015-06-09 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/Kconfig | 5 arch/arc/include/asm/arcregs.h | 2 +- arch/arc/include/asm/mmu.h | 24 ++- arch/arc/include/asm/pgtable.h | 10 arch/arc/mm/tlb.c | 54

[PATCH 10/28] ARCv2: Adhere to Zero Delay loop restriction

2015-06-09 Thread Vineet Gupta
Branch insn can't be scheduled as last insn of Zero Overhead loop Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/delay.h | 9 - arch/arc/include/asm/uaccess.h | 17 - arch/arc/lib/memcmp.S | 30 +- 3 files

Re: [PATCH] ARC: perf: Remove unnecessary local variable

2015-06-06 Thread Vineet Gupta
On Friday 24 April 2015 01:57 PM, Tobias Klauser wrote: Directly return the result of perf_pmu_register() in arc_pmu_device_probe() instead of assigning and returning variable ret. Signed-off-by: Tobias Klauser tklau...@distanz.ch Applied to ARC for-next Thx Tobias, -Vineet -- To unsubscribe

Re: [PATCH 22/28] ARCv2: STAR 9000837815 workaround hardware exclusive transactions livelock

2015-06-10 Thread Vineet Gupta
On Tuesday 09 June 2015 06:05 PM, Peter Zijlstra wrote: On Tue, Jun 09, 2015 at 05:18:22PM +0530, Vineet Gupta wrote: This really really wants a Changelog describing the actual hardware fail and why this workaround is sufficient. OK - I need some more time to rehash the exact details with our

Re: [PATCH 18/28] ARC: add smp barriers around atomics per memory-barrriers.txt

2015-06-10 Thread Vineet Gupta
On Tuesday 09 June 2015 06:00 PM, Peter Zijlstra wrote: On Tue, Jun 09, 2015 at 05:18:18PM +0530, Vineet Gupta wrote: Please try and provide at least _some_ Changelog body. snip all atomic ops that return values Will do as comments in source as well as commit log in v2. diff --git a/arch

Re: [PATCH 20/28] ARCv2: barriers

2015-06-10 Thread Vineet Gupta
On Tuesday 09 June 2015 06:10 PM, Peter Zijlstra wrote: On Tue, Jun 09, 2015 at 05:18:20PM +0530, Vineet Gupta wrote: A description of how your hardware works; or a reference to the platform documentation would not go amiss. Honestly the docs group is working on a publicly sharable version

[PATCH 2/8] ARC: perf: cap the number of counters to hardware max of 32

2015-06-09 Thread Vineet Gupta
The number of counters in PCT can never be more than 32 (while countable conditions could be 100+) for both ARCompact and ARCv2 Cc: Peter Zijlstra pet...@infradead.org Cc: Arnaldo Carvalho de Melo a...@kernel.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm

[PATCH 4/8] ARCv2: perf: Support sampling events using overflow interrupts

2015-06-09 Thread Vineet Gupta
From: Alexey Brodkin abrod...@synopsys.com Cc: Peter Zijlstra pet...@infradead.org Cc: Arnaldo Carvalho de Melo a...@kernel.org Signed-off-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/perf_event.h | 8 ++- arch/arc/kernel

[PATCH 3/8] ARCv2: perf: implement event_set_period for future use with interrupts

2015-06-09 Thread Vineet Gupta
arc_pmu Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/kernel/perf_event.c | 67 +++- 1 file changed, 60 insertions(+), 7 deletions(-) diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c index 18b074f63cb6..065daed8ad5f

[PATCH 1/8] ARC: perf: support RAW events

2015-06-09 Thread Vineet Gupta
event to count. XXX is 64-bit ASCII value. 0x6372756e = crun (in ASCII) Cc: Peter Zijlstra pet...@infradead.org Cc: Arnaldo Carvalho de Melo a...@kernel.org Signed-off-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/perf_event.h | 3

[PATCH 7/8] ARCv2: perf: SMP support

2015-06-09 Thread Vineet Gupta
From: Alexey Brodkin abrod...@synopsys.com * split off pmu info into singleton and per-cpu bits * setup PMU on all cores Cc: Peter Zijlstra pet...@infradead.org Cc: Arnaldo Carvalho de Melo a...@kernel.org Signed-off-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu

[PATCH 8/8] ARCv2: perf: Finally introduce HS perf unit

2015-06-09 Thread Vineet Gupta
With all features in place, the ARC HS pct block can now be effectively allowed to be probed/used Cc: Peter Zijlstra pet...@infradead.org Cc: Arnaldo Carvalho de Melo a...@kernel.org Signed-off-by: Vineet Gupta vgu...@synopsys.com --- Documentation/devicetree/bindings/arc/archs-pct.txt | 17

[PATCH 5/8] ARCv2: perf: set usable max period as a half of real max period

2015-06-09 Thread Vineet Gupta
of the counter values free. Cc: Peter Zijlstra pet...@infradead.org Cc: Arnaldo Carvalho de Melo a...@kernel.org Signed-off-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/kernel/perf_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 0/8] ARCv2 port to Linux - (C) perf

2015-06-09 Thread Vineet Gupta
for future use with interrupts ARCv2: perf: Support sampling events using overflow interrupts ARCv2: perf: set usable max period as a half of real max period ARCv2: perf: implement exclusion of event counting in user or kernel mode ARCv2: perf: SMP support Vineet Gupta (2): ARC

[PATCH 6/8] ARCv2: perf: implement exclusion of event counting in user or kernel mode

2015-06-09 Thread Vineet Gupta
From: Alexey Brodkin abrod...@synopsys.com Cc: Peter Zijlstra pet...@infradead.org Cc: Arnaldo Carvalho de Melo a...@kernel.org Signed-off-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/perf_event.h | 3 +++ arch/arc/kernel

[PATCH 18/19] ARC: Make way for pt_regs != user_regs_struct

2015-06-07 Thread Vineet Gupta
These have been register compatible so far. However ARCv2 mandates different pt_regs layout (due to h/w auto save). To keep pt_regs same for both, we start by removing the assumption - used mainly for block copies between the 2 structs in signal handling and ptrace Signed-off-by: Vineet Gupta vgu

[PATCH 19/19] ARC: intc: split into ARCompact ISA specific, common bits

2015-06-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/entry-compact.h| 1 + arch/arc/include/asm/irqflags-compact.h | 181 + arch/arc/include/asm/irqflags.h | 168 +-- arch/arc/kernel/Makefile| 2

[PATCH 03/19] ARC: cacheflush: No need to retain DC_CTRL from __before_dc_op()

2015-06-07 Thread Vineet Gupta
That is because __after_dc_op() already reads it for status check, so it is better anyways to use that newer value. Also reduces the clutter in callers for passing from/to these routines. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/mm/cache.c | 36

[PATCH 00/19] ARCv2 port to Linux - (A) prepratory patches

2015-06-07 Thread Vineet Gupta
, -Vineet Vineet Gupta (19): ARC: mm/cache_arc700.c - mm/cache.c ARC: cacheflush: move some code around, delete old comments ARC: cacheflush: No need to retain DC_CTRL from __before_dc_op() ARC: untangle cache flush loop ARC: entry.S: common'ize scrtach reg freeup in intr + exceptions ARC

[PATCH 08/19] ARC: entry.S: confine EXCEPTION_* macros to one file

2015-06-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/kernel/entry.S | 16 arch/arc/mm/tlbex.S | 16 +--- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index d8ec722a936b..6cced37e7a76

[PATCH 16/19] ARC: entry.S: use single EXCEPTION_PROLOGUE

2015-06-07 Thread Vineet Gupta
Returning from pure kernel mode and exception mode use the same code anyways. Remove one the duplicate blocks Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/kernel/entry-compact.S | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/arc/kernel

[PATCH 06/19] ARC: entry.S: Introduce INTERRUPT_{PROLOGUE,EPILOGUE}

2015-06-07 Thread Vineet Gupta
-common'ize macros for level 1 and level 2 interrupts Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/arcregs.h | 3 -- arch/arc/include/asm/entry.h | 77 +++--- arch/arc/kernel/entry.S| 22 +++- 3 files changed, 23

[PATCH 01/19] ARC: mm/cache_arc700.c - mm/cache.c

2015-06-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/mm/Makefile| 2 +- arch/arc/mm/{cache_arc700.c = cache.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename arch/arc/mm/{cache_arc700.c = cache.c} (100%) diff --git a/arch/arc/mm/Makefile b/arch/arc/mm

[PATCH 11/19] ARC: entry.S: comments cleanup

2015-06-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/kernel/entry.S | 46 -- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index b120f3e1e13e..a07cec4688ce 100644 --- a/arch/arc

[PATCH 13/19] ARC: entry.S: split into ARCompact ISA specific, common bits

2015-06-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/entry-compact.h | 306 +++ arch/arc/include/asm/entry.h | 300 +- arch/arc/kernel/Makefile | 4 +- arch/arc/kernel/entry-compact.S | 393

[PATCH 17/19] ARC: entry.S: [arcompact] simplify SWITCH_TO_KERNEL_STK

2015-06-07 Thread Vineet Gupta
here to allow for future reordering of regfile in pt_regs w/o touching this macro Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/include/asm/entry-compact.h | 71 ++-- 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/arch/arc/include/asm

[PATCH 14/19] ARC: entry.S: move some code around for cache locality in return path

2015-06-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/kernel/entry-compact.S | 2 + arch/arc/kernel/entry.S | 98 + 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/arch/arc/kernel/entry-compact.S b/arch/arc/kernel/entry

[PATCH 15/19] ARC: entry.S: micro-optimize Trap handler

2015-06-07 Thread Vineet Gupta
Elide the need to re-read ECR in Trap handler by ensuring that EXCEPTION_PROLOGUE does that at the very end just before returning to Trap handler ARCv2 EXCEPTION_PROLOGUE already did that, so same for ARcompact and the common trap handler adjusted to use cached ECR Signed-off-by: Vineet Gupta

[PATCH 04/19] ARC: untangle cache flush loop

2015-06-07 Thread Vineet Gupta
- Remove the ifdef'ery and write distinct versions for each mmu ver even if there is some code duplication Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/mm/cache.c | 80 - 1 file changed, 55 insertions(+), 25 deletions(-) diff

<    3   4   5   6   7   8   9   10   11   12   >