[PATCH v2 21/44] metag: ptrace

2012-12-05 Thread James Hogan
to the state of the Meta read pipeline which can be used to hide memory latencies in hand optimised data loops. Extended DSP register state, DSP RAM, and hardware breakpoint registers aren't yet exposed through ptrace. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/asm/ptrace.h

[PATCH v2 35/44] mm: define VM_GROWSUP for CONFIG_METAG

2012-12-05 Thread James Hogan
CONFIG_STACK_GROWSUP. Therefore add an ifdef for CONFIG_METAG to also set VM_GROWSUP. Signed-off-by: James Hogan james.ho...@imgtec.com --- include/linux/mm.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index bcaab4e..85c1df8 100644

[PATCH v2 36/44] Add metag to various Kconfig dependency lists

2012-12-05 Thread James Hogan
architecture doesn't support VGA so add METAG to the list of architectures not to build support on. TODO: invert the dependency logic of most of these with the help of a new LEGACY_PC_IO Kconfig symbol Signed-off-by: James Hogan james.ho...@imgtec.com --- drivers/char/Kconfig

[PATCH v2 44/44] fs: imgdafs: Add IMG DAFS filesystem for metag

2012-12-05 Thread James Hogan
Add the IMG Debug Adapter File System (DAFS) for metag, which uses SWITCH operations to communicate with a file server on a host computer via a JTAG debug adapter. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Alexander Viro v...@zeniv.linux.org.uk Cc: linux-fsde...@vger.kernel.org

[PATCH v2 43/44] tty/metag_da: Add metag DA TTY driver

2012-12-05 Thread James Hogan
Add a TTY driver for communicating over a Meta DA (Debug Adapter) channel using the bios channel SWITCH operation. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- MAINTAINERS|1 + arch/metag/Kconfig

[PATCH v2 42/44] metag: Add JTAG Debug Adapter (DA) support

2012-12-05 Thread James Hogan
Add basic JTAG Debug Adapter (DA) support so that drivers which communicate with the DA can detect whether one is actually present (otherwise the target will halt indefinitely). Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/Kconfig |9 ++ arch/metag

[PATCH v2 41/44] metag: OProfile

2012-12-05 Thread James Hogan
Add oprofile support for metag. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/Kconfig|1 + arch/metag/Makefile |2 + arch/metag/oprofile/Makefile | 16 ++ arch/metag/oprofile/backtrace.c | 134

[PATCH v2 40/44] scripts/checkstack.pl: Add metag support

2012-12-05 Thread James Hogan
Adapt checkstack.pl so that it works for metag. Signed-off-by: James Hogan james.ho...@imgtec.com --- scripts/checkstack.pl |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 17e3843..544aa56 100755 --- a/scripts

[PATCH v2 38/44] metag: Perf

2012-12-05 Thread James Hogan
Add Perf support for metag. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/Kconfig |1 + arch/metag/include/asm/perf_event.h |4 + arch/metag/kernel/Makefile |2 + arch/metag/kernel/perf/Makefile |3 + arch/metag/kernel/perf

[PATCH v2 37/44] metag: Build infrastructure

2012-12-05 Thread James Hogan
Add metag build infrastructure. TODO: use generic CMDLINE Kconfig symbols Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/Kconfig | 299 arch/metag/Kconfig.debug | 40 + arch/metag/Kconfig.soc

[PATCH v2 22/44] metag: Time keeping

2012-12-05 Thread James Hogan
Add time keeping code for metag. Meta hardware threads have 2 timers. The background timer (TXTIMER) is used as a free-running time base, and the interrupt timer (TXTIMERI) is used for the timer interrupt. Both counters traditionally count at approximately 1MHz. Signed-off-by: James Hogan

[PATCH v2 20/44] metag: Device tree

2012-12-05 Thread James Hogan
Add device tree files to arch/metag. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/boot/dtb/Makefile | 17 ++ arch/metag/boot/dts/skeleton.dts | 10 arch/metag/boot/dts/skeleton.dtsi | 14 + arch/metag/include/asm/prom.h | 23 + arch

[PATCH v2 39/44] metag: ftrace support

2012-12-05 Thread James Hogan
Add ftrace support for metag. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/Kconfig |5 ++ arch/metag/include/asm/Kbuild |1 - arch/metag/include/asm/ftrace.h | 23 +++ arch/metag/kernel/ftrace.c | 127

[PATCH v2 34/44] metag: Various other headers

2012-12-05 Thread James Hogan
Add the remaining metag header files: - byteorder.h, swab.h (byte order and swapping) - barrier.h, cpu.h. hwthread.h, processor.h (hardware thread related) - bug.h, elf.h, gpio.h, linkage.h, resource.h (other) Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/asm

[PATCH v2 33/44] metag: Stack unwinding

2012-12-05 Thread James Hogan
Add stack unwinding support for metag. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/asm/stacktrace.h | 20 arch/metag/kernel/stacktrace.c | 187 +++ 2 files changed, 207 insertions(+), 0 deletions(-) create mode 100644

[PATCH v2 31/44] metag: DMA

2012-12-05 Thread James Hogan
Add DMA mapping code. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/asm/dma-mapping.h | 183 arch/metag/kernel/dma.c | 507 ++ 2 files changed, 690 insertions(+), 0 deletions(-) create mode 100644 arch/metag

[PATCH v2 30/44] metag: SMP support

2012-12-05 Thread James Hogan
Add SMP support for metag. This allows Linux to take control of multiple hardware threads on a single Meta core, treating them as separate Linux CPUs. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/asm/cachepart.h | 42 +++ arch/metag/include/asm/core_reg.h |7

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

2013-02-08 Thread James Hogan
On 08/02/13 03:17, Rusty Russell wrote: James Hogan james.ho...@imgtec.com writes: 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

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

2013-02-11 Thread James Hogan
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 vineet.gup...@synopsys.com wrote: The only downside of this patch is that userspace signal stack grows in size, since signal frame only cares about scratch

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

2013-02-11 Thread James Hogan
On 11/02/13 10:53, Jonas Bonn wrote: On 11 February 2013 11:28, James Hogan james.ho...@imgtec.com 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 vineet.gup...@synopsys.com wrote: The only downside

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

2013-02-11 Thread James Hogan
Hi Jonas, On 11/02/13 10:53, Jonas Bonn wrote: And now that I think about it some more, I think this is done incorrectly in the openrisc arch, too, as the fast-path for rt_sigreturn probably only restores the call-clobbered regs. sigreturn probably needs to be special-cased to _always_

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

2013-02-11 Thread James Hogan
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 +++ b/arch/arc/Kconfig @@ -0,0 +1,328 @@ +# +# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) +# +#

Re: [PATCH] Centralise CONFIG_ARCH_NO_VIRT_TO_BUS

2013-02-11 Thread James Hogan
Hi Stephen, On 12/11/12 21:26, Stephen Rothwell wrote: Make if easier for more architectures to select it and thus disable drivers that use virt_to_bus(). Signed-off-by: Stephen Rothwell s...@canb.auug.org.au I was just wondering what the status of this patch is? It was in -next for a while

Re: [RESEND PATCH] scsi: make struct scsi_varlen_cdb_hdr packed

2013-02-11 Thread James Hogan
Hi James, On 11/10/12 15:10, James Hogan wrote: On 11/10/12 13:58, James Bottomley wrote: On Thu, 2012-10-11 at 12:32 +0100, James Hogan wrote: On 11/10/12 11:24, James Bottomley wrote: On Thu, 2012-10-11 at 10:15 +0100, James Hogan wrote: The struct scsi_varlen_cdb_hdr is expected

[PATCH 1/1] genksyms: fix metag symbol prefix on crc symbols

2013-02-11 Thread James Hogan
Meta uses symbol prefixes, so add metag to the list of architectures to set the mod_prefix to _ for. This fixes __crc_* symbols to add the extra underscore to match _CRC_SYMBOL macro in linux/export.h and so that modpost finds them. Signed-off-by: James Hogan james.ho...@imgtec.com --- scripts

Re: [PATCH] Centralise CONFIG_ARCH_NO_VIRT_TO_BUS

2013-02-12 Thread James Hogan
On 12/02/13 11:47, Stephen Rothwell wrote: Change it to CONFIG_HAVE_VIRT_TO_BUS and set it in all architecures nit: typo in architecures that already provide virt_to_bus(). Signed-off-by: Stephen Rothwell s...@canb.auug.org.au Reviewed-by: James Hogan james.ho...@imgtec.com Cheers James

Re: [PATCH 1/1] genksyms: fix metag symbol prefix on crc symbols

2013-02-12 Thread James Hogan
On 11/02/13 15:57, James Hogan wrote: Meta uses symbol prefixes, so add metag to the list of architectures to set the mod_prefix to _ for. This fixes __crc_* symbols to add the extra underscore to match _CRC_SYMBOL macro in linux/export.h and so that modpost finds them. Signed-off-by: James

[PATCH -next 1/1] net: skbuff: fix compile error in skb_panic()

2013-02-13 Thread James Hogan
, but the argument masks the panic() function declaration, resulting in the following error (gcc 4.2.4): net/core/skbuff.c In function 'skb_panic': net/core/skbuff.c +126 : error: called object 'panic' is not a function This is fixed by renaming the argument to msg. Signed-off-by: James Hogan james.ho

[PATCH 0/5] metag: second set of misc patches for v3.9

2013-02-13 Thread James Hogan
Here is the second set of miscellaneous metag patches that I'll be adding to the tip of the metag tree for v3.9. James Hogan (5): metag: export metag_code_cache_flush_all metag: export clear_page and copy_page metag: hugetlb: convert to vm_unmapped_area() genksyms: fix metag symbol prefix

[PATCH 2/5] metag: export clear_page and copy_page

2013-02-13 Thread James Hogan
the errors. This was hit by a randconfig build. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/kernel/metag_ksyms.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/metag/kernel/metag_ksyms.c b/arch/metag/kernel/metag_ksyms.c index 5381514..1b27bea

[PATCH 5/5] metag: move irq enable out of irqflags.h on SMP

2013-02-13 Thread James Hogan
inline. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/asm/irqflags.h | 11 +-- arch/metag/kernel/traps.c | 15 ++- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/arch/metag/include/asm/irqflags.h b/arch/metag/include/asm

[PATCH 4/5] genksyms: fix metag symbol prefix on crc symbols

2013-02-13 Thread James Hogan
Meta uses symbol prefixes, so add metag to the list of architectures to set the mod_prefix to _ for. This fixes __crc_* symbols to add the extra underscore to match _CRC_SYMBOL macro in linux/export.h and so that modpost finds them. Signed-off-by: James Hogan james.ho...@imgtec.com --- scripts

[PATCH 3/5] metag: hugetlb: convert to vm_unmapped_area()

2013-02-13 Thread James Hogan
mm_struct' has no member named 'cached_hole_size' Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Michel Lespinasse wal...@google.com --- arch/metag/mm/hugetlbpage.c | 52 -- 1 files changed, 10 insertions(+), 42 deletions(-) diff --git a/arch/metag/mm

[PATCH 1/5] metag: export metag_code_cache_flush_all

2013-02-13 Thread James Hogan
. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/mm/cache.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/metag/mm/cache.c b/arch/metag/mm/cache.c index 4dd96e4..b5d3b2e 100644 --- a/arch/metag/mm/cache.c +++ b/arch/metag/mm/cache.c @@ -460,6 +460,7

[PATCH RESEND 1/1] arch Kconfig: remove references to IRQ_PER_CPU

2013-02-04 Thread James Hogan
completely unused so remove the remaining references. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Thomas Gleixner t...@linutronix.de Cc: Mike Frysinger vap...@gentoo.org Cc: Fenghua Yu fenghua...@intel.com Cc: Ralf Baechle r...@linux-mips.org Cc: James E.J. Bottomley j...@parisc-linux.org Cc

Re: linux-next: Tree for Feb 4

2013-02-04 Thread James Hogan
Hi Stephen, On 4 February 2013 07:39, Stephen Rothwell s...@canb.auug.org.au wrote: Merging signal/for-next (9005965 x86: convert to ksignal) CONFLICT (content): Merge conflict in arch/x86/Kconfig I think this conflict has been resolved incorrectly. Al's commit 1820f96 burying unused

next-20130204 - bisected slab problem to slab: Common constants for kmalloc boundaries

2013-02-04 Thread James Hogan
Hi, I've hit boot problems in next-20130204 on Meta: META213-Thread0 DSP [LogF] kobject (4fc03980): tried to init an initialized object, something is seriously wrong. META213-Thread0 DSP [LogF] META213-Thread0 DSP [LogF] Call trace: META213-Thread0 DSP [LogF] [4000888c] _show_stack+0x68/0x7c

Re: next-20130204 - bisected slab problem to slab: Common constants for kmalloc boundaries

2013-02-05 Thread James Hogan
On 04/02/13 19:22, Christoph Lameter wrote: On Mon, 4 Feb 2013, James Hogan wrote: I've hit boot problems in next-20130204 on Meta: Meta is an arch that is not in the tree yet? How would I build for meta? Yes (well, it's in -next now, so merging the for-next branch of git://github.com

Re: [PATCH 1/1] depmod: pass -P $CONFIG_SYMBOL_PREFIX

2013-02-05 Thread James Hogan
Hi Mike, On 03/02/13 06:17, Mike Frysinger wrote: On Thursday 31 January 2013 04:41:43 James Hogan wrote: --- a/Makefile +++ b/Makefile +ifneq ($(patsubst %,%,$(CONFIG_SYMBOL_PREFIX)),) + depmod_args = -P $(patsubst %,%,$(CONFIG_SYMBOL_PREFIX)) +endif ... # Run depmod only if we have

linux-next: arch/metag tree change

2013-02-05 Thread James Hogan
Hi Stephen, Please can you update the git url of the arch/metag tree in -next to: git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag.git for-next Thanks James -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: next-20130204 - bisected slab problem to slab: Common constants for kmalloc boundaries

2013-02-05 Thread James Hogan
Hi Christoph, On 04/02/13 19:22, Christoph Lameter wrote: What are the values of MAX_ORDER 10 PAGE_SHIFT 12 ARCH_DMA_MINALIGN 64 (it works if changed to 8) CONFIG_ZONE_DMA not defined Cheers James -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

[PATCH 0/2] tty: metag_da: fix flipping after tty changes

2013-02-05 Thread James Hogan
of it. How is this sort of thing usually handled? I suppose either I squash it into the original driver and base it on tty-next, move it into tty-next, or just fix it up afterwards? James Hogan (2): tty: metag_da: update flip functions to use tty_port tty: metag_da: avoid getting tty kref

[PATCH 1/2] tty: metag_da: update flip functions to use tty_port

2013-02-05 Thread James Hogan
Commit TTY: switch tty_flip_buffer_push and TTY: convert more flipping functions switched tty_flip_buffer_push() and tty_prepare_flip_string() to take tty_port rather than a tty_struct. Convert the metag_da tty driver similarly. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Jiri Slaby

[PATCH 2/2] tty: metag_da: avoid getting tty kref in dashtty_timer()

2013-02-05 Thread James Hogan
Getting the tty kref in dashtty_timer() is no longer necessary since it isn't needed in fetch_data() any longer (due to changes which make the tty flip functions refer to tty_ports instead of tty_structs), so just pass around a channel number instead. Signed-off-by: James Hogan james.ho

Re: [PATCH 0/2] tty: metag_da: fix flipping after tty changes

2013-02-05 Thread James Hogan
On 05/02/13 15:15, Jiri Slaby wrote: On 02/05/2013 03:40 PM, James Hogan wrote: The first patch fixes up tty/metag_da after Jiri's changes, TTY: switch tty_flip_buffer_push and TTY: convert more flipping functions, switched tty_flip_buffer_push() and tty_prepare_flip_string() to take tty_port

Re: next-20130204 - bisected slab problem to slab: Common constants for kmalloc boundaries

2013-02-05 Thread James Hogan
On 05/02/13 16:36, Christoph Lameter wrote: OK I was able to reproduce it by setting ARCH_DMA_MINALIGN in slab.h. This patch fixes it here: Subject: slab: Handle ARCH_DMA_MINALIGN correctly A fixed KMALLOC_SHIFT_LOW does not work for arches with higher alignment requirements.

Re: next-20130204 - bisected slab problem to slab: Common constants for kmalloc boundaries

2013-02-06 Thread James Hogan
On 05/02/13 18:34, Christoph Lameter wrote: On Tue, 5 Feb 2013, James Hogan wrote: On 05/02/13 16:36, Christoph Lameter wrote: OK I was able to reproduce it by setting ARCH_DMA_MINALIGN in slab.h. This patch fixes it here: Subject: slab: Handle ARCH_DMA_MINALIGN correctly A fixed

[PATCH v2 1/1] depmod: pass -P $CONFIG_SYMBOL_PREFIX

2013-02-06 Thread James Hogan
--version reports module-init-tools with a version number 3.13 otherwise it appends -P $SYMBOL_PREFIX to the depmod command line. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Michal Marek mma...@suse.cz Cc: linux-kbu...@vger.kernel.org Cc: Mike Frysinger vap...@gentoo.org Cc: Yoshinori Sato ys

[PATCH 1/1] openrisc: remove CONFIG_SYMBOL_PREFIX

2013-02-06 Thread James Hogan
Remove the SYMBOL_PREFIX Kconfig symbol as it's empty anyway. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Jonas Bonn jo...@southpole.se Cc: li...@lists.openrisc.net Cc: Mike Frysinger vap...@gentoo.org --- arch/openrisc/Kconfig |4 1 files changed, 0 insertions(+), 4 deletions

Re: linux-next: manual merge of the metag tree with the arc tree

2013-02-06 Thread James Hogan
On 06/02/13 00:03, Stephen Rothwell wrote: Hi James, Today's linux-next merge of the metag tree got a conflict in tools/perf/perf.h between commit 12bf48ef6194 (perf, ARC: Enable building perf tools for ARC) from the arc tree and commit 6c4a2bebec36 (perf: Enable building perf tools for

Re: Heads up on a device tree change

2013-02-06 Thread James Hogan
On 06/02/13 13:11, Grant Likely wrote: Hi Stephen, I've just pushed out a change which cleans up platform device registration to use the same path whether or not the device tree is used. It should be safe, but there is a risk of breakage on powerpc platforms. The patch has two effects of

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

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

[PATCH 2/2] tty: metag_da: avoid getting tty kref in dashtty_timer()

2013-02-06 Thread James Hogan
Getting the tty kref in dashtty_timer() is no longer necessary since it isn't needed in fetch_data() any longer (due to changes which make the tty flip functions refer to tty_ports instead of tty_structs), so just pass around a channel number instead. Signed-off-by: James Hogan james.ho

[PATCH 1/2] tty: metag_da: Add metag DA TTY driver

2013-02-06 Thread James Hogan
Add a TTY driver for communicating over a Meta DA (Debug Adapter) channel using the bios channel SWITCH operation. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Jiri Slaby jsl...@suse.cz Acked-by: Greg Kroah-Hartman gre...@linuxfoundation.org --- The only changes compared to v4 of arch

[PATCH 0/2] tty: metag_da: Add metag DA TTY driver

2013-02-06 Thread James Hogan
bits. Both parts have already been reviewed (and I squashed the buffer flipping change into the first patch). Sorry for all the resends by the way. I think I should have just aimed for the tty tree in the first place :-) I'll know for future. James Hogan (2): tty: metag_da: Add metag DA TTY driver

Re: [PATCH v4 43/43] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-02-06 Thread James Hogan
Ping. Any chance of an Ack from somebody on this patch? I'm currently holding off including it in the arch/metag tree. Thanks James On 29/01/13 14:15, James Hogan wrote: Add the IMG Debug Adapter File System (DAFS) for metag, which uses SWITCH operations to communicate with a file server

Re: Heads up on a device tree change

2013-02-07 Thread James Hogan
On 06/02/13 14:28, Grant Likely wrote: On Wed, Feb 6, 2013 at 1:32 PM, James Hogan james.ho...@imgtec.com wrote: On 06/02/13 13:11, Grant Likely wrote: - Resources on platform_devices get registered so they appear in /proc/iomem and /proc/ioports and so that device drivers get the added

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

2013-02-07 Thread James Hogan
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 doesn't exist yet), causing a compile error on metag in -next when the

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

2013-01-29 Thread James Hogan
Hi Vineet, arm64 also adds dtbs and $(dtb-y) to targets (at least in linux-next). I think this makes sure that they don't get rebuilt unless they've actually changed. I've also copied this for metag. Did you verify that it makes a difference - at least at my end it's not - the default dtb

[PATCH v4 26/43] metag: Scheduling/Process management

2013-01-29 Thread James Hogan
Signed-off-by: James Hogan james.ho...@imgtec.com --- v4: * fix idle race (requires use of inline asm to trigger irq entry rather than SWITCH instruction) (Arnd) arch/metag/include/asm/thread_info.h | 155 arch/metag/kernel/process.c | 461

[PATCH v4 42/43] tty/metag_da: Add metag DA TTY driver

2013-01-29 Thread James Hogan
Add a TTY driver for communicating over a Meta DA (Debug Adapter) channel using the bios channel SWITCH operation. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Alan Cox a...@lxorguk.ukuu.org.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Jiri Slaby jsl...@suse.cz Cc: Andrew

[PATCH v4 19/43] metag: Device tree

2013-01-29 Thread James Hogan
Add device tree files to arch/metag. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com Cc: devicetree-disc...@lists.ozlabs.org Cc: Sam Ravnborg s...@ravnborg.org --- v4: * move dtb directory into dts and use

[PATCH v4 43/43] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-01-29 Thread James Hogan
Add the IMG Debug Adapter File System (DAFS) for metag, which uses SWITCH operations to communicate with a file server on a host computer via a JTAG debug adapter. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Alexander Viro v...@zeniv.linux.org.uk Cc: Andrew Morton a...@linux

[PATCH v4 21/43] metag: Time keeping

2013-01-29 Thread James Hogan
Add time keeping code for metag. Meta hardware threads have 2 timers. The background timer (TXTIMER) is used as a free-running time base, and the interrupt timer (TXTIMERI) is used for the timer interrupt. Both counters traditionally count at approximately 1MHz. Signed-off-by: James Hogan

[PATCH v4 00/43] Meta Linux Kernel Port

2013-01-29 Thread James Hogan
* update DA TTY to be more thread safe and use tty_ports * switch to generic sys_execve James Hogan (43): asm-generic/io.h: check CONFIG_VIRT_TO_BUS asm-generic/unistd.h: handle symbol prefixes in cond_syscall Revert some of binfmt_elf: cleanups Add HAVE_64BIT_ALIGNED_ACCESS trace

linux-next: new arch/metag tree

2013-01-29 Thread James Hogan
Hi Stephen, Please can you add the following branch to linux-next for Meta architecture support: git://github.com/jahogan/metag-linux.git for-next (this is currently v4 of the patchset excluding the last two patches, the tty and fs drivers, as I'd like acks first). Thanks James -- To

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

2013-01-29 Thread James Hogan
Hi Vineet, On 24/01/13 11:06, Vineet Gupta wrote: Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Robert Richter r...@kernel.org Cc: oprofile-l...@lists.sf.net --- arch/arc/Kconfig |1 + arch/arc/Makefile |2 ++ arch/arc/oprofile/Makefile |9 +

Re: [PATCH v3 43/44] tty/metag_da: Add metag DA TTY driver

2013-01-30 Thread James Hogan
On 30/01/13 05:14, Greg Kroah-Hartman wrote: On Fri, Jan 25, 2013 at 11:36:53AM +, James Hogan wrote: Hi, On 14/01/13 10:54, James Hogan wrote: Here's a new version addressing Jiri's feedback. Add a TTY driver for communicating over a Meta DA (Debug Adapter) channel using the bios

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

2013-01-30 Thread James Hogan
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 include/linux/oprofile.h will presumably define oprofile_perf_init as just a pr_info(...); return -ENODEV; Similarly drivers

[PATCH 1/1] depmod: pass -P $CONFIG_SYMBOL_PREFIX

2013-01-31 Thread James Hogan
arguments if depmod --version reports module-init-tools with a version number 3.13. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Michal Marek mma...@suse.cz Cc: linux-kbu...@vger.kernel.org Cc: Mike Frysinger vap...@gentoo.org Cc: Yoshinori Sato ys...@users.sourceforge.jp Cc: uclinux-dist

Re: [PATCH 1/1] depmod: pass -P $CONFIG_SYMBOL_PREFIX

2013-01-31 Thread James Hogan
Hi Michal, On 31/01/13 10:37, Michal Marek wrote: On 31.1.2013 10:41, James Hogan wrote: On architectures which have symbol prefixes, depmod emits lots of false warnings like this: WARNING: $module.ko needs unknown symbol $symbol This is because depmod isn't being passed the -P

[PATCH 1/6] metag: add __init to metag_cache_probe()

2013-02-01 Thread James Hogan
metag_cache_probe() is only called from setup_arch(), so add the __init attribute to it. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/mm/cache.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/metag/mm/cache.c b/arch/metag/mm/cache.c index

[PATCH 3/6] perf: Enable building perf tools for Meta

2013-02-01 Thread James Hogan
Define rmb(), cpu_relax(), and CPUINFO_PROC for Meta so that the perf tools can be built for Meta. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Peter Zijlstra a.p.zijls...@chello.nl Cc: Paul Mackerras pau...@samba.org Cc: Ingo Molnar mi...@redhat.com Cc: Arnaldo Carvalho de Melo

[PATCH 4/6] metag: kernel/setup.c: sort includes

2013-02-01 Thread James Hogan
Sort includes in kernel/setup.c. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/kernel/setup.c | 46 ++-- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c index

[PATCH 0/6] metag: misc priv patches

2013-02-01 Thread James Hogan
Here are some additional metag patches I intend to add on top of the existing v4 arch/metag patchset. James Hogan (6): metag: add __init to metag_cache_probe() metag: add boot time LNKGET/LNKSET check perf: Enable building perf tools for Meta metag: kernel/setup.c: sort includes metag

[PATCH 6/6] metag: protect more non-MMU memory regions

2013-02-01 Thread James Hogan
-0x048f - TxSYREG:0x0400-0x04000fff (except write fetch system event) Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/asm/processor.h |2 +- arch/metag/kernel/setup.c | 45 arch/metag/kernel/smp.c

[PATCH 2/6] metag: add boot time LNKGET/LNKSET check

2013-02-01 Thread James Hogan
WARN (user) !SMP around pr_warn Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/mm/cache.c | 79 + 1 files changed, 79 insertions(+), 0 deletions(-) diff --git a/arch/metag/mm/cache.c b

[PATCH 5/6] metag: make TXPRIVEXT bits explicit

2013-02-01 Thread James Hogan
Define PRIV_BITS using explicit constants from asm/metag_regs.h rather than with a hard coded value. This also adds a couple of missing definitions for the TXPRIVEXT priv bits for protecting writes to TXTIMER and the trace registers. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch

[PATCH 4/5] metag: remove CONFIG_EXPERIMENTAL from defconfigs

2013-02-26 Thread James Hogan
Since upstream commit make CONFIG_EXPERIMENTAL invisible and default CONFIG_EXPERIMENTAL is invisible and defaults to y pending it's removal. Therefore remove the explicit selection from the metag defconfig files. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/configs

[PATCH 5/5] metag: remove unused ARCH_NO_VIRT_TO_BUS

2013-02-26 Thread James Hogan
/metag/Kconfig. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Stephen Rothwell s...@canb.auug.org.au Cc: Andrew Morton a...@linux-foundation.org --- arch/metag/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/metag/Kconfig b/arch/metag/Kconfig index bc3de76..afc8973 100644

[PATCH 0/5] metag: minor fixes after stuff in -next

2013-02-26 Thread James Hogan
Here are a few trivial fixes to arch/metag/. All except the first patch depend on stuff in -next. Except arch/metag, only the last patch depends on something not yet in mainline. James Hogan (5): metag: Provide dma_get_sgtable() metag: remove GENERIC_SIGALTSTACK metag: remove select

[PATCH 1/5] metag: Provide dma_get_sgtable()

2013-02-26 Thread James Hogan
/dma-mapping-common.h. Metag does not use dma_map_ops yet, hence it should implement it as an inline stub using dma_common_get_sgtable(). Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: Marek Szyprowski m.szyprow...@samsung.com --- arch/metag

[PATCH 3/5] metag: remove select CONFIG_HAVE_IRQ_WORK

2013-02-26 Thread James Hogan
Since commit irq_work: Remove CONFIG_HAVE_IRQ_WORK the Kconfig symbol HAVE_IRQ_WORK has gone. Remove the select from METAG too. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Steven Rostedt rost...@goodmis.org --- arch/metag/Kconfig | 1 - 1 file

[PATCH 2/5] metag: remove GENERIC_SIGALTSTACK

2013-02-26 Thread James Hogan
The commit burying unused conditionals removed among other things the CONFIG_GENERIC_SIGALTSTACK Kconfig symbol as it's selected by every architecture. Therefore remove the select from CONFIG_METAG too. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Al Viro v...@zeniv.linux.org.uk

Re: [PATCH 1/5] metag: Provide dma_get_sgtable()

2013-02-26 Thread James Hogan
On 27/02/13 07:09, Marek Szyprowski wrote: Hello, On 2/26/2013 12:03 PM, James Hogan wrote: metag/allmodconfig: drivers/media/v4l2-core/videobuf2-dma-contig.c: In function 'vb2_dc_get_base_sgt': drivers/media/v4l2-core/videobuf2-dma-contig.c:387: error: implicit declaration of function

Re: [GIT PULL] arch/metag for v3.9-rc1

2013-02-27 Thread James Hogan
Hi Linus, On 19 February 2013 11:27, James Hogan james.ho...@imgtec.com wrote: Here is the arch/metag/ tree for v3.9-rc1. Arnd said he's happy to ack it (the additional changes since then have been mostly further cleanups and fixes for when merged with other trees). Please pull. I'd just

[GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-01 Thread James Hogan
dma_get_sgtable() as added recently for other arches * remove CONFIG_GENERIC_SIGALTSTACK * remove CONFIG_HAVE_IRQ_WORK * remove CONFIG_EXPERIMENTAL from defconfigs * remove SET_PERSONALITY() Signed-off-by: James Hogan james.ho...@imgtec.com

Re: [GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-01 Thread James Hogan
On 01/03/13 18:03, Linus Torvalds wrote: On Fri, Mar 1, 2013 at 8:55 AM, James Hogan james.ho...@imgtec.com wrote: Please pull the following changes in addition to my previous arch/metag pull request. See the tag (below) for details. The shortlog is a bit inflated unfortunately as it includes

Re: [GIT PULL] late arch/metag fixes for v3.9-rc1

2013-03-02 Thread James Hogan
On 01/03/13 18:54, James Hogan wrote: On 01/03/13 18:03, Linus Torvalds wrote: On Fri, Mar 1, 2013 at 8:55 AM, James Hogan james.ho...@imgtec.com wrote: Please pull the following changes in addition to my previous arch/metag pull request. See the tag (below) for details. The shortlog is a bit

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

2013-01-24 Thread James Hogan
On 24/01/13 10:11, Vineet Gupta wrote: 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 patches from linux-next

Re: [PATCH 4/4] async: replace list of active domains with global list of pending items

2013-01-24 Thread James Hogan
Hi, On Fri, Jan 18, 2013 at 04:41:00PM -0800, Tejun Heo wrote: @@ -125,9 +134,8 @@ static void async_run_entry_fn(struct work_struct *work) /* 2) remove self from the pending queues */ spin_lock_irqsave(async_lock, flags); - list_del(entry-list); - if

Re: [PATCH 4/4] async: replace list of active domains with global list of pending items

2013-01-25 Thread James Hogan
On 25 January 2013 01:01, Tejun Heo t...@kernel.org wrote: Hello, On Fri, Jan 25, 2013 at 12:13:45AM +, James Hogan wrote: Should it have this? + else + INIT_LIST_HEAD(entry-global_list) I think it would be better to have INIT_LIST_HEAD() during @entry initialization

Re: [PATCH 4/4] async: replace list of active domains with global list of pending items

2013-01-25 Thread James Hogan
On 25 January 2013 10:08, James Hogan ja...@albanarts.com wrote: On 25 January 2013 01:01, Tejun Heo t...@kernel.org wrote: Hello, On Fri, Jan 25, 2013 at 12:13:45AM +, James Hogan wrote: Should it have this? + else + INIT_LIST_HEAD(entry-global_list) I think it would

[PATCH 1/1] async: initialise list heads to fix crash

2013-01-25 Thread James Hogan
-by: James Hogan james.ho...@imgtec.com --- kernel/async.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/async.c b/kernel/async.c index 6958000..8ddee2c 100644 --- a/kernel/async.c +++ b/kernel/async.c @@ -172,6 +172,8 @@ static async_cookie_t __async_schedule

Re: [PATCH v3 43/44] tty/metag_da: Add metag DA TTY driver

2013-01-25 Thread James Hogan
Hi, On 14/01/13 10:54, James Hogan wrote: Here's a new version addressing Jiri's feedback. Add a TTY driver for communicating over a Meta DA (Debug Adapter) channel using the bios channel SWITCH operation. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Alan Cox

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

2013-01-25 Thread James Hogan
Hi Arnd, On 10/01/13 15:30, James Hogan wrote: This patchset adds core architecture support to Linux for Imagination's Meta ATP (Meta 1) and HTP (Meta 2) processor cores. Most of the feedback from the RFC and v2 patchsets has now been addressed. All further feedback is most welcome

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

2013-01-26 Thread James Hogan
Hi Arnd, On Sat, Jan 26, 2013 at 12:25:09AM +, Arnd Bergmann wrote: On Friday 25 January 2013, James Hogan wrote: Review seems to have gone quiet. I'm fairly happy with this core patchset in it's currently form (only trivial alterations required since the v3 patches, e.g. some review

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

2013-01-28 Thread James Hogan
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/Makefile @@ -83,6 +83,9 @@ head-y := arch/arc/kernel/head.o # See arch/arc/Kbuild for content of core part

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

2013-01-28 Thread James Hogan
Hi Vineet On 28/01/13 07:10, Vineet Gupta wrote: You don't need Acked-by statements on every single patch, but having more of those is certainly benefitial. When it comes to the merge window, please send a pull request to Linus, and keep me on Cc, so I can weigh in with an additional Ack to

Re: [PATCH v3 21/44] metag: Time keeping

2013-01-28 Thread James Hogan
On 26/01/13 00:03, Arnd Bergmann wrote: On Thursday 10 January 2013, James Hogan wrote: Add time keeping code for metag. Meta hardware threads have 2 timers. The background timer (TXTIMER) is used as a free-running time base, and the interrupt timer (TXTIMERI) is used for the timer interrupt

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