Re: [PATCH v3 4/4] dw_dmac: return proper residue value

2013-01-24 Thread Viresh Kumar
I told you, we can get rid of that routine :) On Thu, Jan 24, 2013 at 4:04 PM, Andy Shevchenko wrote: I don't see residue - len from interrupt handler. It isn't required? > @@ -1062,6 +1090,7 @@ dwc_tx_status(struct dma_chan *chan, > struct dma_tx_state *txstate) > { > st

Re: [PATCH 7/9] ARM: at91/at91_dt_defconfig: remove memory specification to cmdline

2013-01-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:46 Thu 24 Jan , Nicolas Ferre wrote: > On 01/23/2013 11:20 AM, Jean-Christophe PLAGNIOL-VILLARD : > > On 10:48 Wed 23 Jan , Nicolas Ferre wrote: > >> No need for this cmdline option as we are using DT. > >> Moreover this defconfig is targeted to multiple SoC/boards: this option > >> w

Re: [PATCH RFC] media: tvp514x: add OF support

2013-01-24 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. Sylwester and Guennadi have posted a DT bindings proposal for V4L2 devices. Shouldn't you base this patch on those bindings ? On Thursday 24 January 2013 14:42:20 Prabhakar Lad wrote: > From: Lad, Prabhakar > > add OF support for the tvp514x driver. > >

Re: [PATCH v3 4/4] dw_dmac: return proper residue value

2013-01-24 Thread Andy Shevchenko
On Thu, Jan 24, 2013 at 12:45 PM, Viresh Kumar wrote: > On Thu, Jan 24, 2013 at 4:04 PM, Andy Shevchenko > wrote: > > I don't see residue - len from interrupt handler. It isn't required? Where exactly? >> @@ -1062,6 +1090,7 @@ dwc_tx_status(struct dma_chan *chan, >> struct dma_tx_

Re: [Linux-c6x-dev] [PATCH 3/9] c6x: Provide dma_mmap_coherent() and dma_get_sgtable()

2013-01-24 Thread Marek Szyprowski
On 1/21/2013 9:00 PM, Geert Uytterhoeven wrote: On Tue, Jan 15, 2013 at 5:56 PM, James Bottomley wrote: > On Tue, 2013-01-15 at 15:07 +0100, Marek Szyprowski wrote: >> On 1/15/2013 10:13 AM, Geert Uytterhoeven wrote: >> > Marek? >> > >> > On Tue, Jan 15, 2013 at 5:16 AM, Vineet Gupta >> > wrot

Re: [PATCH v3 0/4] dw_dmac: return actual residue value

2013-01-24 Thread Viresh Kumar
On Thu, Jan 24, 2013 at 4:04 PM, Andy Shevchenko wrote: > Since v2: > - get rid of dwc_update_residue(): for soft LLP mode we assign residue in >dwc_do_start() and decrease it at each interrupt. I was talking about this comment or design we thought of. Where is this done. I see residue being

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

2013-01-24 Thread Vineet Gupta
Arnd in his review pointed out that arch Kconfig organisation has several deficiencies: * Build time entries for things which can be runtime extracted from DT (e.g. SDRAM size, core clk frequency..) * Not multi-platform-image-build friendly (choice .. endchoice constructs) * cpu variants support

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

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

2013-01-24 Thread Vineet Gupta
* L1_CACHE_SHIFT * PAGE_SIZE, PAGE_OFFSET * struct pt_regs, struct user_regs_struct * struct thread_struct, cpu_relax(), task_pt_regs(), start_thread(), ... * struct thread_info, THREAD_SIZE, INIT_THREAD_INFO(), TIF_*, ... * BUG() * ELF_* * Elf_* To disallow user-space visibility into some of the

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

2013-01-24 Thread Vineet Gupta
Per Al Viro's "signals for dummies" https://lkml.org/lkml/2012/12/6/366 there are 3 golden rules for (not) restarting syscalls: " What we need to guarantee is * restarts do not happen on signals caught in interrupts or exceptions * restarts do not happen on signals caught in sigreturn() * re

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

2013-01-24 Thread Vineet Gupta
ARC700 includes 2 in-core 32bit timers TIMER0 and TIMER1. Both have exactly same capabilies. * programmable to count from TIMER_CNT to TIMER_LIMIT * for count 0 and LIMIT ~1, provides a free-running counter by auto-wrapping when limit is reached. * optionally interrupt when LIMIT is reached (o

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

2013-01-24 Thread Vineet Gupta
This is minimal infrastructure needed for devicetree work. It uses an a sample "skeleton" devicetree - embedded in kernel image - to print the board, manufacturer by parsing the top-level "compatible" string. As of now we don't need any additional "board" specific "machine_desc". TODO: support in

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

2013-01-24 Thread Vineet Gupta
This patchset based off-of 3.8-rc4, adds the Linux kernel port to ARC700 processor family (750D and 770D) from Synopsys. I would be greatful for further review and feedback. Salient points about v3 patchset --- * All of the feedback from v2 patchseries has been addresse

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

Re: [PATCH] Add Intel Ivy bridge CPU flags

2013-01-24 Thread Michal Marek
On Wed, Jan 23, 2013 at 06:43:17PM +0100, Alec Bickerton wrote: > Hi, > > I'd like to submit the attached patch to add Ivy Bridge processor support to > the > processor type menu in menuconfig. Setting this configures the appropriate > CFLAGS (core-avx-i) for ivy bridge. > > As this is my first

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

2013-01-24 Thread Vineet Gupta
1. ./genfilelist.pl arch/arc/include/asm/ 2. Create arch/arc/include/uapi/asm/Kbuild as follows +# UAPI Header export list +include include/uapi/asm-generic/Kbuild.asm 3. ./disintegrate-one.pl arch/arc/include/{,uapi/}asm/ 4. Edit arch/arc/include/asm/Kbuild to remove ref to

[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 arch/arc/inclu

[PATCH v3 20/71] ARC: Signal handling

2013-01-24 Thread Vineet Gupta
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 as part of pt_regs). This is to make sure that that a Tracer (if tracing related signal) is able

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

[PATCH 1/6] ARM: davinci: da850: add OF_DEV_AUXDATA entry for I2C0

2013-01-24 Thread Vishwanathrao Badarkhe, Manish
Add OF_DEV_AUXDATA for I2C0 controller driver in da850 board dt file to use I2C0 clock. Signed-off-by: Vishwanathrao Badarkhe, Manish --- arch/arm/mach-davinci/da8xx-dt.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/m

[PATCH 5/6] ARM: regulator: add tps6507x device tree data

2013-01-24 Thread Vishwanathrao Badarkhe, Manish
Add device tree data for tps6507x regulator by adding all tps6507x regulator nodes. Regulators are initialized based on compatible name provided in tps6507x DT file. All tps6507x PMIC regulator device tree nodes are placed in a separate device tree include file (tps6507x.dtsi). tps6507x.dtsi file

[PATCH 4/6] davinci: regulator: tps6507x: add device tree support.

2013-01-24 Thread Vishwanathrao Badarkhe, Manish
Add device tree based initialization support for TI's tps6507x regulators. Add device tree binding document for TI's tps6507x using datasheet: http://www.ti.com/lit/ds/symlink/tps65070.pdf Signed-off-by: Vishwanathrao Badarkhe, Manish --- Documentation/devicetree/bindings/mfd/tps6507x.txt | 91

[PATCH 0/6] davinci: support for i2c0 and tps6507x

2013-01-24 Thread Vishwanathrao Badarkhe, Manish
This patch series enables device tree support for I2C0 and for regulator via tps6507x mfd device on da850-evm. Applies on top of v3.8-rc4 of linus tree. Tested on da850-evm device. Test procedure followed as below: Once device boots up, issue command as: $for reg in /sys/class/regulator/*; do e

[PATCH 6/6] ARM: davinci: da850: add tps6507x regulator DT data

2013-01-24 Thread Vishwanathrao Badarkhe, Manish
Add tps6507x regulator device tree data to da850-evm by adding regulator consumers with tightened constraints and regulator-name.TPS6507x regulator handle can be obtained by using this regulator name. Regulator constraints are added as per da850 board file. Regulator names are given as per maximum

[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
To avoid multiple syscall restarts (multiple signals) or no restart at all (sigreturn), we need just an extra bit of state "literally 1 bit" in struct pt_regs. orig_r8 is the best place to do this, however given the way it is encoded currently, we can't add anything simplistically. Current orig_r8

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

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

Re: [PATCH 2/2] mutex: use spin_[un]lock instead of arch_spin_[un]lock

2013-01-24 Thread Ingo Molnar
* Yuanhan Liu wrote: > On Thu, Jan 24, 2013 at 11:14:50AM +0100, Ingo Molnar wrote: > > > > * Yuanhan Liu wrote: > > > > > On Thu, Jan 24, 2013 at 10:58:07AM +0100, Ingo Molnar wrote: > > > > > > > > * Yuanhan Liu wrote: > > > > > > > > > Use spin_[un]lock instead of arch_spin_[un]lock in

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

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

2013-01-24 Thread Vineet Gupta
From: Gilad Ben-Yossef Implement ioremap_prot() to allow mapping IO memory with variable protection via TLB. Implementing this allows the /dev/mem driver to use its generic access() VMA callback, which in turn allows ptrace to examine data in memory mapped regions mapped via /dev/mem, such as Ar

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

2013-01-24 Thread Vineet Gupta
The orig platform code orgnaization was singleton design pattern - only one platform (and board thereof) would build at a time. Thus any platform/board specific code (e.g. irq init, early init ...) expected by ARC common code was exported as well defined set of APIs, with only ONE instance buildin

[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
* arc-uart platform device now populated dynamically, using of_platform_populate() - applies to any other device whatsoever. * uart in turn requires incore arc-intc to be also present in DT * A irq-domain needs to be instantiated for IRQ requests by DT probed device (e.g. arc-uart) TODO: swi

[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] mm: Rename page struct field helpers

2013-01-24 Thread Mel Gorman
The function names page_xchg_last_nid(), page_last_nid() and reset_page_last_nid() were judged to be inconsistent so rename them to a struct_field_op style pattern. As it looked jarring to have reset_page_mapcount() and page_nid_reset_last() beside each other in memmap_init_zone(), this patch also

[PATCH 3/6] davinci: mfd: tps6507x: add device-tree support.

2013-01-24 Thread Vishwanathrao Badarkhe, Manish
Add device tree based initialization support for TI's tps6507x mfd device. Signed-off-by: Vishwanathrao Badarkhe, Manish --- drivers/mfd/tps6507x.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/tps6507x.c b/drivers/mfd/tps6507x.c index 409afa2..5ad4

[PATCH v3 44/71] ARC: SMP support

2013-01-24 Thread Vineet Gupta
ARC common code to enable a SMP system + ISS provided SMP extensions. ARC700 natively lacks SMP support, hence some of the core features are are only enabled if SoCs have the necessary h/w pixie-dust. This includes: -Inter Processor Interrupts (IPI) -Cache coherency -load-locked/store-conditional

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

Re: [PATCH 1/2] regulator: tps65217: Fix using wrong dev argument for calling of_regulator_match

2013-01-24 Thread Mark Brown
On Thu, Jan 24, 2013 at 10:27:30AM +0800, Axel Lin wrote: > The dev parameter is the device requestiong the data. > In this case it should be &pdev->dev rather than pdev->dev.parent. Applied both, thanks. signature.asc Description: Digital signature

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

Re: [PATCH v2 repost] sched: cputime: avoid multiplication overflow (in common cases)

2013-01-24 Thread Stanislaw Gruszka
On Wed, Jan 23, 2013 at 04:58:14PM +0100, Frederic Weisbecker wrote: > Cool! So I can add your acked-by, right? I'll send this patch to Ingo soon. Sure. Acked-by: Stanislaw Gruszka Thanks Stanislaw -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messa

[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
As of now these default to calling the arch provided __copy_{to,from}_user() routines which being general purpose (w.r.t buffer alignment and lengths) would lead to alignment checks in generated code (for arches which don't support unaligned load/stores). Given that in this case we already know th

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

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

2013-01-24 Thread Vineet Gupta
ARC700 has an in-core intc which provides 2 priorities (a.k.a.) "levels" of interrupts (per IRQ) hencforth referred to as L1/L2 interrupts. CPU flags register STATUS32 has Interrupt Enable bits per level (E1/E2) to globally enable (or disable) all IRQs at a level. Hence the implementation of arch_

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

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

2013-01-24 Thread Vineet Gupta
N.B. This is old style of hardcoding platform device specific info in code and it's instantiation thererof using platform_add_devices(). Subsequent patches replace this with DeviceTree based runtime probe. This patch has been retained just as an example of "don't-do-this" for newer kernel ports.

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

2013-01-24 Thread Vineet Gupta
This includes recent changes to make handler "retry" and/or "killable" The killable (early exit) logic is loosely based on how SH implements it return if SIGKILL + either of VM_FAULT_OOM or VM_FAULT_RETRY which is different from Hexagon implementation which would NOT early exit for

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

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

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

[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 80bfe2a

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

2013-01-24 Thread Vineet Gupta
Override asm-generic implementations. We basically gain on 2 fronts * checks for alignment no longer needed as we are only doing "unit" sized copies. (Careful observer could argue that While the kernel buffers are aligned, the user buffer in theory might not be - however in that case the

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

2013-01-24 Thread Vineet Gupta
ARC700 doesn't natively support unaligned access, but can be emulated -Unaligned Access Exception -Disassembly at the Fault address to find the exact insn (long/short) Also per Arnd's comment, we runtime control it using 2 sysctl knobs: * SYSCTL_ARCH_UNALIGN_ALLOW: Runtime enable/disble * SYSCTL_A

[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(+), 0

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

[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" Cc: Helge

[v4 0/6] ARM: Initial support for Tegra114 SoC

2013-01-24 Thread Hiroshi Doyu
Hi, This patchset adds initial support for NVIDIA's new Tegra114 SoC (T114) based on the ARM Cortex-A15 MP. This has the minimal support to allow the kernel to boot up into shell console. This can be used as a basis for adding other device drivers for this SoC. Currently there are 2 evaluation boa

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

[v4 1/6] ARM: tegra: Use DT /cpu node to detect number of CPU core

2013-01-24 Thread Hiroshi Doyu
Tegra SoCs does not use SCU based to detect CPU core numbers but they use DT /cpu node. If it's not provided or failed, it continues as a single core. Signed-off-by: Hiroshi Doyu Reviewed-by: Lorenzo Pieralisi --- Based on the discussion: http://lists.infradead.org/pipermail/linux-arm-kernel/201

[v4 4/6] ARM: dt: tegra114: Add new board, Dalmore

2013-01-24 Thread Hiroshi Doyu
Add a new evaluation board, Dalmore for Tegra 114 family. Signed-off-by: Hiroshi Doyu --- arch/arm/boot/dts/Makefile |3 ++- arch/arm/boot/dts/tegra114-dalmore.dts | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts

[v4 5/6] ARM: dt: tegra114: Add new board, Pluto

2013-01-24 Thread Hiroshi Doyu
Add a new evaluation board, Pluto for Tegra 114 family. Signed-off-by: Hiroshi Doyu --- arch/arm/boot/dts/Makefile |3 ++- arch/arm/boot/dts/tegra114-pluto.dts | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/tegra

[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 69a

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

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

2013-01-24 Thread Vineet Gupta
All the current platforms can work with 0x8000_ based dma_addr_t since the Bus Bridges typically ignore the top bit (the only excpetion was Angel4 PCI-AHM bridge which we no longer care for). That way we don't need plat-specific cpu-addr to bus-addr conversion. Hooks still provided - just in c

Re: [PATCH 1/2] i2c-core: Add gpio based bus arbitration implementation

2013-01-24 Thread Wolfram Sang
Hi, On Sat, Dec 15, 2012 at 11:21:36PM +0900, Mark Brown wrote: > On Fri, Dec 14, 2012 at 09:06:49AM -0700, Stephen Warren wrote: > > On 12/13/2012 10:50 PM, Naveen Krishna Chatradhi wrote: > > > > +The first should be an output, and is used to claim the I2C bus, > > > +the second should be an in

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

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

2013-01-24 Thread Vineet Gupta
-Top level ARC makefile removes -I for platform headers -asm/irq.h no longer includes plat/irq.h -platform makefile adds -I for it's specfic platform headers -platform code to directly include it's plat/irq.h -Linker script needed plat/memmap.h for CCM info, already in .config Signed-off-by: Vin

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

2013-01-24 Thread Vineet Gupta
This mini patchseries addresses the lack of multi-platform-image support in ARC port. Older build system only supported one platform(soc) to build at a time and further only one board of that platform could be built. There was no technical reason for that - we just didn't have the need. So the fi

Re: [Linux-c6x-dev] [PATCH 3/9] c6x: Provide dma_mmap_coherent() and dma_get_sgtable()

2013-01-24 Thread James Bottomley
On Wed, 2013-01-23 at 18:44 +0100, Marek Szyprowski wrote: > On 1/23/2013 11:29 AM, James Bottomley wrote: > > On Wed, 2013-01-23 at 10:47 +0100, Marek Szyprowski wrote: > > > On 1/22/2013 11:13 AM, James Bottomley wrote: > > > > There might be a simple solution: just replace void *cpu_addr with

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

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

Re: [PATCH] Add Intel Ivy bridge CPU flags

2013-01-24 Thread Borislav Petkov
On Thu, Jan 24, 2013 at 11:53:43AM +0100, Michal Marek wrote: > On Wed, Jan 23, 2013 at 06:43:17PM +0100, Alec Bickerton wrote: > > Hi, > > > > I'd like to submit the attached patch to add Ivy Bridge processor support > > to the > > processor type menu in menuconfig. Setting this configures the a

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

[v4 3/6] ARM: dt: tegra114: Add new SoC base, Tegra114 SoC

2013-01-24 Thread Hiroshi Doyu
Initial support for Tegra 114 SoC. This is expected to be included in the board DTS files, Tegra 114 SoC based evaluation board family. Signed-off-by: Hiroshi Doyu --- arch/arm/boot/dts/tegra114.dtsi | 114 +++ 1 file changed, 114 insertions(+) create mode 1

[GIT PULL] regmap updates for v3.4

2013-01-24 Thread Mark Brown
The following changes since commit 7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619: Linux 3.8-rc4 (2013-01-17 19:25:45 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-fix-3.8-rc4 for you to fetch changes up to af4ca6a8086

[v4 6/6] ARM: tegra: Add initial support for Tegra114 SoC.

2013-01-24 Thread Hiroshi Doyu
Add new Tegra 114 SoC support. Signed-off-by: Hiroshi Doyu --- arch/arm/mach-tegra/Kconfig | 10 +++ arch/arm/mach-tegra/Makefile|1 + arch/arm/mach-tegra/board-dt-tegra114.c | 48 +++ arch/arm/mach-tegra/common.c|1

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

[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/linkage.h

Re: [PATCH] scripts/coccinelle/misc/semicolon.cocci: Add unneeded semicolon test

2013-01-24 Thread Michal Marek
On 23.1.2013 22:41, Peter Senna Tschudin wrote: > ping pong I added the patch to kbuild.git#misc now, sorry for the delay. Michal -- 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.k

[v4 2/6] ARM: tegra: fuse: Add chip ID Tegra114 0x35

2013-01-24 Thread Hiroshi Doyu
Add tegra_chip_id TEGRA114 0x35 Signed-off-by: Hiroshi Doyu --- arch/arm/mach-tegra/fuse.h |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-tegra/fuse.h b/arch/arm/mach-tegra/fuse.h index ff1383d..da78434 100644 --- a/arch/arm/mach-tegra/fuse.h +++ b/arch/arm/mach-tegra/fuse.

Re: [PATCH 1/2] i2c-core: Add gpio based bus arbitration implementation

2013-01-24 Thread Mark Brown
On Thu, Jan 24, 2013 at 12:13:29PM +0100, Wolfram Sang wrote: > On Sat, Dec 15, 2012 at 11:21:36PM +0900, Mark Brown wrote: > > also get things like read operations which appear as multiple > > transactions on the I2C bus so require something higher level than what > > multi-master provides. > I

[PATCH v3 09/71] asm-generic headers: Allow yet more arch overrides in checksum.h

2013-01-24 Thread Vineet Gupta
arches can have more efficient implementation of these routines Acked-by: Arnd Bergmann Signed-off-by: Vineet Gupta --- include/asm-generic/checksum.h |4 lib/checksum.c |2 ++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/checks

[PATCH v3 12/71] ARC: Spinlock/rwlock/mutex primitives

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta Acked-by: Arnd Bergmann --- arch/arc/include/asm/mutex.h |9 ++ arch/arc/include/asm/spinlock.h | 144 + arch/arc/include/asm/spinlock_types.h | 35 3 files changed, 188 insertions(+), 0 deletions(-) crea

[PATCH v3 38/71] ARC: ptrace support

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta Acked-by: Arnd Bergmann --- arch/arc/Kconfig |1 + arch/arc/kernel/Makefile |3 + arch/arc/kernel/entry.S | 68 +++ arch/arc/kernel/ptrace.c | 136 +- 4 files changed, 206 insertions(+

[PATCH v3 35/71] ARC: Last bits (stubs) to get to a running kernel with UART

2013-01-24 Thread Vineet Gupta
This was part of port buildup strategy from Arnd to have a minimal kernel at first and then add optional features (stacktracing, ptrace, smp, kprobes, oprofile) Signed-off-by: Vineet Gupta --- arch/arc/kernel/ptrace.c | 26 arch/arc/kernel/stacktrace.c |

[PATCH v3 36/71] ARC: [plat-arcfpga] defconfig

2013-01-24 Thread Vineet Gupta
With this we get to a running kernel on ISS -->8--- Linux version 3.8.0-rc3+ (vineetg@vineetg-Latitude) (gcc version 4.4.7 (ARCompact elf32 toolchain (built 20121213)) ) #3 Thu Jan 17 14:22:05 IST 2013 Board "arc-angel4" from snps (Ma

[PATCH v3 27/71] ARC: TLB flush Handling

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/tlb.h | 17 ++ arch/arc/include/asm/tlbflush.h | 28 arch/arc/mm/tlb.c | 311 +++ 3 files changed, 356 insertions(+), 0 deletions(-) create mode 100644 arch/arc/include/asm/tlbfl

[PATCH v3 16/71] ARC: Non-MMU Exception Handling

2013-01-24 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/hw_irq.h |7 -- arch/arc/kernel/traps.c | 125 + 2 files changed, 125 insertions(+), 7 deletions(-) delete mode 100644 arch/arc/include/asm/hw_irq.h create mode 100644 arch/arc/kernel/traps.c

<    1   2   3   4   5   6   7   8   9   10   >