Re: [PATCH] powerpc: irq work racing with timer interrupt can result in timer interrupt hang

2014-05-09 Thread Paul Mackerras
On Fri, May 09, 2014 at 03:08:45PM -0700, Paul E. McKenney wrote: > On Fri, May 09, 2014 at 11:50:05PM +0200, Gabriel Paubert wrote: > > On Fri, May 09, 2014 at 06:41:13AM -0700, Paul E. McKenney wrote: > > > On Fri, May 09, 2014 at 05:47:12PM +1000, Anton Blanchard wrote: > > > > I am seeing an is

device tree, fedora 20 install

2014-05-09 Thread Anatoly Pugachev
Hello! There's a regression somewhere in kernel, I'm unable to boot installation kernel version 3.11.10-301.fc20.ppc64 of fedora 20 on IBM JS22 (type 7998) blade. But my previous attempt with kernel 3.9.5-301.fc19.ppc64 was able to boot. I have the following output with 3.11.10-301.fc20.ppc64 ker

[PATCH] printk/of_serial: fix serial console cessation part way through boot.

2014-05-09 Thread Stephen Chivers
Commit 5f5c9ae56c38942623f69c3e6dc6ec78e4da2076 "serial_core: Unregister console in uart_remove_one_port()" fixed a crash where a serial port was removed but not deregistered as a console. There is a side effect of that commit for platforms having serial consoles and of_serial configured (CONFIG_S

Re: [PATCH] powerpc: irq work racing with timer interrupt can result in timer interrupt hang

2014-05-09 Thread Benjamin Herrenschmidt
On Fri, 2014-05-09 at 15:22 +0530, Preeti U Murthy wrote: > in __timer_interrupt() outside the _else_ loop? This will ensure that no > matter what, before exiting timer interrupt handler we check for pending > irq work. We still need to make sure that set_next_event() doesn't move the dec beyond t

[PATCH 1/1] powerpc/perf: Adjust callchain based on DWARF debug info

2014-05-09 Thread Sukadev Bhattiprolu
[PATCH 1/1] powerpc/perf: Adjust callchain based on DWARF debug info When saving the callchain on Power, the kernel conservatively saves excess entries in the callchain. A few of these entries are needed in some cases but not others. Eg: the value in the link register (LR) is needed only when it

[PATCH] powerpc: Fix "attempt to move .org backwards" error (again)

2014-05-09 Thread Guenter Roeck
Commit 4e243b7 (powerpc: Fix "attempt to move .org backwards" error) fixes the allyesconfig build by moving machine_check_common to a different location. While this fixes most of the errors, both allmodconfig and allyesconfig still fail as follows. arch/powerpc/kernel/exceptions-64s.S:1315: Error:

Re: [PATCH] powerpc: irq work racing with timer interrupt can result in timer interrupt hang

2014-05-09 Thread Gabriel Paubert
On Fri, May 09, 2014 at 06:41:13AM -0700, Paul E. McKenney wrote: > On Fri, May 09, 2014 at 05:47:12PM +1000, Anton Blanchard wrote: > > I am seeing an issue where a CPU running perf eventually hangs. > > Traces show timer interrupts happening every 4 seconds even > > when a userspace task is runni

Re: [PATCH] powerpc: irq work racing with timer interrupt can result in timer interrupt hang

2014-05-09 Thread Paul E. McKenney
On Fri, May 09, 2014 at 11:50:05PM +0200, Gabriel Paubert wrote: > On Fri, May 09, 2014 at 06:41:13AM -0700, Paul E. McKenney wrote: > > On Fri, May 09, 2014 at 05:47:12PM +1000, Anton Blanchard wrote: > > > I am seeing an issue where a CPU running perf eventually hangs. > > > Traces show timer int

linux-next: add scottwood/linux.git

2014-05-09 Thread Scott Wood
On Mon, 2014-03-24 at 20:09 -0500, Scott Wood wrote: > On Mon, 2014-03-24 at 10:33 +1100, Benjamin Herrenschmidt wrote: > > On Mon, 2014-03-24 at 10:16 +1100, Benjamin Herrenschmidt wrote: > > > On Wed, 2014-03-19 at 23:25 -0500, Scott Wood wrote: > > > > The following changes since commit > > > >

Re: [v6,3/5] powerpc/book3e: support kgdb for kernel space

2014-05-09 Thread Scott Wood
On Wed, Oct 23, 2013 at 05:31:23PM +0800, Tiejun Chen wrote: > Currently we need to skip this for supporting KGDB. > > Signed-off-by: Tiejun Chen > > --- > arch/powerpc/kernel/exceptions-64e.S |4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/kernel/exc

Re: [PATCHv2] powerpc/85xx: Add OCA4080 board support

2014-05-09 Thread Scott Wood
On Tue, Apr 15, 2014 at 07:51:46PM +0200, Martijn de Gouw wrote: > diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c > b/arch/powerpc/platforms/85xx/corenet_generic.c > index fbd871e..f3685047 100644 > --- a/arch/powerpc/platforms/85xx/corenet_generic.c > +++ b/arch/powerpc/platforms/85xx

Re: [PATCH 1/1] booke/watchdog: refine and clean up the codes

2014-05-09 Thread Guenter Roeck
On Thu, May 08, 2014 at 10:04:26AM +0800, yuantian.t...@freescale.com wrote: > From: Tang Yuantian > > Basically, this patch does the following: > 1. Move the codes of parsing boot parameters from setup-common.c >to driver. In this way, code reader can know directly that >there are boot p

Re: [PATCH v2 1/2] powerpc/pm: add api to get suspend state which is STANDBY or MEM

2014-05-09 Thread Scott Wood
On Fri, 2014-05-09 at 17:33 +0800, Li Yang wrote: > On Wed, Apr 30, 2014 at 6:47 AM, Scott Wood wrote: > > On Mon, 2014-04-28 at 13:53 +0800, Leo Li wrote: > >> On Sat, Apr 26, 2014 at 5:45 AM, Scott Wood > >> wrote: > >> > On Thu, 2014-04-24 at 14:11 +0800, Dongsheng Wang wrote: > >> >> From: W

Re: [PATCH] powerpc: irq work racing with timer interrupt can result in timer interrupt hang

2014-05-09 Thread Paul E. McKenney
On Fri, May 09, 2014 at 05:47:12PM +1000, Anton Blanchard wrote: > I am seeing an issue where a CPU running perf eventually hangs. > Traces show timer interrupts happening every 4 seconds even > when a userspace task is running on the CPU. Is this by chance every 4.2 seconds? The reason I ask is

Re: [PATCH] powerpc: irq work racing with timer interrupt can result in timer interrupt hang

2014-05-09 Thread Preeti U Murthy
Hi Anton, On 05/09/2014 01:17 PM, Anton Blanchard wrote: > I am seeing an issue where a CPU running perf eventually hangs. > Traces show timer interrupts happening every 4 seconds even > when a userspace task is running on the CPU. /proc/timer_list > also shows pending hrtimers have not run in ove

Re: [PATCH v2 1/2] powerpc/pm: add api to get suspend state which is STANDBY or MEM

2014-05-09 Thread Li Yang
On Wed, Apr 30, 2014 at 6:47 AM, Scott Wood wrote: > On Mon, 2014-04-28 at 13:53 +0800, Leo Li wrote: >> On Sat, Apr 26, 2014 at 5:45 AM, Scott Wood wrote: >> > On Thu, 2014-04-24 at 14:11 +0800, Dongsheng Wang wrote: >> >> From: Wang Dongsheng >> >> >> >> Add set_pm_suspend_state & pm_suspend_s

RE: powerpc/mpc85xx: Add BSC9132 QDS Support

2014-05-09 Thread Harninder Rai
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, May 03, 2014 6:01 AM > To: Rai Harninder-B01044 > Cc: linuxppc-dev@lists.ozlabs.org; Gupta Ruchika-R66431 > Subject: Re: powerpc/mpc85xx: Add BSC9132 QDS Support > > On Tue, Mar 18, 2014 at 01:05:02PM +0530, harninder rai w

Re: [PATCH 1/1] booke/watchdog: refine and clean up the codes

2014-05-09 Thread Leo Li
On Thu, May 8, 2014 at 10:04 AM, wrote: > From: Tang Yuantian > > Basically, this patch does the following: > 1. Move the codes of parsing boot parameters from setup-common.c >to driver. In this way, code reader can know directly that >there are boot parameters that can change the timeou

Re: [RFT PATCH -next ] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64

2014-05-09 Thread Masami Hiramatsu
(2014/05/08 15:16), Ananth N Mavinakayanahalli wrote: > On Thu, May 08, 2014 at 02:40:00PM +0900, Masami Hiramatsu wrote: >> (2014/05/08 13:47), Ananth N Mavinakayanahalli wrote: >>> On Wed, May 07, 2014 at 08:55:51PM +0900, Masami Hiramatsu wrote: >>> >>> ... >>> +#if defined(CONFIG_PPC64) &&

RE: powerpc/mpc85xx: Add BSC9132 QDS Support

2014-05-09 Thread Harninder Rai
> > + }; > > + > > + nand@1,0 { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + compatible = "fsl,ifc-nand"; > > + reg = <0x1 0x0 0x4000>; > > + > > + partition@0 { > > + /* This location must not be altered */ > >

Re: [PATCH RFC v2 00/10] EEH Support for VFIO PCI devices on PowerKVM guest

2014-05-09 Thread Gavin Shan
On Fri, May 09, 2014 at 05:49:32PM +1000, Gavin Shan wrote: Sorry for having missed cc'ing Alex Graf. Amending it. >The series of patches intends to support EEH for PCI devices, which are >passed through to PowerKVM based guest via VFIO. The implementation is >straightforward based on the issues

[PATCH 09/10] powerpc/powernv: Implement ppc_call_opal()

2014-05-09 Thread Gavin Shan
If we're running PowerNV platform, ppc_firmware() will be directed to ppc_call_opal() where we can call to OPAL API accordingly. In ppc_call_opal(), the input argument are parsed out and call to appropriate OPAL API to handle that. Each request passed to the function is identified with token. As we

[PATCH 10/10] powerpc/powernv: Error injection infrastructure

2014-05-09 Thread Gavin Shan
The patch intends to implemdent the error injection infrastructure for PowerNV platform. The predetermined handlers will be called according to the type of injected error (e.g. OpalErrinjctTypeIoaBusError). For now, we just support PCI error injection. We need support injecting other types of error

[PATCH 07/10] powerpc/powernv: Sync OPAL header file with firmware

2014-05-09 Thread Gavin Shan
The patch synchronizes OPAL header file with firmware so that the host kernel can make OPAL call to do error injection. Signed-off-by: Gavin Shan --- arch/powerpc/include/asm/opal.h| 65 ++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + 2 files cha

[PATCH 05/10] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-09 Thread Gavin Shan
The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container to support EEH functionality for PCI devices, which have been passed from host to guest via VFIO. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/Makefile | 1 + arch/powerpc/platforms/powernv/eeh-vfio.c | 584

[PATCH 04/10] powerpc/eeh: Search EEH PE by guest address

2014-05-09 Thread Gavin Shan
The patch introduces function eeh_vfio_pe_get() to search the EEH PE according to its guest address, which is made up of PHB ID and PE configuration address. The function will be useful in backends for EEH RTAS emulation. Signed-off-by: Gavin Shan --- arch/powerpc/include/asm/eeh.h | 1 + arch/

[PATCH 08/10] powerpc: Extend syscall ppc_rtas()

2014-05-09 Thread Gavin Shan
Originally, syscall ppc_rtas() can be used to invoke RTAS call from user space. Utility "errinjct" is using it to inject various errors to the system for testing purpose. The patch intends to extend the syscall to support both pSeries and PowerNV platform. With that, RTAS and OPAL call can be invok

[PATCH 03/10] powerpc/eeh: Search EEH device by guest address

2014-05-09 Thread Gavin Shan
The patch introduces function eeh_vfio_dev_get() to search the EEH device according to its guest address, which is made up of PHB BUID, bus, slot and function number. The function is useful in the backends for EEH RTAS emulation. Signed-off-by: Gavin Shan --- arch/powerpc/include/asm/eeh.h | 5

[PATCH 02/10] powerpc/eeh: Info to trace passed devices

2014-05-09 Thread Gavin Shan
The address of passed PCI devices (domain:bus:slot:func) might be quite different from the perspective of host and guest. We have to trace the address mapping so that we can emulate EEH RTAS requests from guest. The patch introduces additional fields to eeh_pe and eeh_dev for the purpose. Signed-o

[PATCH 01/10] drivers/vfio: Introduce CONFIG_VFIO_EEH

2014-05-09 Thread Gavin Shan
The patch introduces CONFIG_VFIO_EEH for more IOCTL commands on tce_iommu_driver_ops to support EEH funtionality for PCI devices that are passed through from host to guest. Signed-off-by: Gavin Shan --- drivers/vfio/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/vfio/K

[PATCH 06/10] powerpc/eeh: Avoid event on passed PE

2014-05-09 Thread Gavin Shan
If we detects frozen state on PE that has been passed to guest, we needn't handle it. Instead, we rely on the guest to detect and recover it. The patch avoid EEH event on the frozen passed PE so that the guest can have chance to handle that. Signed-off-by: Gavin Shan --- arch/powerpc/kernel/eeh.

[PATCH RFC v2 00/10] EEH Support for VFIO PCI devices on PowerKVM guest

2014-05-09 Thread Gavin Shan
The series of patches intends to support EEH for PCI devices, which are passed through to PowerKVM based guest via VFIO. The implementation is straightforward based on the issues or problems we have to resolve to support EEH for PowerKVM based guest. - Emulation for EEH RTAS requests. All EEH RTAS

[PATCH] powerpc: irq work racing with timer interrupt can result in timer interrupt hang

2014-05-09 Thread Anton Blanchard
I am seeing an issue where a CPU running perf eventually hangs. Traces show timer interrupts happening every 4 seconds even when a userspace task is running on the CPU. /proc/timer_list also shows pending hrtimers have not run in over an hour, including the scheduler. Looking closer, decrementers_