Re: [RESEND PATCH 4/4] net: smc91x: use io{read,write}*_rep accessors instead of string functions

2012-10-19 Thread James Hogan
On 17/10/12 16:45, Will Deacon wrote: The {read,write}s{b,w,l} operations are not defined by all architectures and are being removed from the asm-generic/io.h interface. This patch replaces the usage of these string functions in the default SMC accessors with io{read,write}{8,16,32}_rep

Re: [GIT PULL] User API Disintegrate: Preparatory patches

2012-10-22 Thread James Hogan
On 17 October 2012 09:42, James Hogan ja...@albanarts.com wrote: On 2 October 2012 19:36, David Howells dhowe...@redhat.com wrote: The patches herein prepare for the extraction of the Userspace API bits from the various header files named in the Kbuild files. [IMPORTANT NOTE! These patches

[PATCH] asm-generic/io.h: remove asm/cacheflush.h include

2012-10-23 Thread James Hogan
a defconfig compilation of blackfin, openrisc (which needed asm/pgtable.h including from it's asm/io.h to get the PAGE_* definitions), and xtensa. Other architectures which use asm-generic/io.h are score and unicore32, and looking at their io.h I don't see any obvious problems. Signed-off-by: James

[RESEND PATCH] scsi: make struct scsi_varlen_cdb_hdr packed

2012-10-11 Thread James Hogan
. This is fixed by marking struct scsi_varlen_cdb_hdr as __packed. Signed-off-by: James Hogan james.ho...@imgtec.com --- include/scsi/scsi.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index 66216c1..3beaef3 100644 --- a/include/scsi

[PATCH] cris: use kbuild.h instead of defining macros in asm-offset.c

2012-10-11 Thread James Hogan
This is modelled on commits such as the one below: Commit fc1c3a003edb8a6778e64e10ef671a38c76c969e (sh: use kbuild.h instead of defining macros in asm-offsets.c) introduced in v2.6.26. Signed-off-by: James Hogan james.ho...@imgtec.com --- Note I haven't tested compilation on cris. I'd appreciate

[PATCH] openrisc: use kbuild.h instead of defining macros in asm-offset.c

2012-10-11 Thread James Hogan
This is modelled on commits such as the one below: Commit fc1c3a003edb8a6778e64e10ef671a38c76c969e (sh: use kbuild.h instead of defining macros in asm-offsets.c) introduced in v2.6.26. Signed-off-by: James Hogan james.ho...@imgtec.com --- Note I haven't tested compilation on openrisc. I'd

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

2012-10-11 Thread James Hogan
On 11/10/12 11:01, Bart Van Assche wrote: On 10/11/12 11:15, James Hogan wrote: The struct scsi_varlen_cdb_hdr is expected to be exactly 10 bytes when used in struct osd_cdb_head, but it isn't marked as packed. Some architectures will round the struct size up which triggers BUILD_BUG_ON

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

2012-10-11 Thread James Hogan
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 to be exactly 10 bytes when used in struct osd_cdb_head, but it isn't marked as packed. Some architectures will round the struct size up which triggers

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

2012-10-11 Thread James Hogan
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 to be exactly 10 bytes when used in struct osd_cdb_head

Re: [PATCH] asm-generic/io.h: remove asm/cacheflush.h include

2012-10-25 Thread James Hogan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/10/12 14:40, Jonas Bonn wrote: On Tue, 2012-10-23 at 10:21 +0100, James Hogan wrote: Including asm/cacheflush.h from asm-generic/io.h prevents cacheflush.h being able to use I/O functions like readl and writel due to circular include

Re: [PATCH] asm-generic/io.h: remove asm/cacheflush.h include

2012-10-29 Thread James Hogan
at their io.h I don't see any obvious problems. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Arnd Bergmann a...@arndb.de Cc: Jonas Bonn jo...@southpole.se Cc: Chris Zankel ch...@zankel.net Cc: Max Filippov jcmvb...@gmail.com Cc: Mike Frysinger vap...@gentoo.org Cc: Chen Liqin liqin.c

Re: [PATCH] dw_mmc: fix multiple drv_data NULL dereferences

2012-10-29 Thread James Hogan
, Jaehoon and Will. Chris: Any chance of queueing this patch for v3.7? Thanks James On 10/16/2012 05:43 PM, James Hogan wrote: Commit 800d78bfccb3d38116abfda2a5b9c8afdbd5ea21 (mmc: dw_mmc: add support for implementation specific callbacks) merged in v3.7-rc1. The above commit introduced

Re: [RFC PATCH v1 14/31] ARC: syscall support

2012-11-09 Thread James Hogan
On 07/11/12 14:21, Arnd Bergmann wrote: On Wednesday 07 November 2012, Vineet Gupta wrote: + * Being uClibc based we need some of the deprecated syscalls: + * -Not emulated by uClibc at all + * unlink, mkdir,... (needed by Busybox, LTP etc) + * times (needed by LTP pan test harness)

Re: [RFC PATCH v1 31/31] ARC: [plat-arcfpga] defconfig

2012-11-12 Thread James Hogan
On 07/11/12 14:06, Arnd Bergmann wrote: On Wednesday 07 November 2012, Vineet Gupta wrote: Signed-off-by: Vineet Gupta vgu...@synopsys.com --- arch/arc/configs/fpga_defconfig | 607 +++ 1 files changed, 607 insertions(+), 0 deletions(-) create mode

Re: [PATCH] Centralise CONFIG_ARCH_NO_VIRT_TO_BUS

2012-11-13 Thread James Hogan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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 Reviewed-by: James Hogan james.ho...@imgtec.com

Re: [RFC PATCH v1 14/31] ARC: syscall support

2012-11-13 Thread James Hogan
On 09/11/12 09:50, James Hogan wrote: On 07/11/12 14:21, Arnd Bergmann wrote: On Wednesday 07 November 2012, Vineet Gupta wrote: + * Being uClibc based we need some of the deprecated syscalls: + * -Not emulated by uClibc at all + * unlink, mkdir,... (needed by Busybox, LTP etc

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

2012-11-13 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: Richard Kuo r...@codeaurora.org Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: Ralf Baechle r

Re: [RFC PATCH v1 14/31] ARC: syscall support

2012-11-13 Thread James Hogan
On 13/11/12 12:01, Jonas Bonn wrote: On 13 November 2012 12:41, James Hogan james.ho...@imgtec.com wrote: The uClibc patches I mentioned have been posted, see here: http://lists.busybox.net/pipermail/uclibc/2012-November/047110.html Please do try them out and provide any feedback. Hi

Re: [RFC PATCH v1 14/31] ARC: syscall support

2012-11-14 Thread James Hogan
On 14/11/12 12:23, Arnd Bergmann wrote: On Tuesday 13 November 2012, James Hogan wrote: Hopefully with several architecture maintainers asking for this it might get somewhere, but indeed we're aware of the feedback problem on that list. The points that I've considered for defaulting to old

Re: [arc-linux-dev] Re: UAPI for new arches (was Re: [GIT PULL] User API Disintegrate: Preparatory patches)

2012-11-14 Thread James Hogan
Hi David, The disintegration scripts strip out the #ifdef __KERNEL__ from the headers in both uapi/ and the old directories. However there are still a bunch of unexported headers through the tree which have #ifdef __KERNEL__ in them, usually guarding the entire file (just grep __KERNEL__ in

[PATCH] tty: serial: 8250_dw: Implement suspend/resume

2012-10-15 Thread James Hogan
Implement suspend and resume callbacks for DesignWare 8250 driver. They're simple wrappers around serial8250_{suspend,resume}_port. Signed-off-by: James Hogan james.ho...@imgtec.com --- drivers/tty/serial/8250/8250_dw.c | 25 + 1 files changed, 25 insertions(+), 0

[PATCH] dw_mmc: fix multiple drv_data NULL dereferences

2012-10-16 Thread James Hogan
checked against NULL in 1 out of the 7 cases where it is dereferenced. Signed-off-by: James Hogan james.ho...@imgtec.com --- drivers/mmc/host/dw_mmc-pltfm.c |4 ++-- drivers/mmc/host/dw_mmc.c | 29 + 2 files changed, 19 insertions(+), 14 deletions(-) diff --git

Re: [GIT PULL] User API Disintegrate: Preparatory patches

2012-10-17 Thread James Hogan
find are from 2011 so I guess they're probably a bit out of date. Thanks in advance -- James Hogan -- 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

Re: [PATCH 3/5] dump_stack: consolidate dump_stack() implementations and unify their behaviors

2013-04-16 Thread James Hogan
: Martin Schwidefsky schwidef...@de.ibm.com Cc: Heiko Carstens heiko.carst...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: Mike Frysinger vap...@gentoo.org Cc: uclinux-dist-de...@blackfin.uclinux.org For metag: Acked-by: James Hogan james.ho...@imgtec.com -- To unsubscribe from this list: send

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

2013-04-16 Thread James Hogan
8223d8c0 88007c862080 81c47730 Call Trace: [81000312] do_one_initcall+0x122/0x170 [82335e5d] kernel_init_freeable+0x9b/0x1c8 ... v2: Typo fix in x86-32. Signed-off-by: Tejun Heo t...@kernel.org For metag: Acked-by: James Hogan james.ho

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

2013-04-16 Thread James Hogan
On 12/04/13 22:52, Stephen Warren wrote: +.SECONDARY: $(obj)/$(builtindtb-y).dtb.S Note, this may not work if you're using CONFIG_ARC_BUILTIN_DTB_NAME, since it'll have quotes around it, so you may instead need: .SECONDARY: $(obj)/$(patsubst %,%,$(builtindtb-y)).dtb.S (at least that's what's

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

2013-04-16 Thread James Hogan
On 16/04/13 16:53, James Hogan wrote: On 12/04/13 22:52, Stephen Warren wrote: +.SECONDARY: $(obj)/$(builtindtb-y).dtb.S Note, this may not work if you're using CONFIG_ARC_BUILTIN_DTB_NAME, since it'll have quotes around it, so you may instead need: .SECONDARY: $(obj)/$(patsubst

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

2013-04-17 Thread James Hogan
On 17/04/13 05:13, Vineet Gupta wrote: Hi James, On 04/16/2013 09:23 PM, James Hogan wrote: On 12/04/13 22:52, Stephen Warren wrote: +.SECONDARY: $(obj)/$(builtindtb-y).dtb.S Note, this may not work if you're using CONFIG_ARC_BUILTIN_DTB_NAME, since it'll have quotes around it, so you may

[PATCH 1/1] metag: avoid unnecessary builtin dtb rebuilds

2013-04-17 Thread James Hogan
(e.g. imported into the tree and specified in CONFIG_METAG_BUILTIN_DTB_NAME) it too will be treated as an intermediate and deleted automatically (again causing it to be regenerated on every build), so add it to dtb-y so it gets added to targets and the dtbs target. Signed-off-by: James Hogan james.ho

Re: [PATCH v7] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-04-17 Thread James Hogan
Hi Al, On 27/03/13 11:07, James Hogan wrote: 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

[PATCH v2 0/3] clk: implement remuxing during set_rate

2013-04-19 Thread James Hogan
, and in a way that should ensure correct notifications without duplicates, and I think should be safe in the event of a notification failing. * various tidy ups and fixes. James Hogan (3): clk: abstract parent cache clk: add support for clock reparent on set_rate clk: clk-mux: implement remuxing

[PATCH v2 1/3] clk: abstract parent cache

2013-04-19 Thread James Hogan
Abstract access to the clock parent cache by defining __clk_get_parent_by_index(clk, index). This allows access to parent clocks from clock drivers. Signed-off-by: James Hogan james.ho...@imgtec.com --- drivers/clk/clk.c| 21 ++--- include/linux/clk-provider.h | 1

[PATCH v2 3/3] clk: clk-mux: implement remuxing on set_rate

2013-04-19 Thread James Hogan
the best one (like clk-divider this chooses the parent which provides the fastest rate = the requested rate). The determine_rate op is implemented as a core helper function so that it can be easily used by more complex clocks which incorporate muxes. Signed-off-by: James Hogan james.ho...@imgtec.com

[PATCH v2 2/3] clk: add support for clock reparent on set_rate

2013-04-19 Thread James Hogan
to clk_set_parent() but without calling __clk_recalc_rates(). This is for clk_change_rate() to use, where rate recalculation and notifications are already handled. Signed-off-by: James Hogan james.ho...@imgtec.com --- Documentation/clk.txt| 4 ++ drivers/clk/clk.c| 146

Re: [RFC PATCH v1 0/3] clk: implement remuxing during set_rate

2013-04-19 Thread James Hogan
Hi Mike, On 03/04/13 22:34, Mike Turquette wrote: diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 9fdfae7..1a19186 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -126,6 +126,9 @@ struct clk_ops {

Re: [RFC PATCH v1 0/3] clk: implement remuxing during set_rate

2013-04-03 Thread James Hogan
On 3 April 2013 03:06, Stephen Boyd sb...@codeaurora.org wrote: On 03/22/13 08:43, James Hogan wrote: This patchset adds support for automatic selection of the best parent for a clock mux, i.e. the one which can provide the closest clock rate to that requested. It can be controlled

Re: [PATCH 1/1] module: fix symbol versioning with symbol prefixes

2013-03-14 Thread James Hogan
On 13/03/13 23:51, Rusty Russell wrote: James Hogan james.ho...@imgtec.com writes: Fix symbol versioning on architectures with symbol prefixes. Although the build was free from warnings the actual modules still wouldn't load as the versions table contained unprefixed symbol names, which

Re: [RFC -next] linux/linkage.h: fix symbol prefix handling

2013-03-14 Thread James Hogan
CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX. 2) Make linux/export.h usable from asm. 3) Define VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR(). 4) Make everyone use them. Signed-off-by: Rusty Russell ru...@rustcorp.com.au Reviewed-by: James Hogan james.ho...@imgtec.com Tested-by: James Hogan james.ho...@imgtec.com (metag

Re: linux-next: manual merge of the signal tree with the modules tree

2013-03-14 Thread James Hogan
On 14/03/13 06:27, Stephen Rothwell wrote: Hi Al, Today's linux-next merge of the signal tree got a conflict in include/asm-generic/unistd.h between commit 837718bfd28b (CONFIG_SYMBOL_PREFIX: cleanup) from the modules tree and commit e1b5bb6d1236 (consolidate cond_syscall and SYSCALL_ALIAS

[PATCH 7/9] metag: perf: don't reset TXTACTCYC

2013-03-15 Thread James Hogan
-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 a...@ghostprotocols.net --- arch/metag/kernel/perf/perf_event.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions

[PATCH 8/9] metag: perf: prepare for use by oprofile

2013-03-15 Thread James Hogan
to return metag_pmu-name instead of metag_pmu-pmu.name (which is changed to meta2). 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 a...@ghostprotocols.net Cc

[PATCH 9/9] metag: OProfile support

2013-03-15 Thread James Hogan
. The backtrace code makes use of asm/stacktrace.h for kernel backtracing, and a simple frame pointer walk for userland backtracing. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Robert Richter r...@kernel.org Cc: oprofile-l...@lists.sf.net --- arch/metag/Kconfig | 4 +++ arch/metag

[PATCH 1/9] metag: perf: fix core internal / perf channel mux

2013-03-15 Thread James Hogan
The value written to the PERF_ICOREx or PERF_CHANx register to select the performance events for the core internal and perf channel events was (tmp 0x0f), but tmp was set to (config 0xf0) so it would always be 0. Correct it to use config instead of tmp. Signed-off-by: James Hogan james.ho

[PATCH 6/9] metag: perf: use hard_processor_id() to get thread

2013-03-15 Thread James Hogan
Use hard_processor_id() to get the current thread number rather than get_cpu() and the hardware thread mapping. There was no matching put_cpu(), and in any case this should be slightly more efficient. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Peter Zijlstra a.p.zijls...@chello.nl Cc

[PATCH 4/9] metag: perf: add missing prev_count updates

2013-03-15 Thread James Hogan
the counter since the write to the PERF_COUNT register will clear the perf counter. This also includes a minor change to remove the u64 cast from the metag_pmu-write() call as metag_pmu-write() takes a u32 anyway, and in any case GCC is smart enough to optimise away the cast. Signed-off-by: James Hogan

[PATCH 5/9] metag: perf: fix frequency sampling (dynamic period)

2013-03-15 Thread James Hogan
(as the ARM equivalent does). The calculated delta also needs subtracting from period_left in metag_pmu_event_update in order to hit the conditional blocks in metag_pmu_event_set_period which update last_period (which is used in the dynamic sampling period calculation). Signed-off-by: James Hogan

[PATCH 2/9] metag: perf: fix wrap handling in delta calculation

2013-03-15 Thread James Hogan
When calculating the delta, mask with MAX_PERIOD (24 bits) to handle wrapping, which particularly happens with periodic sampling since the value is intentionally set so that it will overflow soon. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Peter Zijlstra a.p.zijls...@chello.nl Cc: Paul

[PATCH 3/9] metag: perf: fixes for interrupting perf counters

2013-03-15 Thread James Hogan
than resetting it to zero. 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 a...@ghostprotocols.net --- arch/metag/kernel/perf/perf_event.c | 22

[PATCH 0/9] metag: perf fixes and OProfile support

2013-03-15 Thread James Hogan
mi...@redhat.com Cc: Arnaldo Carvalho de Melo a...@ghostprotocols.net Cc: Robert Richter r...@kernel.org Cc: oprofile-l...@lists.sf.net James Hogan (9): metag: perf: fix core internal / perf channel mux metag: perf: fix wrap handling in delta calculation metag: perf: fixes for interrupting

[PATCH 3/3] metag: cachepart: fix get_global_dcache_size() typo

2013-03-15 Thread James Hogan
-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/kernel/cachepart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/metag/kernel/cachepart.c b/arch/metag/kernel/cachepart.c index c737edb..954548b 100644 --- a/arch/metag/kernel/cachepart.c +++ b/arch/metag/kernel

[PATCH 0/3] metag: smp / cache changes

2013-03-15 Thread James Hogan
Here are a few Meta SMP and cache changes I have for v3.10. The first one removes the need to have an SMP specific bootloader to configure the cache partitions and coherency for the hardware threads that will run SMP, and the other two are very minor fixes. James Hogan (3): metag: smp: copy

[PATCH 2/3] metag: cachepart: take into account small cache bits

2013-03-15 Thread James Hogan
The CORE_CONFIG2 register has bits to indicate that the data or code cache is small, i.e. that the size described in the field should be divided by 64. Take this into account in get_icache_size() and get_dcache_size(). Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/kernel

[PATCH 1/3] metag: smp: copy cache partition and enable GCOn

2013-03-15 Thread James Hogan
the cache partition changes so that the user is aware of potential unintentional cache wastage if they've configured the cache partitions in the wrong way. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/asm/metag_mem.h | 3 + arch/metag/kernel/head.S | 8

Re: [PATCH resend v5] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-15 Thread James Hogan
On 08/03/13 13:02, James Hogan wrote: 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

Re: [PATCH] memblock: Kill ARCH_POPULATES_NODE_MAP once more

2013-03-20 Thread James Hogan
On 20/03/13 11:02, Michal Simek wrote: On 03/20/2013 11:25 AM, Paul Bolle wrote: The Kconfig symbol ARCH_POPULATES_NODE_MAP was killed in v3.3. After that it popped up again in microblaze and metag. Nobody noticed, probably because these Kconfig symbols are entirely unused and these

Re: [PATCH] memblock: kill config MAX_ACTIVE_REGIONS

2013-03-21 Thread James Hogan
. But if the maintainers involved disagree I'm happy to split and resend it. Given that it's unused now it doesn't really matter how it gets applied, it looks fine to me. Acked-by: Paul Mundt let...@linux-sh.org Acked-by: James Hogan james.ho...@imgtec.com -- To unsubscribe from this list: send the line

Re: [patch 03/34] idle: Implement set/clr functions for need_resched poll

2013-03-22 Thread James Hogan
On 21/03/13 21:52, Thomas Gleixner wrote: Implement set/clear functions for the idle need_resched poll implementation. Signed-off-by: Thomas Gleixner t...@linutronix.de --- include/linux/sched.h | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) Index:

Re: [patch 20/34] metag: Use generic idle loop

2013-03-22 Thread James Hogan
On 21/03/13 21:53, Thomas Gleixner wrote: Signed-off-by: Thomas Gleixner t...@linutronix.de Cc: James Hogan james.ho...@imgtec.com --- arch/metag/Kconfig |1 + arch/metag/kernel/process.c | 32 +++- arch/metag/kernel/smp.c |2 +- 3 files

[RFC PATCH v1 1/3] clk: abstract parent cache

2013-03-22 Thread James Hogan
Abstract access to the clock parent cache by defining __clk_get_parent_by_index(clk, index). This allows access to parent clocks from clock drivers. Signed-off-by: James Hogan james.ho...@imgtec.com --- drivers/clk/clk.c| 21 ++--- include/linux/clk-provider.h | 1

[RFC PATCH v1 0/3] clk: implement remuxing during set_rate

2013-03-22 Thread James Hogan
to mark that the parent should change (it's all within mutex protected code after all). Comments anyone? James Hogan (3): clk: abstract parent cache clk: add support for clock remuxing clk: clk-mux: implement remuxing drivers/clk/clk-mux.c| 47 ++ drivers/clk/clk.c

[RFC PATCH v1 2/3] clk: add support for clock remuxing

2013-03-22 Thread James Hogan
that the clock can have it's parent changed automatically in response to a set_rate. It isn't used yet, but will be used within clock mux drivers. Signed-off-by: James Hogan james.ho...@imgtec.com --- drivers/clk/clk.c| 94 +++- include/linux/clk

[RFC PATCH v1 3/3] clk: clk-mux: implement remuxing

2013-03-22 Thread James Hogan
Implement clk-mux remuxing if the CLK_SET_RATE_REMUX flag is set. This implements round_rate for clk-mux to propagate the round_rate to each parent and to choose the best one. Signed-off-by: James Hogan james.ho...@imgtec.com --- drivers/clk/clk-mux.c | 47

[PATCH 1/1] clk: fix clk_mux::flags kerneldoc

2013-03-25 Thread James Hogan
The kerneldoc comment for struct clk_mux documented the non-existent num_clks instead of flags. Correct this. Signed-off-by: James Hogan james.ho...@imgtec.com --- include/linux/clk-provider.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clk-provider.h b

[PATCH v6] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-26 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 --- v6: * use file_inode() helper

Re: [PATCH v6] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-26 Thread James Hogan
Thanks for reviewing Al... On 26 March 2013 19:18, Al Viro v...@zeniv.linux.org.uk wrote: On Tue, Mar 26, 2013 at 03:19:29PM +, James Hogan wrote: +struct da_finddata { + unsigned long size; + unsigned long attrib; + char name[260]; +}; ... especially for this - unlike int

[PATCH 3/3] hostfs: use kmalloc instead of kzalloc

2013-03-27 Thread James Hogan
The inode info structure is zeroed at allocation with kzalloc, and then all but one of the fields (including the largest, vfs_inode) are initialised explicitly. Switch to using kmalloc and initialise the remaining field too. Reported-by: Al Viro v...@zeniv.linux.org.uk Signed-off-by: James Hogan

[PATCH 1/3] hostfs: remove will unlock comment

2013-03-27 Thread James Hogan
ec2447c278ee973d35f38e53ca16ba7f965ae33d (hostfs: simplify locking). Since the comment is no longer applicable, remove it. Reported-by: Al Viro v...@zeniv.linux.org.uk Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Nick Piggin npig...@kernel.dk --- fs/hostfs/hostfs_kern.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/3] hostfs: move HOSTFS_SUPER_MAGIC to linux/magic.h

2013-03-27 Thread James Hogan
Move HOSTFS_SUPER_MAGIC to linux/magic.h to be with it's magical friends from other file systems. Reported-by: Al Viro v...@zeniv.linux.org.uk Signed-off-by: James Hogan james.ho...@imgtec.com --- fs/hostfs/hostfs_kern.c| 3 +-- include/uapi/linux/magic.h | 1 + 2 files changed, 2 insertions

[PATCH 0/3] hostfs: tweaks from imgdafs review

2013-03-27 Thread James Hogan
This patchset contains some tweaks to hostfs, based on imgdafs review comments from Al Viro which also apply to hostfs. James Hogan (3): hostfs: remove will unlock comment hostfs: move HOSTFS_SUPER_MAGIC to linux/magic.h hostfs: use kmalloc instead of kzalloc fs/hostfs/hostfs_kern.c

[PATCH v7] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-27 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 --- v7: * use explicit sized types

[PATCH 0/3] metag: misc improvements

2013-03-27 Thread James Hogan
A few more misc arch/metag/ improvements for v3.10. James Hogan (2): metag: export _metag_da_present and cpu_2_hwthread_id metag: add exported asm/ech.h for extended context handling Paul Clothier (1): metag: ptrace: Implement NT_METAG_TLS arch/metag/include/uapi/asm/Kbuild | 1 + arch

[PATCH 3/3] metag: add exported asm/ech.h for extended context handling

2013-03-27 Thread James Hogan
assembly code to be compatible between Linux and non-Linux operating systems. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/include/uapi/asm/Kbuild | 1 + arch/metag/include/uapi/asm/ech.h | 15 +++ 2 files changed, 16 insertions(+) create mode 100644 arch/metag/include

[PATCH 2/3] metag: export _metag_da_present and cpu_2_hwthread_id

2013-03-27 Thread James Hogan
Export the symbols _metag_da_present and cpu_2_hwthread_id to modules (GPL only) to allow the imgdafs file system to be built as a module. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/kernel/da.c| 2 ++ arch/metag/kernel/setup.c | 1 + 2 files changed, 3 insertions

[PATCH 1/3] metag: ptrace: Implement NT_METAG_TLS

2013-03-27 Thread James Hogan
From: Paul Clothier paul.cloth...@imgtec.com Implement functionality to get the TLS pointer for the metag architecture using regsets. This provides multi-threaded debug support for GDB. Signed-off-by: Paul Clothier paul.cloth...@imgtec.com --- arch/metag/kernel/ptrace.c | 34

Re: [RFC -next] linux/linkage.h: fix symbol prefix handling

2013-03-08 Thread James Hogan
Hi Rusty, On 08/03/13 00:03, Rusty Russell wrote: James Hogan james.ho...@imgtec.com writes: Also the definition of SYMBOL_PREFIX in linux/kernel.h is removed as it conflicts, isn't used anywhere, and is defined as a string so differs from the assembly definition. So now

[PATCH 1/1] irq_work.h: fix warning when CONFIG_IRQ_WORK=n

2013-03-08 Thread James Hogan
by the following commit: Commit 00b42959106a9ca1c2899e591ae4e9a83ad6af05 (irq_work: Don't stop the tick with pending works) merged in v3.9-rc1. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Steven Rostedt rost...@goodmis.org Cc: Peter Zijlstra pet

Re: [PATCH 1/1] irq_work.h: fix warning when CONFIG_IRQ_WORK=n

2013-03-08 Thread James Hogan
On 08/03/13 11:36, James Hogan wrote: A randconfig caught repeated compiler warnings when CONFIG_IRQ_WORK=n due to the definition of a non-inline static function in linux/irq_work.h: include/linux/irq_work.h +40 : warning: 'irq_work_needs_cpu' defined but not used In addition

[GIT PULL] metag fixes for v3.9-rc2

2013-03-08 Thread James Hogan
. Signed-off-by: James Hogan james.ho...@imgtec.com James Hogan (1): metag: remove SET_PERSONALITY() Paul Mundt (1): metag: Inhibit NUMA balancing. arch/metag/include/asm/elf.h | 3 --- arch/metag/mm/Kconfig| 1

[PATCH resend v5] fs: imgdafs: Add IMG DAFS filesystem for metag

2013-03-08 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 --- This is pretty much a resend of v4

Re: SYSV IPC broken for no-legacy syscall kernels (was Re: [RFC PATCH v1 26/31] ARC: Build system: Makefiles, Kconfig, Linker script)

2013-03-11 Thread James Hogan
Hi Vineet, On 11/03/13 12:29, Vineet Gupta wrote: On Wednesday 07 November 2012 07:43 PM, Arnd Bergmann wrote: On Wednesday 07 November 2012, Vineet Gupta wrote: + +config ARC + def_bool y + select ARCH_WANT_IPC_PARSE_VERSION + # ARC Busybox based initramfs absolutely relies on

Re: SYSV IPC broken for no-legacy syscall kernels (was Re: [RFC PATCH v1 26/31] ARC: Build system: Makefiles, Kconfig, Linker script)

2013-03-11 Thread James Hogan
On 11/03/13 12:56, Vineet Gupta wrote: Hi James, On Monday 11 March 2013 06:14 PM, James Hogan wrote: Hi Vineet, On 11/03/13 12:29, Vineet Gupta wrote: On Wednesday 07 November 2012 07:43 PM, Arnd Bergmann wrote: On Wednesday 07 November 2012, Vineet Gupta wrote: + +config ARC

[PATCH] mmc: dw_mmc: move host-data_offset init earlier

2013-03-12 Thread James Hogan
-by: James Hogan james.ho...@imgtec.com Cc: Seungwon Jeon tgih@samsung.com Cc: Jaehoon Chung jh80.ch...@samsung.com Cc: Chris Ball c...@laptop.org --- Note, I didn't actually observe this problem occuring, but I think in theory it could happen. drivers/mmc/host/dw_mmc.c | 24

[PATCH] mmc: dw_mmc: setpower on MMC_POWER_{UP,OFF}

2013-03-12 Thread James Hogan
) = 9984Hz (slot req 40Hz, actual 399360HZ div = 125) mmc0: error -110 whilst initialising SD card mmc_host mmc0: Bus speed (slot 0) = 9984Hz (slot req 30Hz, actual 298922HZ div = 167) Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Seungwon Jeon tgih@samsung.com Cc: Jaehoon

Re: [RFC -next] linux/linkage.h: fix symbol prefix handling

2013-03-12 Thread James Hogan
versioning was apparently already broken, I need to look into that). Reviewed-by: James Hogan james.ho...@imgtec.com Tested-by: James Hogan james.ho...@imgtec.com (on metag) Cheers James diff --git a/Makefile b/Makefile index a05ea42..9dc948d 100644 --- a/Makefile +++ b/Makefile

[PATCH 1/1] module: fix symbol versioning with symbol prefixes

2013-03-12 Thread James Hogan
. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Rusty Russell ru...@rustcorp.com.au Cc: Michal Marek mma...@suse.cz Cc: Sam Ravnborg s...@ravnborg.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Jonathan Kliegman kli...@chromium.org --- This conflicts with Rusty's

Re: [PATCH] mmc: dw_mmc: setpower on MMC_POWER_{UP,OFF}

2013-03-12 Thread James Hogan
On 12/03/13 11:26, Jaehoon Chung wrote: Looks good to me. Acked-by: Jaehoon Chung jh80.ch...@samsung.com Thanks Jaehoon Cheers James Best Regards, Jaehoon Chung On 03/12/2013 07:43 PM, James Hogan wrote: Call the setpower platform callback in response to set_ios with ios-power_mode

Re: [RFC -next] linux/linkage.h: fix symbol prefix handling

2013-03-13 Thread James Hogan
Hi Sam, On 13/03/13 06:31, Sam Ravnborg wrote: /* Some toolchains use a `_' prefix for all user symbols. */ -#ifdef CONFIG_SYMBOL_PREFIX -#define MODULE_SYMBOL_PREFIX CONFIG_SYMBOL_PREFIX +#ifdef CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX +#define __VMLINUX_SYMBOL(x) _##x +#define

Re: [PATCH] mmc: dw_mmc: setpower on MMC_POWER_{UP,OFF}

2013-03-13 Thread James Hogan
On 13/03/13 14:20, Seungwon Jeon wrote: Hi James, On Tuesday, March 12, 2013, James Hogan wrote: Call the setpower platform callback in response to set_ios with ios-power_mode == MMC_POWER_UP or MMC_POWER_OFF, instead of from the card detect work function. This appears to fix a problem I

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

2013-03-02 Thread James Hogan
Hi Stephen, On 2 March 2013 15:48, Stephen Rothwell s...@canb.auug.org.au wrote: On Sat, 2 Mar 2013 10:22:40 + James Hogan james.ho...@imgtec.com wrote: Okay, I've rebased the arch/metag tree onto mainline to make all the back-merges unnecessary and applied those simple fixes into Build

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

2013-03-02 Thread James Hogan
On 02/03/13 16:28, Linus Torvalds wrote: You are the architecture maintainer, and your job is not integration, it's to make sure that *your* work is as stable and unsurprising as possible. Right, make sense. This is what it comes down to. See why I hate rebasing and back-merges so much?

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

2013-03-02 Thread James Hogan
to non-init memory - Provide dma_get_sgtable() Signed-off-by: James Hogan james.ho...@imgtec.com James Hogan (61): asm-generic/io.h: check CONFIG_VIRT_TO_BUS asm-generic/unistd.h: handle symbol prefixes in cond_syscall

Re: linux-next: manual merge of the signal tree with Linus' tree

2013-03-04 Thread James Hogan
On 04/03/13 02:03, Stephen Rothwell wrote: Hi Al, Today's linux-next merge of the signal tree got a conflict in include/asm-generic/unistd.h between commit 4dd3c95940b8 (asm-generic/unistd.h: handle symbol prefixes in cond_syscall) from Linus' tree and commit 24a2641326f1 (consolidate

[RFC -next] linux/linkage.h: fix symbol prefix handling

2013-03-07 Thread James Hogan
polluting the command lines for architectures that don't use symbol prefixes). Also the definition of SYMBOL_PREFIX in linux/kernel.h is removed as it conflicts, isn't used anywhere, and is defined as a string so differs from the assembly definition. Signed-off-by: James Hogan james.ho

Re: [PATCH] metag: Inhibit NUMA balancing.

2013-03-07 Thread James Hogan
On 04/03/13 01:12, Paul Mundt wrote: The metag NUMA implementation follows the SH model, using different nodes for memories with different latencies. As such, we ensure that automated balancing between nodes is inhibited, by way of the new ARCH_WANT_VARIABLE_LOCALITY. Signed-off-by: Paul

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread James Hogan
On 05/12/12 09:50, Michal Marek wrote: How about the revised patch below? [...] diff --git a/kernel/modsign_certificate.S b/kernel/modsign_certificate.S new file mode 100644 index 000..695d4e3 --- /dev/null +++ b/kernel/modsign_certificate.S @@ -0,0 +1,18 @@ +#ifndef SYMBOL_PREFIX

Re: [PATCH 2/3] MODSIGN: Avoid using .incbin in C source

2012-12-05 Thread James Hogan
On 05/12/12 11:05, Michal Marek wrote: Dne 5.12.2012 11:30, James Hogan napsal(a): However I think it's unfortunate having to stringify from C as it's pretty much always required to be in string form when used from a C file, usually in an asm block. Any objection to defining SYMBOL_PREFIX

[PATCH v2 01/44] asm-generic/io.h: remove asm/cacheflush.h include

2012-12-05 Thread James Hogan
a defconfig compilation of blackfin, openrisc (which needed asm/pgtable.h including from it's asm/io.h to get the PAGE_* definitions), and xtensa. Other architectures which use asm-generic/io.h are score and unicore32, and looking at their io.h I don't see any obvious problems. Signed-off-by: James

[PATCH v2 03/44] Add CONFIG_HAVE_64BIT_ALIGNED_STRUCT for taskstats

2012-12-05 Thread James Hogan
by adding a new Kconfig symbol CONFIG_HAVE_64BIT_ALIGNED_STRUCT which defaults to CONFIG_64BIT, and can be explicitly selected by CONFIG_METAG. Taskstats then uses this symbol instead of CONFIG_64BIT to determine whether to add the padding. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Balbir

[PATCH v2 05/44] Revert some of binfmt_elf: cleanups

2012-12-05 Thread James Hogan
The commit binfmt_elf: cleanups (f670d0ecda73b7438eec9ed108680bc5f5362ad8) removed an ifndef elf_map but this breaks compilation for metag which does define elf_map. This adds the ifndef back in as it was before, but does not affect the other cleanups made by that patch. Signed-off-by: James

[PATCH v2 06/44] of/vendor-prefixes: add Imagination Technologies

2012-12-05 Thread James Hogan
-by: James Hogan james.ho...@imgtec.com Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com Cc: Rob Landley r...@landley.net Cc: devicetree-disc...@lists.ozlabs.org --- .../devicetree/bindings/vendor-prefixes.txt|3 ++- 1 files changed, 2 insertions(+), 1

  1   2   3   4   5   6   7   8   9   10   >