Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-24 Thread Benjamin Herrenschmidt
On Fri, 2012-08-24 at 11:13 +1000, Michael Ellerman wrote: > > Yeah. A NULL regs here is a kernel bug, so I think it's actually > preferable to crash than silently return. Or best, if you think there's a remote chance that the bug might hit: if (WARN(!regs)) return Chee

[PATCH 1/3] powerpc: Consolidate *probe definitions

2012-08-24 Thread Ananth N Mavinakayanahalli
From: Ananth N Mavinakayanahalli Move is_trap() and relatives to a common file to be shared between *probes. Code movement only; no change in functionality. Suggested by Michael Ellerman. Signed-off-by: Ananth N Mavinakayanahalli --- arch/powerpc/include/asm/kprobes.h | 15 + ar

[PATCH 2/3] powerpc: Add trap_nr to thread_struct

2012-08-24 Thread Ananth N Mavinakayanahalli
From: Ananth N Mavinakayanahalli Add thread_struct.trap_nr and use it to store the last exception the thread experienced. In this patch, we populate the field at various places where we force_sig_info() to the process. This is also used in uprobes to determine if the probed instruction caused an

[PATCH v5 3/3] powerpc: Uprobes port to powerpc

2012-08-24 Thread Ananth N Mavinakayanahalli
From: Ananth N Mavinakayanahalli This is the port of uprobes to powerpc. Usage is similar to x86. [root@ ~]# ./bin/perf probe -x /lib64/libc.so.6 malloc Added new event: probe_libc:malloc(on 0xb4860) You can now use it in all perf tools, such as: perf record -e probe_libc:mal

Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-24 Thread Ananth N Mavinakayanahalli
On Fri, Aug 24, 2012 at 05:07:31PM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2012-08-24 at 11:13 +1000, Michael Ellerman wrote: > > > > Yeah. A NULL regs here is a kernel bug, so I think it's actually > > preferable to crash than silently return. > > Or best, if you think there's a remote c

[PATCH 1/2] powerpc: Fix xmon dl command for new printk implementation

2012-08-24 Thread Michael Ellerman
Since the printk internals were reworked the xmon 'dl' command which dumps the content of __log_buf has stopped working. It is now a structured buffer, so just dumping it doesn't really work. Use the helpers added for kgdb to print out the content. Signed-off-by: Michael Ellerman --- arch/powe

[PATCH 2/2] powerpc: Fixup whitespace in xmon

2012-08-24 Thread Michael Ellerman
There are a few whitespace goolies in xmon.c, some of them appear to be my fault. Fix them all in one go. Signed-off-by: Michael Ellerman --- arch/powerpc/xmon/xmon.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/xmo

Re: [PATCH] powerpc: dts: 52xx: drop critical IRQ from dts files

2012-08-24 Thread Wolfram Sang
On Thu, Aug 23, 2012 at 04:59:26PM +0100, Grant Likely wrote: > On Thu, Aug 23, 2012 at 4:31 PM, Wolfram Sang wrote: > > The wakeup-gpios have been assigned a critical IRQ in current > > devicetrees. The PIC driver does not support critical IRQs, though, which > > leads to the following error when

[git pull] Please pull powerpc.git merge branch

2012-08-24 Thread Benjamin Herrenschmidt
Hi Linus ! I meant to sent that earlier but got swamped with other things, so here are some powerpc fixes for 3.6. A few regression fixes and some bug fixes that I deemed should still make it. There's a FSL update from Kumar with a bunch of defconfig updates along with a few embedded fixes. I al

[PATCH][v2] powerpc/mm: using two zones for freescale 64 bit kernel

2012-08-24 Thread Shaohui Xie
PowerPC platform only supports ZONE_DMA zone for 64bit kernel, so all the memory will be put into this zone. If the memory size is greater than the device's DMA capability and device uses dma_alloc_coherent to allocate memory, it will get an address which is over the device's DMA addressing, the de

Re: [PATCH] kconfig: remove CONFIG_MTD_NAND_VERIFY_WRITE

2012-08-24 Thread Artem Bityutskiy
On Wed, 2012-08-15 at 17:12 +0800, Huang Shijie wrote: > Just as Artem suggested: > > "Both UBI and JFFS2 are able to read verify what they wrote already. > There are also MTD tests which do this verification. So I think there > is no reason to keep this in the NAND layer, let alone wasting RAM in

[PATCH 2/2] dt/misc: add bindings documentation for ifm camera sensor interface

2012-08-24 Thread Anatolij Gustschin
IFM O2D cameras use special sensor bus interface glue-logic to connect camera sensors to mpc5200 LocalPlus bus. Add device tree bindings documentation for it. Signed-off-by: Anatolij Gustschin --- Documentation/devicetree/bindings/misc/ifm-csi.txt | 41 1 files changed, 41

[PATCH 1/2] powerpc/mpc5200: add dts files for ifm camera machines

2012-08-24 Thread Anatolij Gustschin
Add common o2d dtsi file to reuse it for other configurations. Add machine compatible string to mpc5200 simple platform file. Add dts files for O2D, O2I, O2MNT, O2DNT2, O2D300 and O3DNT boards. Signed-off-by: Anatolij Gustschin --- arch/powerpc/boot/dts/o2d.dts| 33 ++ arch

Re: [PATCH] rapidio/tsi721: modify mport name assignment

2012-08-24 Thread Andrew Morton
On Tue, 21 Aug 2012 10:23:54 -0400 Alexandre Bounine wrote: > Modify mport device name assignment to provide clear reference to devices > in systems with multiple Tsi721 bridges. > > This patch is applicable to kernel versions starting from v3.2. This seems to imply that you think the patch sho

Re: [PATCH] rapidio: apply RX/TX enable to active switch ports only

2012-08-24 Thread Andrew Morton
On Tue, 21 Aug 2012 10:23:55 -0400 Alexandre Bounine wrote: > Modify RIO enumeration to apply RX/TX enable operations only to active > switch ports. This will leave inactive ports in condition consistent with > their state. It's unclear (to me) what the effects of this are. Does it fix some use

[PATCH] powerpc: Make sure IPI handlers see data written by IPI senders

2012-08-24 Thread Paul Mackerras
We have been observing hangs, both in KVM guest vcpus and more generally, where a process that is woken doesn't properly wake up and continue to run, but instead sticks in TASK_WAKING state. This happens because the update of rq->wake_list in ttwu_queue_remote() is not ordered with the update of i