host gcc 4.7 warning when generating defconfig

2013-03-20 Thread Vineet Gupta
Hi, We do cross compile builds for ARC Linux. To avoid the env var set, we have a defconfig entry for CONFIG_CROSS_COMPILE. This worked fine so far (host gcc 4.4 i.e.). When switched to a new host distro (gcc 4.7), a defconfig build spews out the warning. --->8

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-02-05 Thread Vineet Gupta
Hi Michal, Arnd, Ben On Tuesday 05 February 2013 04:24 PM, Michal Simek wrote: > 2013/2/5 Benjamin Herrenschmidt : >> On Mon, 2013-02-04 at 17:24 +, Arnd Bergmann wrote: >>> On Monday 04 February 2013, Michal Simek wrote: > and select the CONFIG_FOO_BIG_ENDIAN and CONFIG_FOO_LITTLE_ENDIAN

Re: [PATCH v3 00/44] Meta Linux Kernel Port

2013-02-05 Thread Vineet Gupta
On Wednesday 30 January 2013 02:14 AM, Stephen Rothwell wrote: > Hi Vineet, > > On Mon, 28 Jan 2013 12:40:24 +0530 Vineet Gupta > wrote: >> >> Stephen, can you please add the following branch (rebased off 3.8-rc5) to >> linux-next >> >> git://githu

Re: [PATCH v3 19/44] metag: Device tree

2013-02-06 Thread Vineet Gupta
On Thursday 10 January 2013 09:00 PM, James Hogan wrote: > Add device tree files to arch/metag. > > Signed-off-by: James Hogan Acknowledging the fact that I reused much of code/ideas from this patch for ARC Device tree and multi-platform-image implementation: Reviewed-by: Vineet Gu

Re: linux-next build conflict between modules and metag trees (LOCKDEP_NOW_UNRELIABLE)

2013-02-07 Thread Vineet Gupta
On Thursday 07 February 2013 04:46 PM, James Hogan wrote: > Hi Rusty, > > The metag architecture tree adds an add_taint(TAINT_DIE) like other > architectures do, and the modules-next tree adds the > LOCKDEP_NOW_UNRELIABLE flag to all uses of add_taint (but obviously > misses arch/metag since it do

Re: [PATCH 4/4] serial/arc-uart: switch to devicetree based probing

2013-02-08 Thread Vineet Gupta
On Saturday 09 February 2013 04:31 AM, Grant Likely wrote: > On Fri, 11 Jan 2013 11:50:23 +0530, Vineet Gupta > wrote: >> +- clock-frequency : the input clock frequency for the UART >> +- baud : baud rate for UART > change 'baud' to &#

pt_regs leak into userspace (was Re: [PATCH v3 20/71] ARC: Signal handling)

2013-02-10 Thread Vineet Gupta
Hi Arnd, On Thursday 24 January 2013 04:20 PM, Vineet Gupta wrote: > Includes following fixes courtesy review by Al-Viro > > * Tracer poke to Callee-regs were lost > > Before going off into do_signal( ) we save the user-mode callee regs > (as they are not saved by default

[PATCH] serial/arc-uart: Miscll DT related updates (Grant's review comments)

2013-02-11 Thread Vineet Gupta
-replace "baud" with "current-speed" -if uart alias doesn't exist in DT, don't abort, pick 0 Signed-off-by: Vineet Gupta Cc: Greg Kroah-Hartman Cc: Grant Likely Cc: Arnd Bergmann Cc: devicetree-disc...@lists.ozlabs.org Cc: Rob Herring Cc: Rob Landley Cc: l

Re: pt_regs leak into userspace (was Re: [PATCH v3 20/71] ARC: Signal handling)

2013-02-11 Thread Vineet Gupta
On Monday 11 February 2013 03:06 PM, Jonas Bonn wrote: > On 11 February 2013 08:26, Vineet Gupta wrote: > >> The only downside of this patch is that userspace signal stack grows in size, >> since signal frame only cares about scratch regs (pt_regs), but has to >&g

Re: pt_regs leak into userspace (was Re: [PATCH v3 20/71] ARC: Signal handling)

2013-02-11 Thread Vineet Gupta
On Monday 11 February 2013 04:23 PM, Jonas Bonn wrote: > On 11 February 2013 11:28, James Hogan wrote: >> On 11/02/13 10:13, Vineet Gupta wrote: >>> On Monday 11 February 2013 03:06 PM, Jonas Bonn wrote: >>>> On 11 February 2013 08:26, Vineet Gupta wrote: >&g

Re: [PATCH v3 02/71] ARC: Build system: Makefiles, Kconfig, Linker script

2013-02-11 Thread Vineet Gupta
On Monday 11 February 2013 04:59 PM, James Hogan wrote: > Hi Vineet, > > On 24/01/13 10:50, Vineet Gupta wrote: >> diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig >> new file mode 100644 >> index 000..b0b09ae >> --- /dev/null >> +

Re: pt_regs leak into userspace (was Re: [PATCH v3 20/71] ARC: Signal handling)

2013-02-11 Thread Vineet Gupta
On Monday 11 February 2013 05:42 PM, Jonas Bonn wrote: > On 11 February 2013 12:22, Vineet Gupta wrote: >> On Monday 11 February 2013 04:23 PM, Jonas Bonn wrote: >>> On 11 February 2013 11:28, James Hogan wrote: >>>> On 11/02/13 10:13, Vineet Gupta wrote: >>

Re: pt_regs leak into userspace (was Re: [PATCH v3 20/71] ARC: Signal handling)

2013-02-11 Thread Vineet Gupta
On Monday 11 February 2013 06:32 PM, Jonas Bonn wrote: > On 11 February 2013 13:37, Vineet Gupta wrote: >> Anyhow going back to my orig patch - if we park the >> callee-regs-in-sigcontext-or-not, other bits look OK ? >> > Aside from the callee-regs question (wh

Re: n_tty_write() going into schedule but NOT coming out

2013-04-02 Thread Vineet Gupta
Hi Peter, On 04/01/2013 08:40 PM, Peter Hurley wrote: > On Mon, 2013-04-01 at 19:27 +0530, Vineet Gupta wrote: >> Hi, >> >> Any thoughts: I observe the same issue even with CONFIG_PREEMPT and >> CONFIG_PREEMPT_COUNT >> >> -Vineet >> >>

Re: n_tty_write() going into schedule but NOT coming out

2013-04-02 Thread Vineet Gupta
On 04/01/2013 08:40 PM, Peter Hurley wrote: > On Mon, 2013-04-01 at 19:27 +0530, Vineet Gupta wrote: >> Hi, >> >> Any thoughts: I observe the same issue even with CONFIG_PREEMPT and >> CONFIG_PREEMPT_COUNT >> >> -Vineet >> >> On 03/30/2013 06:0

Re: [PATCH v2 5/5] dump_stack: unify debug information printed by show_regs()

2013-04-02 Thread Vineet Gupta
ff0ff0 DR7: 0400 > Stack: > 88007c861ef8 81000312 82446608 88007c85e650 > 0003 88007c861f38 82335e5d > 88007c862080 8223d8c0 88007c862080 81c47730 > Call Trace: > [] do_one_ini

[PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched

2013-04-03 Thread Vineet Gupta
CHK kernel/config_data.h --->8- Signed-off-by: Vineet Gupta Cc: Michal Marek Cc: Stephen Warren Cc: Grant Likely Cc: linux-kbu...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- scripts/Makefile.lib |2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched

2013-04-03 Thread Vineet Gupta
forgot to CC linux-arch On 04/03/2013 12:42 PM, Vineet Gupta wrote: > Currently, for every ARC kernel build I see the following: > > --->8- > DTBarch/arc/boot/dts/angel4.dtb.S > AS arch/arc/boot/dts/angel4.dtb.o > LD arch/ar

Re: [PATCH] timer: Fix possible issues with non serialized timer_pending( )

2013-04-03 Thread Vineet Gupta
Hi Thomas, Did you get a chance to look at this one ! It fixes a real problem for ARC platform - w/o it my stress test setup buckles up in ~20 mins. Thx, -Vineet On 03/29/2013 04:03 PM, Vineet Gupta wrote: > When stress testing ARC Linux from 3.9-rc3, we've hit a serialization >

Re: n_tty_write() going into schedule but NOT coming out

2013-04-03 Thread Vineet Gupta
Hi Ilya On 04/03/2013 11:14 AM, Ilya Zykov wrote: > Please, try this patch maybe it can help localize your problem. > > drivers/tty/n_tty.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c > index 05e72be..28f15d0 100644 > --- a/drivers/tty/n_tty.

Re: [RFC] Add implicit barriers to irqsave/restore class of functions

2013-04-03 Thread Vineet Gupta
Hi Christian, On 04/03/2013 06:40 PM, Christian Ruppert wrote: > This patch adds implicit memory barriers to irqsave/restore functions of > the ARC architecture port in line with what is done in other architectures. > > It seems to fix several seemingly unrelated issues in our platform but for > t

[PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-03 Thread Vineet Gupta
st r4,[r3,4]# .prev, D.31439 st r3,[r4] # .next, D.30246 Signed-off-by: Vineet Gupta Reported-by: Christian Ruppert Cc: Thomas Gleixner Cc: Christian Ruppert Cc: Pierrick Hascoet Cc: Robert Love Cc: kpreempt-t...@lists.sourceforge.net Cc: Frederic Weisbecker Cc: Ste

Re: [PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched

2013-04-03 Thread Vineet Gupta
On 04/03/2013 09:48 PM, Stephen Warren wrote: > On 04/03/2013 01:14 AM, Vineet Gupta wrote: >> forgot to CC linux-arch >> >> On 04/03/2013 12:42 PM, Vineet Gupta wrote: >>> Currently, for every ARC kernel build I see the following: >>> >>>

Re: [PATCH 0/4] kprobes: split blacklist into common and arch

2013-04-04 Thread Vineet Gupta
Hi Oskar, On 04/03/2013 01:58 PM, oskar.and...@sonymobile.com wrote: > Hi, > > This is a slight rework of the following patches which I posted earlier: > [PATCH] Kprobes blacklist: Conditionally add x86-specific symbols > [PATCH] delay blacklist symbol lookup until we actually need it > > This s

Re: [RFC] Add implicit barriers to irqsave/restore class of functions

2013-04-04 Thread Vineet Gupta
Hi Peter, On 04/04/2013 09:43 PM, Peter Zijlstra wrote: > - : "cc"); > + : "memory", "cc"); > That's not a memory barrier, that a memory clobber, aka a compiler > barrier. For the problem under consideration we indeed want a compiler barrier because the error shows up due to a stale

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-04 Thread Vineet Gupta
Hi Thomas, On 04/04/2013 08:58 PM, Christian Ruppert wrote: > Hi Vineet, > > Our stress testing campaign has just successfully completed on this > patch. It seems to solve several issues we have seen in unpatched > versions, amongst others the original timer issue, a crash in hrtimer > rb-tree man

Re: [PATCH v2 2/4] kprobes: split blacklist into common and arch

2013-04-05 Thread Vineet Gupta
On 04/04/2013 06:21 PM, Oskar Andero wrote: > Some blackpoints are only valid for specific architectures. To let each > architecture specify its own blackpoints the list has been split in two > lists: common and arch. The common list is kept in kernel/kprobes.c and > the arch list is kept in the ar

Re: [PATCH v3 32/71] ARC: [DeviceTree] Basic support

2013-01-29 Thread Vineet Gupta
Hi James, On Monday 28 January 2013 03:51 PM, James Hogan wrote: > Hi Vineet, > > On 24/01/13 10:50, Vineet Gupta wrote: >> diff --git a/arch/arc/Makefile b/arch/arc/Makefile >> index 4d52a3b..90570f9 100644 >> --- a/arch/arc/Makefile >> +++ b/arch/arc/Mak

ARC Port for linux-next (was Re: [PATCH v3 00/44] Meta Linux Kernel Port)

2013-01-29 Thread Vineet Gupta
Hi Stephen, On Monday 28 January 2013 12:40 PM, Vineet Gupta wrote: > Hi Arnd / Stephen, > > On Saturday 26 January 2013 05:55 AM, Arnd Bergmann wrote: >> I'd suggest that you both ask Stephen to add the trees to linux-next >> now (I thought you had done that already,

Re: [PATCH v3 32/71] ARC: [DeviceTree] Basic support

2013-01-29 Thread Vineet Gupta
On Tuesday 29 January 2013 06:55 PM, Rob Herring wrote: > On 01/24/2013 04:50 AM, Vineet Gupta wrote: >> This is minimal infrastructure needed for devicetree work. >> It uses an a sample "skeleton" devicetree - embedded in kernel image - >> to print the board, manufa

Re: [PATCH v3 02/71] ARC: Build system: Makefiles, Kconfig, Linker script

2013-01-29 Thread Vineet Gupta
On Tuesday 29 January 2013 12:14 AM, Sam Ravnborg wrote: > On Mon, Jan 28, 2013 at 11:59:36AM +0530, Vineet Gupta wrote: >> Hi Sam, >> >> On Thursday 24 January 2013 04:20 PM, Vineet Gupta wrote: >>> Arnd in his review pointed out that arch Kconfig organisatio

Re: [PATCH v3 40/71] ARC: OProfile support

2013-01-29 Thread Vineet Gupta
On Tuesday 29 January 2013 10:35 PM, James Hogan wrote: > Hi Vineet, > > You don't appear to define CONFIG_HW_PERF_EVENTS, so > include/linux/oprofile.h will presumably define oprofile_perf_init as > just a pr_info(...); return -ENODEV; > > Similarly drivers/oprofile/oprofile_perf.o doesn't seem to

Re: [PATCH v3 40/71] ARC: OProfile support

2013-01-30 Thread Vineet Gupta
On Wednesday 30 January 2013 04:24 PM, James Hogan wrote: > On 30/01/13 06:34, Vineet Gupta wrote: >> On Tuesday 29 January 2013 10:35 PM, James Hogan wrote: >>> Hi Vineet, >>> >>> You don't appear to define CONFIG_HW_PERF_EVENTS, so >>&g

Re: [PATCH] drivers/block/xsysace - replace in(out)_8/in(out)_be16/in(out)_le16 with generic iowrite(read)8/16(be)

2013-01-30 Thread Vineet Gupta
On Wednesday 30 January 2013 04:43 PM, Michal Simek wrote: > 2013/1/30 Alexey Brodkin : >> On 01/29/2013 08:27 PM, Arnd Bergmann wrote: >>> On Tuesday 29 January 2013, Alexey Brodkin wrote: in(out)_8/in(out)_be16/in(out)_le16 are very powerpc/microblaze specific. To enable use of Xilinx S

linux-net for ARC port

2013-02-01 Thread Vineet Gupta
Hi Stephen, On Wednesday 30 January 2013 02:14 AM, Stephen Rothwell wrote: > Hi Vineet, > > On Mon, 28 Jan 2013 12:40:24 +0530 Vineet Gupta > wrote: >> Stephen, can you please add the following branch (rebased off 3.8-rc5) to >> linux-next >> >> git://

Re: [PATCH v2 00/76] Synopsys ARC Linux kernel Port

2013-01-24 Thread Vineet Gupta
On Friday 18 January 2013 08:42 PM, Arnd Bergmann wrote: > On Friday 18 January 2013, Vineet Gupta wrote: >> > > Hi Vineet, > > I've looked at the entire series again now, and it looks very good > overall, I only had comments for tiny issues. With 76 patches in the &

Re: [PATCH v2 00/76] Synopsys ARC Linux kernel Port

2013-01-24 Thread Vineet Gupta
On Thursday 24 January 2013 03:22 PM, James Hogan wrote: > Hi Vineet, > > On 24/01/13 08:54, Vineet Gupta wrote: >> (3) That branch will be ARC patches on top of Linus's 3.8 rc4. Actually for >> my >> development, I'd also cherry picked a few patch

[PATCH v3 02/71] ARC: Build system: Makefiles, Kconfig, Linker script

2013-01-24 Thread Vineet Gupta
support (750/770) is exclusive. The first 2 have been fixed in subsequent patches. Due to the nature of the 750 and 770, it is not possible to build for both together, w/o special runtime glue code which would hurt performance. Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Cc: Sam Ravnborg --- arch

[PATCH v3 17/71] ARC: Syscall support (no-legacy-syscall ABI)

2013-01-24 Thread Vineet Gupta
This includes support for generic clone/for/vfork/execve Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Cc: Al Viro Acked-by: Arnd Bergmann --- arch/arc/Kconfig|1 + arch/arc/include/asm/ptrace.h |5 +++ arch/arc/include/asm/syscall.h | 72

[PATCH v3 01/71] ARC: Generic Headers

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/Kbuild| 58 arch/arc/include/asm/asm-offsets.h |9 + 2 files changed, 67 insertions(+), 0 deletions(-) create mode 100644 arch/arc/include/asm/Kbuild create mode 100644 arch/arc/include

[PATCH v3 11/71] ARC: Fundamental ARCH data-types/defines

2013-01-24 Thread Vineet Gupta
core kernel data-types such as struct pt_regs, #ifdef __KERNEL__ which also makes the UAPI header spit (further patch in the series) to NOT export it to asm/uapi/ptrace.h Signed-off-by: Vineet Gupta Cc: Jonas Bonn Cc: Al Viro Acked-by: Arnd Bergmann --- arch/arc/include/asm/bug.h

[PATCH v3 22/71] ARC: [Review] Prevent incorrect syscall restarts

2013-01-24 Thread Vineet Gupta
caught in sigreturn() * restart should happen only once, even if we get through do_signal() many times." ARC Port already handled #1, this patch fixes #2 and #3. We use the additional state in pt_regs->orig_r8 to ckh if restarting has already been done once. Thanks to Al Viro for spotting

[PATCH v3 19/71] ARC: Timers/counters/delay management

2013-01-24 Thread Vineet Gupta
s specific hardware assist) -RTSC is only allowed in SMP if it's cross-core-sync (Kconfig glue ensures that) and thus usable for both requirements. Signed-off-by: Vineet Gupta Cc: Thomas Gleixner --- arch/arc/include/asm/arcregs.h | 11 ++ arch/arc/include/asm/clk.h | 20 +++ arch/

[PATCH v3 32/71] ARC: [DeviceTree] Basic support

2013-01-24 Thread Vineet Gupta
ific "machine_desc". TODO: support interpreting the command line as boot-loader passed dtb Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Cc: Grant Likely Cc: devicetree-disc...@lists.ozlabs.org Cc: Rob Herring --- arch/arc/Kconfig|9 + arch/arc/Makefile

[PATCH v3 00/71] Synopsys ARC Linux kernel Port (Part #1)

2013-01-24 Thread Vineet Gupta
rot API Mischa Jonker (1): ARC: kgdb support Vineet Gupta (69): ARC: Generic Headers ARC: Build system: Makefiles, Kconfig, Linker script ARC: irqflags - Interrupt enabling/disabling at in-core intc ARC: Atomic/bitops/cmpxchg/barriers asm-generic headers: uaccess.h to conditionally d

[PATCH v3 42/71] ARC: Module support

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/module.h |4 ++ arch/arc/kernel/Makefile |1 + arch/arc/kernel/module.c | 87 + 3 files changed, 92 insertions(+), 0 deletions(-) create mode 100644 arch/arc/kernel/module.c diff

[PATCH v3 58/71] ARC: UAPI Disintegrate arch/arc/include/asm

2013-01-24 Thread Vineet Gupta
asm-generic/Kbuild.asm To work around empty uapi/asm/setup.h added a placholder comment. Signed-off-by: Vineet Gupta Cc: David Howells --- arch/arc/include/asm/Kbuild|8 --- arch/arc/include/asm/byteorder.h | 18 -- arch/arc/include/asm/cachectl.h| 28

[PATCH v3 23/71] ARC: Cache Flush Management

2013-01-24 Thread Vineet Gupta
* ARC700 has VIPT L1 Caches * Caches don't snoop and are not coherent * Given the PAGE_SIZE and Cache associativity, we don't support aliasing D$ configurations (yet), but do allow aliasing I$ configs Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h| 80

[PATCH v3 20/71] ARC: Signal handling

2013-01-24 Thread Vineet Gupta
to do likes of PEEKUSR(callee-reg). However in return path we were simply discarding the user-mode callee regs, which would break a POKEUSR(callee-reg) from a tracer. * Issue related to multiple syscall restarts are addressed in next patch Signed-off-by: Vineet Gupta Cc: Al Viro

[PATCH v3 18/71] ARC: Process-creation/scheduling/idle-loop

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta Cc: Al Viro Cc: Thomas Gleixner --- arch/arc/Kconfig |2 + arch/arc/include/asm/arcregs.h | 20 arch/arc/include/asm/processor.h |9 +- arch/arc/include/asm/ptrace.h|8 ++ arch/arc/include/asm/switch_to.h | 41

[PATCH v3 30/71] ARC: Boot #1: low-level, setup_arch(), /proc/cpuinfo, mem init

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta Acked-by: Arnd Bergmann --- arch/arc/Kconfig |2 + arch/arc/include/asm/arcregs.h |5 + arch/arc/include/asm/setup.h | 22 + arch/arc/kernel/head.S | 78 + arch/arc/kernel/reset.c | 33

[PATCH v3 21/71] ARC: [Review] Preparing to fix incorrect syscall restarts due to signals

2013-01-24 Thread Vineet Gupta
restarted) * upper short word optionally containing the syscall num - needed by likes of tracehooks etc This patch only changes how orig_r8 is organised and nothing should change behaviourily. Signed-off-by: Vineet Gupta Cc: Al Viro --- arch/arc/include/asm/entry.h | 29 +-

[PATCH v3 70/71] ARC: Provide a default serial.h for uart drivers needing BASE_BAUD

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/serial.h | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 arch/arc/include/asm/serial.h diff --git a/arch/arc/include/asm/serial.h b/arch/arc/include/asm/serial.h new file mode 100644

[PATCH v3 33/71] ARC: [DeviceTree] Convert some Kconfig items to runtime values

2013-01-24 Thread Vineet Gupta
* mem size now runtime configured (prev CONFIG_ARC_PLAT_SDRAM_SIZE) * core cpu clk runtime configured (prev CONFIG_ARC_PLAT_CLK) Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Cc: Grant Likely --- arch/arc/Kconfig| 12 arch/arc/boot/dts/skeleton.dtsi |6

[PATCH v3 06/71] ARC: uaccess friends

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/segment.h | 24 ++ arch/arc/include/asm/uaccess.h | 646 arch/arc/mm/extable.c | 63 3 files changed, 733 insertions(+), 0 deletions(-) create mode 100644 arch/arc/include/asm

[PATCH v3 59/71] ARC: Add support for ioremap_prot API

2013-01-24 Thread Vineet Gupta
Arc DCCM. The end result is that it is possible to examine values of variables placed into DCCM in user space programs via GDB. CC: Alexey Brodkin CC: Noam Camus Acked-by: Vineet Gupta Signed-off-by: Gilad Ben-Yossef Signed-off-by: Vineet Gupta --- arch/arc/Kconfig|1 + arch

[PATCH v3 62/71] ARC: [Review] Multi-platform image #2: Board callback Infrastructure

2013-01-24 Thread Vineet Gupta
th MACHINE_STARt/END constructs) so the hooks will not run. Next commit will actually convert the platform to this infrastructure. Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Acked-by: Arnd Bergmann --- arch/arc/include/asm/mach_desc.h | 85 ++ arch/ar

[PATCH v3 48/71] ARC: kprobes support

2013-01-24 Thread Vineet Gupta
Origin port done by Rajeshwar Ranga Signed-off-by: Vineet Gupta Cc: Rajeshwar Ranga --- arch/arc/Kconfig |2 + arch/arc/include/asm/kprobes.h | 62 + arch/arc/include/asm/ptrace.h |5 + arch/arc/kernel/Makefile |1 + arch/arc/kernel/disasm.c |5

[PATCH v3 34/71] ARC: [plat-arcfpga]: Enabling DeviceTree for Angel4 board

2013-01-24 Thread Vineet Gupta
: switch over to linear irq domain once all devs have been transitioned to DT Signed-off-by: Vineet Gupta Cc: Grant Likely Cc: Arnd Bergmann --- .../devicetree/bindings/arc/interrupts.txt | 24 + arch/arc/boot/dts/Makefile |2 +- arch/arc/boot/dts

[PATCH v3 57/71] ARC: Hostlink Pseudo-Driver for Metaware Debugger

2013-01-24 Thread Vineet Gupta
This allows ARC Target to do I/O to host in absence of any peripherals whatsoever, assisted by Metaware Hostlink facility. Further we have a FUSE based filesystem which makes us mount/access host filesystem on target and do fops. Signed-off-by: Vineet Gupta --- arch/arc/Kconfig

[PATCH v3 69/71] ARC: [plat-arcfpga] defconfig for fully loaded ARC Linux

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/configs/fpga_defconfig | 23 +++ 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/arch/arc/configs/fpga_defconfig b/arch/arc/configs/fpga_defconfig index 8638e101f..b869806 100644 --- a/arch/arc/configs/fpga_defconfig

[PATCH v3 44/71] ARC: SMP support

2013-01-24 Thread Vineet Gupta
ressed in subsequent patches within this series. Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Cc: Thomas Gleixner Cc: Rajeshwar Ranga Cc: Noam Camus Cc: Gilad Ben-Yossef --- arch/arc/Kconfig | 39 - arch/arc/Makefile|3 + arch/arc

[PATCH v3 29/71] ARC: I/O and DMA Mappings

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/dma-mapping.h| 205 + arch/arc/include/asm/dma.h| 14 ++ arch/arc/include/asm/io.h | 103 + arch/arc/mm/dma.c | 94

[PATCH v3 45/71] ARC: DWARF2 .debug_frame based stack unwinder

2013-01-24 Thread Vineet Gupta
-Originally contributed by Rajeshwar Range -Derived off of generic unwinder in 2.6.19 and adapted to ARC Signed-off-by: Vineet Gupta Cc: Rajeshwar Ranga --- arch/arc/Kconfig | 15 + arch/arc/include/asm/module.h |7 + arch/arc/include/asm/unwind.h | 163 + arch/arc

[PATCH v3 00/71] Synopsys ARC Linux kernel Port (Part #2)

2013-01-24 Thread Vineet Gupta
This is the second set of patches untouched since v2. -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://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.o

[PATCH v3 07/71] asm-generic: uaccess: Allow arches to over-ride __{get,put}_user_fn()

2013-01-24 Thread Vineet Gupta
know that data involved is "unit" sized and aligned, using the vanilla copy backend is a bit wasteful. This change thus allows arches to over-ride the aforementioned routines. Signed-off-by: Vineet Gupta Acked-by: Arnd Bergmann --- include/asm-generic/uaccess.h | 11 +++ 1 fi

[PATCH v3 10/71] ARC: Checksum/byteorder/swab routines

2013-01-24 Thread Vineet Gupta
TBD: do_csum still needs to be written in asm Signed-off-by: Vineet Gupta Acked-by: Arnd Bergmann --- arch/arc/include/asm/byteorder.h | 18 +++ arch/arc/include/asm/checksum.h | 101 ++ arch/arc/include/asm/swab.h | 98

[PATCH v3 15/71] ARC: Interrupt Handling

2013-01-24 Thread Vineet Gupta
This contains: -bootup arch IRQ init: init_IRQ(), arc_init_IRQ() -generic IRQ subsystem glue: arch_do_IRQ() -basic IRQ chip setup for in-core intc Signed-off-by: Vineet Gupta Cc: Thomas Gleixner --- arch/arc/include/asm/arcregs.h |3 + arch/arc/include/asm/hw_irq.h |7 +++ arch/arc

[PATCH v3 03/71] ARC: irqflags - Interrupt enabling/disabling at in-core intc

2013-01-24 Thread Vineet Gupta
y a bit in the AUX_IENABLE register, hence the implmentation of arch_{,un}mask_irq( ) routines. Signed-off-by: Vineet Gupta Cc: Thomas Gleixner --- arch/arc/include/asm/arcregs.h | 114 ++ arch/arc/include/asm/irqflags.h | 149 +++

[PATCH v3 04/71] ARC: Atomic/bitops/cmpxchg/barriers

2013-01-24 Thread Vineet Gupta
This covers the UP / SMP (with no hardware assist for atomic r-m-w) as well as ARC700 LLOCK/SCOND insns based. Signed-off-by: Vineet Gupta --- arch/arc/include/asm/atomic.h | 232 ++ arch/arc/include/asm/barrier.h | 42 arch/arc/include/asm/bitops.h | 516

[PATCH v3 26/71] ARC: MMU Exception Handling

2013-01-24 Thread Vineet Gupta
* MMU I-TLB / D-TLB Miss Exceptions - Fast Path TLB Refill Handler - slowpath TLB creation via do_page_fault() -> update_mmu_cache() * Duplicate PD Exception Handler Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 91 ++ arch/arc/include/asm/tlb-mmu1.h |

[PATCH v3 31/71] ARC: [plat-arcfpga] Static platform device for CONFIG_SERIAL_ARC

2013-01-24 Thread Vineet Gupta
r newer kernel ports. Signed-off-by: Vineet Gupta Cc: Arnd Bergmann --- arch/arc/include/asm/irq.h |1 + arch/arc/plat-arcfpga/include/plat/irq.h| 27 +++ arch/arc/plat-arcfpga/include/plat/memmap.h | 31 arch/arc/plat-arcfpga/platform

[PATCH v3 28/71] ARC: Page Fault handling

2013-01-24 Thread Vineet Gupta
d NOT early exit for SIGKILL + VM_FAULT_OOM + !VM_FAULT_RETRY Signed-off-by: Vineet Gupta --- arch/arc/mm/fault.c | 228 +++ 1 files changed, 228 insertions(+), 0 deletions(-) create mode 100644 arch/arc/mm/fault.c diff --git a/arch/arc/mm/f

[PATCH v3 14/71] ARC: Low level IRQ/Trap/Exception Handling

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta Cc: Al Viro --- arch/arc/include/asm/entry.h | 495 arch/arc/kernel/entry.S | 571 ++ 2 files changed, 1066 insertions(+), 0 deletions(-) create mode 100644 arch/arc/include/asm

[PATCH v3 25/71] ARC: MMU Context Management

2013-01-24 Thread Vineet Gupta
ARC700 MMU provides for tagging TLB entries with a 8-bit ASID to avoid having to flush the TLB every task switch. It also allows for a quick way to invalidate all the TLB entries for task useful for: * COW sementics during fork() * task exit()ing Signed-off-by: Vineet Gupta --- arch/arc

[PATCH v3 05/71] asm-generic headers: uaccess.h to conditionally define segment_eq()

2013-01-24 Thread Vineet Gupta
This is because mm_segment_t is exported by arch code, while seqment_eq assumes it will have .seg element. Acked-by: Arnd Bergmann Signed-off-by: Vineet Gupta --- include/asm-generic/uaccess.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/asm-generic

[PATCH v3 37/71] ARC: [optim] Cache "current" in Register r25

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/Kconfig |7 ++ arch/arc/Makefile|9 +++ arch/arc/include/asm/Kbuild |1 - arch/arc/include/asm/current.h | 32 +++ arch/arc/include/asm/entry.h | 45

[PATCH v3 43/71] ARC: Diagnostics: show_regs() etc

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/kernel/troubleshoot.c | 305 arch/arc/mm/tlbex.S| 20 +++ 2 files changed, 325 insertions(+), 0 deletions(-) diff --git a/arch/arc/kernel/troubleshoot.c b/arch/arc/kernel/troubleshoot.c index

[PATCH v3 08/71] ARC: [optim] uaccess __{get,put}_user() optimised

2013-01-24 Thread Vineet Gupta
to do leftover bytes calculation can be avoided as well. The savings were significant: ~17k of code. bloat-o-meter vmlinux_uaccess_pre vmlinux_uaccess_post add/remove: 0/4 grow/shrink: 8/118 up/down: 1262/-18758 (-17496) ^ Signed-off-b

[PATCH v3 50/71] ARC: Unaligned access emulation

2013-01-24 Thread Vineet Gupta
ble/disble * SYSCTL_ARCH_UNALIGN_NO_WARN: Warn on each emulation attempt Originally contributed by Tim Yao Signed-off-by: Vineet Gupta Cc: Tim Yao Acked-by: Arnd Bergmann --- arch/arc/Kconfig | 11 ++ arch/arc/include/asm/Kbuild |1 - arch/arc/include/asm/ptrace.h|3 +

[PATCH v3 40/71] ARC: OProfile support

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta Cc: Robert Richter Cc: oprofile-l...@lists.sf.net --- arch/arc/Kconfig |1 + arch/arc/Makefile |2 ++ arch/arc/oprofile/Makefile |9 + arch/arc/oprofile/common.c | 22 ++ 4 files changed, 34 insertions

[PATCH v3 47/71] ARC: disassembly (needed by kprobes/kgdb/unaligned-access-emul)

2013-01-24 Thread Vineet Gupta
In-kernel disassembler Due Credits * Orig written by Rajeshwar Ranga * Consolidation/cleanups by Mischa Jonker Signed-off-by: Vineet Gupta Cc: Rajeshwar Ranga Cc: Mischa Jonker --- arch/arc/include/asm/disasm.h | 116 + arch/arc/kernel/Makefile |2 +- arch/arc/kernel

[PATCH v3 49/71] sysctl: Enable PARISC "unaligned-trap" to be used cross-arch

2013-01-24 Thread Vineet Gupta
PARISC defines /proc/sys/kernel/unaligned-trap to runtime toggle unaligned access emulation. The exact mechanics of enablig/disabling are still arch specific, we can make the sysctl usable by other arches. Signed-off-by: Vineet Gupta Acked-by: Helge Deller Cc: "James E.J. Bottomley"

[PATCH v3 52/71] ARC: Boot #2: Verbose Boot reporting / feature verification

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/Makefile |2 + arch/arc/include/asm/arcregs.h | 122 -- arch/arc/include/asm/defines.h | 56 ++ arch/arc/include/asm/setup.h | 14 +++ arch/arc/kernel/setup.c| 223

[PATCH v3 63/71] ARC: [Review] Multi-platform image #3: switch to board callback

2013-01-24 Thread Vineet Gupta
-platform API is retired and instead callbacks are used Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Acked-by: Arnd Bergmann --- arch/arc/include/asm/irq.h |1 - arch/arc/include/asm/smp.h |5 --- arch/arc/kernel/irq.c|2 - arch/arc

[PATCH v3 61/71] ARC: Fold boards sub-menu into platform/SoC menu

2013-01-24 Thread Vineet Gupta
This is more natural and is now doable since the choice constructs are gone. Signed-off-by: Vineet Gupta Acked-by: Arnd Bergmann --- arch/arc/Kconfig | 21 +++-- arch/arc/plat-arcfpga/Kconfig | 14 ++ 2 files changed, 13 insertions(+), 22 deletions

[PATCH v3 55/71] ARC: perf support (software counters only)

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/Kconfig |3 +++ arch/arc/include/asm/perf_event.h | 13 + 2 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 arch/arc/include/asm/perf_event.h diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index

[PATCH v3 51/71] ARC: kgdb support

2013-01-24 Thread Vineet Gupta
From: Mischa Jonker Signed-off-by: Mischa Jonker Signed-off-by: Vineet Gupta Cc: Jason Wessel Acked-by: Jason Wessel --- arch/arc/Kconfig|3 +- arch/arc/include/asm/kgdb.h | 61 + arch/arc/kernel/Makefile|1 + arch/arc/kernel/kgdb.c | 205

[PATCH v3 65/71] ARC: [Review] Multi-platform image #5: NR_IRQS defined by ARC core

2013-01-24 Thread Vineet Gupta
For now this will suffice for all platforms, later exotic ones needs to get this from DeviceTree Signed-off-by: Vineet Gupta Cc: Arnd Bergmann --- arch/arc/include/asm/irq.h |2 ++ arch/arc/plat-arcfpga/include/plat/irq.h |6 -- 2 files changed, 2 insertions(+), 6

[PATCH v3 66/71] ARC: [Review] Multi-platform image #6: cpu-to-dma-addr optional

2013-01-24 Thread Vineet Gupta
st in case a platform has an obscure device which say needs 0 based bus address. That way no longer needs to unconditinally include Also verfied that on Angel4 board, other peripherals (IDE-disk / EMAC) work fine with 0x8000_ based dma addresses. Signed-off-by: Vineet Gupta Cc: Arnd Ber

[PATCH v3 53/71] ARC: [plat-arfpga] BVCI Latency Unit setup

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/plat-arcfpga/Kconfig| 32 + arch/arc/plat-arcfpga/platform.c | 56 ++ 2 files changed, 88 insertions(+), 0 deletions(-) diff --git a/arch/arc/plat-arcfpga/Kconfig b/arch/arc/plat-arcfpga

[PATCH v3 64/71] ARC: [Review] Multi-platform image #4: Isolate platform headers

2013-01-24 Thread Vineet Gupta
ned-off-by: Vineet Gupta Cc: Arnd Bergmann Acked-by: Arnd Bergmann --- arch/arc/Makefile| 16 +--- arch/arc/include/asm/irq.h |1 - arch/arc/kernel/vmlinux.lds.S|1 - arch/arc/plat-arcfpga/Makefile |2 ++ arch/arc/plat-arcfpga/irq.c |

[PATCH v3 60/71] ARC: [Review] Multi-platform image #1: Kconfig enablement

2013-01-24 Thread Vineet Gupta
o the first step towards multi-platform (and multi-board) builds it to allow build system to do that. So as applicable, => Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Acked-by: Arnd Bergmann --- arch/arc/Kconfig |6 ++ arch/arc/plat-arcfpga/Kconfig |5 ++---

[PATCH v3 71/71] ARC: Add self to MAINTAINERS

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 3105c48..05cdc99 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7418,6 +7418,12 @@ F: lib/swiotlb.c F: arch/*/kernel/pci-swiotlb.c

[PATCH v3 67/71] ARC: [Review] Multi-platform image #7: SMP common code to use callbacks

2013-01-24 Thread Vineet Gupta
This again is for switch from singleton platform SMP API to multi-platform paradigm Platform code is not yet setup to populate the callbacks, that happens in next commit Signed-off-by: Vineet Gupta Cc: Arnd Bergmann Acked-by: Arnd Bergmann --- arch/arc/include/asm/smp.h | 36

[PATCH v3 54/71] perf, ARC: Enable building perf tools for ARC

2013-01-24 Thread Vineet Gupta
Although with uClibc there's more we need to do Signed-off-by: Vineet Gupta Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo --- tools/perf/perf.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/tools/perf/perf.h b/tools

[PATCH v3 46/71] ARC: stacktracing APIs based on dw2 unwinder

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/Kconfig |4 + arch/arc/kernel/stacktrace.c | 215 +- 2 files changed, 217 insertions(+), 2 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 0979d8e..84b23fa 100644 --- a/arch/arc

[PATCH v3 68/71] ARC: [Review] Multi-platform image #8: platform registers SMP callbacks

2013-01-24 Thread Vineet Gupta
Platforms export their SMP callbacks by populating arc_smp_ops. The population itself needs to be done pretty early, from init_early callback. Signed-off-by: Vineet Gupta Cc: Arnd Bergmann --- arch/arc/plat-arcfpga/include/plat/smp.h |1 + arch/arc/plat-arcfpga/platform.c |4

[PATCH v3 39/71] ARC: Futex support

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/futex.h | 151 ++ 1 files changed, 151 insertions(+), 0 deletions(-) create mode 100644 arch/arc/include/asm/futex.h diff --git a/arch/arc/include/asm/futex.h b/arch/arc/include/asm/futex.h new file

[PATCH v3 56/71] ARC: Support for single cycle Close Coupled Mem (CCM)

2013-01-24 Thread Vineet Gupta
* Includes mapping of CCMs in address space * Annotations to move arbitrary code/data into CCM * Moving some of the critical code/data into CCM * Runtime detection/reporting Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 27 arch/arc/include/asm

  1   2   3   4   5   6   7   8   9   10   >